Attendance, review, kiosk & QR attendance
How Haris calculates attendance
- Every punch (phone, kiosk, QR scan, manual punch by a manager, or correction) is stored as-is and never changed.
- The daily status comes from punches + schedule (published shift or fixed pattern) + leave + holidays: Present, Late (past the pay group's grace period), Absent (shift window closed without a clock-in), Incomplete (no clock-out), Outside schedule, Leave, Day off.
- Shifts past midnight are recorded on their start date.
- Data is recalculated automatically every 15 minutes and on every punch, correction, roster change, holiday, or job-history change. Attendance before the go-live date is not calculated.
Daily summary
Per date and location: present, late, not in yet, absent, leave, day off. Times that did not come from a phone carry a Manual, QR, Kiosk, or Correction badge. Rows without a punch have a Clock in for them / Clock out for them button (see Manual punch). CSV export is available for up to 62 days.
Review
Days that need checking:
| Reason | Meaning |
|---|---|
| No clock-out | A clock-in without a clock-out after the window closed. |
| Clock-out without clock-in | — |
| Worked outside schedule | Punches on a day without a shift. |
| Clocked in on a leave day | — |
| Clocked outside the shift window | A punch too far from the shift hours; not counted. |
| Location/GPS/device time issue or manual punch | Outside the radius, inaccurate GPS, phone clock differs, clocked at another location, or a manual punch recorded by the direct manager. |
Actions: Checked (optional note), Correction, Overtime, and the camera icon to view the punch photo.
Attendance corrections
Employees request them from their phone; they are decided in Approvals. Authorized admins can also create a correction on an employee's behalf in Attendance → Corrections — it applies immediately. Original punches are kept; the latest corrected time is used.
Manual punch by a manager
For employees who cannot clock in themselves, for example when their phone is dead or broken, there is no signal, or they forgot their phone.
- Admins (owner, HR admin, the employee's location manager): Attendance → Manual punch, or the Clock in/out for them button on a Daily summary row.
- Direct managers: on their phone in My team → Clock in/out for them. Punches recorded by a direct manager go to Review so HR can check them.
- Choose in or out, the time (now by default), and a reason. Only for today or yesterday, and the time cannot be later than now. Not possible for yourself.
- It is recorded as a Manual punch under the recorder's name, audited, and the employee is notified. Lateness is calculated from the recorded time.
- Older dates or changing a time that is already recorded → Corrections.
Overtime
- Requested by employees, created by admins (approved immediately), or ordered by a direct supervisor from My team.
- Overtime candidates: days with ≥ 30 minutes worked after the shift end without a request — click Create overtime.
- Approvers may approve fewer minutes. Payroll pays at most the actual overtime candidate minutes of that day.
Kiosk
- Enable the Kiosk method at the locationLocations & structure. Kiosk is available on the Pro and Custom plans.
- Add a deviceAdmin → Kiosk → Add device. The 8-character pairing code is shown once and is valid for 15 minutes.
- Pair the tabletOn the tablet open
https://haris.sassly.ai/kioskand enter the code. The tablet stays paired (it can be added to the home screen). - Give employees a PINEmployee record → Account & PIN → Create PIN.
- 5 wrong PINs in a row lock the kiosk for 60 seconds; locked again within an hour → 15 minutes and admins are notified.
- Revoke lost or replaced devices; that tablet cannot be used until it is paired again.
QR attendance
A screen at the location shows a QR that changes every few seconds (15 seconds by default, 5–300 allowed) and changes right after one person uses it, so the QR cannot be photographed and sent to a colleague who has not arrived yet. Employees scan it with their phone via Clock in → Scan QR. Available on the Pro and Custom plans, together with the kiosk.
- Enable the QR scan method at the locationLocations & structure. If the phone method is turned off, employees at that location can only clock in by QR (or kiosk).
- Create a screenAdmin → QR attendance → Add QR screen: location, name (e.g. Main entrance), how often the QR changes, and whether today's attendance list is shown.
- Put it up at the locationOpen the screen page on a signed-in TV, tablet, or laptop and press Full screen; turn on the Public link for screens that cannot sign in; or use your own device such as an ESP32 (below).
- Employees scanChoose In or Out and point the camera at the QR. The punch is recorded with the server time at the screen's location, the screen shows who just clocked in, and the QR changes immediately.
- Below the QR is today's attendance list for that location: clock-in time, clock-out time, and On time, N min late, or Outside schedule, plus how many have clocked in, are late, and are not in yet. It can be turned off per screen.
- The public link can be turned on, turned off, or replaced at any time. Anyone with the link can see the QR, and the attendance list when it is shown.
- QR scans do not use GPS or a photo. A scan at a screen in a location other than the employee's placement is flagged Other location in Review.
- A normal phone camera works too: the QR link opens Haris and the QR is validated right then (the screen changes immediately). If not signed in, the employee signs in first, then chooses In/Out and presses Clock now within 10 minutes. The punch is recorded with the time the QR was scanned, so signing in does not make anyone late. The scan result works only once, in that browser.
- Disable a screen temporarily or delete it; punches already recorded are kept.
QR screen on your own device (ESP32, API)
On the screen page → Your own device → Create device key. The hqd_… key is shown once; create a new one if it is lost (the old key stops immediately). The device fetches the latest QR and draws it itself:
GET https://haris.sassly.ai/api/v1/device/qr
Authorization: Bearer hqd_…
- The key may also be sent in an
X-Device-Keyheader (never in the URL, so it does not end up in logs). Options:?format=text(QR text only,X-QR-Expires-Inheader),?format=svg(QR image),&board=1(attendance list),&lang=en. - Fetch again every 1–2 seconds: the QR changes when
expires_inruns out and right after it is used (countergoes up). Redraw only whenpayloadchanges. rowsis the module matrix ('1' = dark); just draw it with a white quiet zone around it — no QR library needed. Devices with their own QR library can usepayload.- Errors:
401 invalid_key(wrong/revoked key);403display_disabled,qr_method_off,module_not_in_plan, orcompany_suspended.
Example response:
{"payload": "HTTPS://HARIS.SASSLY.AI/Q/K7Q2M4XAB3D5F7H2JK", "version": 3, "size": 29,
"rows": ["11111110…1111111", "…"], "interval": 15, "expires_in": 9, "counter": 42,
"name": "Main entrance", "location": "Bekasi Warehouse", "server_time": 1763101234,
"last_scan": {"name": "Andi Saputra", "kind": "in", "time": "07:52", "status_text": "In 07:52 · on time", "at": 1763101230, "counter": 42}}
Example ESP32 program with a TFT display (Arduino, TFT_eSPI and ArduinoJson 7 libraries):
// Haris — QR attendance screen on an ESP32 + TFT display (example).
// Libraries (Arduino Library Manager): TFT_eSPI (set User_Setup.h for your board) and ArduinoJson 7.x.
// Fill in WIFI_SSID, WIFI_PASS, and HARIS_KEY (the hqd_… device key from Admin → QR attendance → screen → Your own device).
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
#include <TFT_eSPI.h>
const char* WIFI_SSID = "wifi-name";
const char* WIFI_PASS = "wifi-password";
const char* HARIS_URL = "https://haris.sassly.ai/api/v1/device/qr";
const char* HARIS_KEY = "hqd_...";
const int QUIET = 2; // quiet zone (white modules) around the QR
const int FOOTER = 26; // height of the text line below the QR (pixels)
TFT_eSPI tft;
WiFiClientSecure tls;
HTTPClient http;
String shownPayload; // QR text currently shown
long shownScan = 0; // time of the last scan already shown
unsigned long nextFetch = 0;
void footer(const String& text, uint16_t bg) {
static String lastText;
static uint16_t lastBg = 0;
if (text == lastText && bg == lastBg) return; // same text → not redrawn (no flicker)
lastText = text;
lastBg = bg;
tft.fillRect(0, tft.height() - FOOTER, tft.width(), FOOTER, bg);
tft.setTextColor(TFT_WHITE, bg);
tft.setTextDatum(MC_DATUM);
tft.drawString(text, tft.width() / 2, tft.height() - FOOTER / 2, 2);
}
// Draw the "rows" matrix ('1' = dark module) as large as possible in the middle of the screen.
void drawQr(JsonArray rows, int size) {
int area = min(tft.width(), tft.height() - FOOTER);
int scale = max(1, area / (size + QUIET * 2));
int px = scale * (size + QUIET * 2);
int x0 = (tft.width() - px) / 2;
int y0 = (tft.height() - FOOTER - px) / 2;
tft.fillRect(x0, y0, px, px, TFT_WHITE);
for (int y = 0; y < size; y++) {
const char* row = rows[y] | "";
for (int x = 0; x < size && row[x] != '\0'; x++) {
if (row[x] == '1') {
tft.fillRect(x0 + (x + QUIET) * scale, y0 + (y + QUIET) * scale, scale, scale, TFT_BLACK);
}
}
}
}
void fetchQr() {
if (!http.begin(tls, HARIS_URL)) {
nextFetch = millis() + 3000;
return;
}
http.addHeader("Authorization", String("Bearer ") + HARIS_KEY);
int code = http.GET();
String body = code > 0 ? http.getString() : "";
http.end();
if (code != 200) { // 401 = wrong/revoked key, 403 = screen/plan/location not active
footer("Haris: HTTP " + String(code), TFT_RED);
nextFetch = millis() + (code == 401 || code == 403 ? 30000 : 5000);
return;
}
JsonDocument doc;
if (deserializeJson(doc, body)) {
nextFetch = millis() + 2000;
return;
}
String payload = doc["payload"] | "";
if (payload != shownPayload) { // the QR changed (time is up or it was just used)
drawQr(doc["rows"].as<JsonArray>(), doc["size"] | 29);
shownPayload = payload;
}
long scanAt = doc["last_scan"]["at"] | 0L;
if (scanAt != 0 && scanAt != shownScan) { // someone just clocked in: show their name
shownScan = scanAt;
footer(String(doc["last_scan"]["name"] | "") + " - " + String(doc["last_scan"]["time"] | ""), TFT_DARKGREEN);
} else if (scanAt == 0) {
footer(String(doc["location"] | ""), TFT_NAVY);
}
int expires = doc["expires_in"] | 2;
// Fetch again within 1.5 seconds: the QR also changes right after one person uses it.
nextFetch = millis() + (unsigned long) min(expires * 1000, 1500);
}
void setup() {
tft.init();
tft.setRotation(1);
tft.fillScreen(TFT_NAVY);
footer("Connecting to WiFi...", TFT_NAVY);
WiFi.begin(WIFI_SSID, WIFI_PASS);
while (WiFi.status() != WL_CONNECTED) {
delay(300);
}
tls.setInsecure(); // short example; in production set the root certificate with tls.setCACert(...)
http.setReuse(true); // reuse the TLS connection (TLS handshakes are slow on an ESP32)
http.setTimeout(5000);
}
void loop() {
if (WiFi.status() != WL_CONNECTED) {
footer("WiFi disconnected...", TFT_RED);
WiFi.reconnect();
delay(2000);
return;
}
if ((long) (millis() - nextFetch) >= 0) {
fetchQr();
}
delay(20);
}