2026-03-04 22:58:00 -06:00
# UniFi Access Badge-In Dashboard
2026-03-04 17:45:28 -06:00
2026-03-04 22:58:00 -06:00
A Dockerised Flask + SQLite attendance dashboard that receives real-time door unlock
2026-05-28 00:39:46 -05:00
webhooks from one or more **UniFi Access Developer API** controllers, resolves
badge holders to real names, and displays a unified live attendance table with
first/latest badge times, source controller, and ON TIME / LATE status.
**Multi-controller:** add as many UniFi Access controllers as the host can reach.
2026-05-28 15:01:22 -05:00
Webhooks are auto-registered when you add a controller from the UI.
**Tenant filtering:** hide building tenants (or any non-staff actor) from the
attendance table with one click — events are still recorded so unfiltering
2026-05-28 15:56:36 -05:00
restores their full history.
**Identity merging:** the same person on two controllers gets two UniFi UUIDs.
Merge those identities into a single "person" so the dashboard computes ONE
first-badge time per human, not per badge UUID — no more false LATE warnings
for staff who badge into multiple buildings before the cutoff. (05/28/26)
2026-03-04 19:42:38 -06:00
2026-06-19 09:10:34 -05:00
**Reporting:** export first badge-in times over a date range for one person or a
2026-07-01 23:14:03 -05:00
multi-selected group. View an on-screen pivot (users × dates) with per-person
on-time / late / absent totals, or download a long-format CSV. Days with no
badge-in are reported as **absent** , so it doubles as an attendance report. (06/19/26)
**Live & searchable:** the table auto-refreshes on a 45-second interval with a
live "updated Xs ago" indicator, plus a header **health pill** that shows when the
last badge event actually arrived — so a dead webhook is obvious at a glance.
Filter rows by name, click any column header to sort, and click the summary pills
to show only on-time or late people. View settings (date, cutoff, controller,
filters) persist across reloads and are encoded in the URL for bookmarking and
sharing. Click any person's badge time — or their **Times** button — to see
**every** badge-in for that day, not just first and latest. (07/01/26)
2026-06-19 09:10:34 -05:00
2026-03-04 19:42:38 -06:00
---
2026-03-04 17:45:28 -06:00
2026-03-04 22:58:00 -06:00
## Requirements
2026-03-04 17:45:28 -06:00
2026-05-28 00:39:46 -05:00
- Linux host with Docker + Docker Compose (Unraid works great)
- One or more UniFi OS consoles running **UniFi Access 1.9.1 or later**
- Network reachability from the dashboard host to each controller on port **12445**
- A **Developer API token** from each UniFi Access controller you plan to add
2026-03-04 19:42:38 -06:00
---
2026-05-28 00:39:46 -05:00
## Step 1 — Open firewall port 12445 to each controller
2026-03-04 17:45:28 -06:00
2026-03-04 22:58:00 -06:00
The UniFi Access Open API runs exclusively on **port 12445** (HTTPS, self-signed cert).
2026-05-28 00:39:46 -05:00
The host running the dashboard must be able to reach each controller on that port.
2026-03-04 22:58:00 -06:00
2026-05-28 00:39:46 -05:00
In UniFi Network → Settings → Firewall & Security → Firewall Rules, add a **LAN IN** rule on each controller:
2026-03-04 22:58:00 -06:00
| Field | Value |
|---|---|
| Action | Accept |
| Protocol | TCP |
| Destination Port | 12445 |
2026-05-28 00:39:46 -05:00
| Source | the subnet your dashboard host lives on |
2026-03-04 22:58:00 -06:00
2026-05-28 00:39:46 -05:00
Verify from the dashboard host:
2026-03-04 22:58:00 -06:00
```bash
2026-05-28 00:39:46 -05:00
# Linux:
2026-03-04 22:58:00 -06:00
nc -zv 10.0.0.1 12445
# Windows PowerShell:
Test-NetConnection -ComputerName 10.0.0.1 -Port 12445
2026-03-04 19:42:38 -06:00
```
2026-03-04 17:45:28 -06:00
2026-03-04 19:42:38 -06:00
---
2026-03-04 17:45:28 -06:00
2026-05-28 00:39:46 -05:00
## Step 2 — Generate a Developer API token on each controller
2026-03-04 17:45:28 -06:00
2026-05-28 00:39:46 -05:00
> ⚠️ This token is **different** from the UniFi OS / Network API token.
2026-03-04 22:58:00 -06:00
> Creating it in the wrong place will result in 401 Unauthorized errors.
2026-03-04 17:45:28 -06:00
2026-05-28 00:39:46 -05:00
1. Open the UniFi OS console at `https://<controller-ip>` in a browser.
2. Open the **Access** app (blue door icon).
2026-03-04 22:58:00 -06:00
3. Go to **Settings → General → Advanced → API Token** .
2026-05-28 00:39:46 -05:00
4. Click **Create New** , name it, enable **all permission scopes** , and pick a validity period.
5. Click **Create** and **immediately copy the token** — it's only shown once.
2026-03-04 17:45:28 -06:00
2026-05-28 00:39:46 -05:00
Repeat for each controller you plan to add.
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
---
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
## Step 3 — Clone the repo on the host
2026-03-04 20:56:30 -06:00
```bash
cd /mnt/user/appdata
2026-03-04 23:32:53 -06:00
git clone https://github.com/jasonMPM/unifi-access-dashboard.git unifi-access-dashboard
2026-03-04 20:56:30 -06:00
cd unifi-access-dashboard
```
---
2026-03-04 22:58:00 -06:00
## Step 4 — Create your .env file
2026-03-04 17:45:28 -06:00
```bash
2026-03-04 19:42:38 -06:00
cp .env.example .env
2026-03-04 20:56:30 -06:00
nano .env
```
2026-05-28 00:39:46 -05:00
The `UNIFI_*` and `WEBHOOK_SECRET` values are **optional** . If set, they auto-create
a "Default" controller on first boot — handy for single-controller installs. You can
leave them blank and add every controller via the UI instead.
2026-03-04 20:56:30 -06:00
```dotenv
2026-05-28 00:39:46 -05:00
# Optional: seeds a "Default" controller on first boot
UNIFI_HOST=10.0.0.1
UNIFI_PORT=12445
UNIFI_API_TOKEN=YOUR_TOKEN_HERE
WEBHOOK_SECRET=
# Required
TZ=America/Chicago
DB_PATH=/data/dashboard.db
# Optional: override the URL the dashboard uses when registering webhooks
# DASHBOARD_BASE_URL=http://10.0.0.5:8000
2026-03-04 19:42:38 -06:00
```
2026-03-04 20:56:30 -06:00
> **Never commit `.env` to git.** It is listed in `.gitignore`.
---
2026-03-04 22:58:00 -06:00
## Step 5 — Build and start the container
2026-03-04 20:56:30 -06:00
```bash
2026-03-04 22:58:00 -06:00
cd /mnt/user/appdata/unifi-access-dashboard
/usr/bin/docker compose up -d --build
2026-03-04 20:56:30 -06:00
```
The container will:
- Build the image from the local `Dockerfile`
- Start Flask on port **8000**
- Create `/data/dashboard.db` inside the container (mapped to `./data/` on the host)
2026-05-28 00:39:46 -05:00
- If env-var credentials are set, seed a "Default" controller and sync its users
2026-05-28 00:54:54 -05:00
- Schedule a user-cache refresh every hour for every enabled controller
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
Verify it's running:
2026-03-04 20:56:30 -06:00
```bash
2026-03-04 22:58:00 -06:00
/usr/bin/docker ps
/usr/bin/docker logs -f unifi-access-dashboard
2026-03-04 20:56:30 -06:00
```
---
2026-05-28 00:39:46 -05:00
## Step 6 — Add controllers from the UI
2026-03-04 22:58:00 -06:00
2026-05-28 00:39:46 -05:00
Navigate to:
2026-03-04 17:45:28 -06:00
2026-03-04 22:58:00 -06:00
```
2026-05-28 00:39:46 -05:00
http://<HOST-IP>:8000/
2026-03-04 17:45:28 -06:00
```
2026-05-28 00:39:46 -05:00
Click the ** ⚙ Controllers** button in the header. For each UniFi Access instance you want
to receive events from, fill in:
2026-03-04 22:58:00 -06:00
2026-05-28 00:39:46 -05:00
| Field | Value |
|---|---|
| **Name** | Friendly label shown in the Source column (e.g. "Main Office", "Warehouse") |
| **Host / IP** | Controller IP, e.g. `10.0.0.1` |
| **Port** | `12445` (don't change unless your controller is non-standard) |
| **Developer API Token** | Token from Step 2 |
2026-03-04 19:42:38 -06:00
2026-05-28 00:39:46 -05:00
Click **Add Controller** . The dashboard will:
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
1. Call the controller's `POST /webhooks/endpoints` with this dashboard's URL.
2. Store the returned webhook secret so it can verify incoming events (HMAC-SHA256).
3. Immediately sync the controller's user list to resolve names.
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
If the controller can't reach this dashboard at the URL shown in the form hint
(it uses `window.location.origin` by default), set `DASHBOARD_BASE_URL` in `.env`
and restart.
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
Per-controller actions in the modal:
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
| Action | Description |
|---|---|
| **Test** | Hits the controller's `/users` endpoint to confirm the token works |
| **Sync** | Pulls latest users from this controller right now |
| **Enable / Disable** | Pause ingestion + sync without deleting the controller |
| **Remove** | Deletes the webhook from the controller and wipes all its badge events from the dashboard |
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
---
2026-03-04 20:56:30 -06:00
2026-05-28 00:39:46 -05:00
## Dashboard controls
2026-03-04 20:56:30 -06:00
| Control | Description |
|---|---|
2026-06-19 14:48:32 -05:00
| **Date picker** | Choose which day to view (defaults to the browser's local date) |
2026-05-28 00:39:46 -05:00
| **Badged in by** | Set your on-time cutoff (HH:MM) |
| **Controller** | Filter the table to one controller, or show All |
2026-07-01 23:14:03 -05:00
| **Search** | Filter the visible rows by name (client-side, instant) |
2026-05-28 15:01:22 -05:00
| **Show filtered** | Include filtered tenants in the table (dimmed and tagged) |
2026-07-01 23:14:03 -05:00
| **Auto-refresh** | Toggle live 45-second polling of the current day (auto-pauses when viewing a past date) |
| **Today** | Jump the date picker back to today |
| **Refresh** | Reload the table now |
2026-05-28 00:39:46 -05:00
| **Sync Users** | Pull latest users from every enabled controller |
2026-05-28 15:01:22 -05:00
| ** 🚫 Filtered** | Open the filtered-tenants modal to review and unhide |
2026-06-19 09:10:34 -05:00
| ** 📊 Report** | Open the date-range report builder (first badge-in per day, per user, CSV export) |
2026-05-28 15:56:36 -05:00
| ** 👥 People** | Manage merged identities and review auto-suggested merges |
2026-05-28 00:39:46 -05:00
| ** ⚙ Controllers** | Add / manage controllers |
| **Reset Day** | Delete all badge records for the selected date (respects the Controller filter — testing only) |
2026-03-04 20:56:30 -06:00
2026-03-04 22:58:00 -06:00
### Dashboard columns
2026-03-04 20:56:30 -06:00
| Column | Description |
|---|---|
2026-07-01 23:14:03 -05:00
| ** #** | Row number (within the current sort/filter) |
2026-03-04 20:56:30 -06:00
| **Name** | Resolved display name from UniFi Access |
2026-05-28 00:39:46 -05:00
| **Source** | Controller this badge event came from |
2026-07-01 23:14:03 -05:00
| **First Badge In** | Earliest door entry for the day — never changes once set. **Click it** (or the Times button) to see the full list of the day's badge-ins |
2026-03-04 22:58:00 -06:00
| **Latest Badge In** | Most recent entry — shows *"— same"* if only one badge event |
2026-03-04 20:56:30 -06:00
| **Actor ID** | First 8 characters of the UniFi user UUID |
2026-03-04 22:58:00 -06:00
| **Status** | ON TIME (green) or LATE (red) based on first badge vs cutoff |
2026-07-01 23:14:03 -05:00
| **Actions** | **Times** opens every badge-in for that person on the selected day; **Hide** filters this person out of future views; **Merge** joins two badge identities so they count as one human |
> Click a sortable header (Name, First/Latest Badge In, Status) to sort by that
> column; click again to reverse. Click the **on time** / **late** / **total**
> summary pills to show only that group.
2026-05-28 15:56:36 -05:00
> Once two identities are merged, the Source column shows a chip for every
> controller the person badged into that day, plus a "MERGED" pill so it's
> clear the row represents N UniFi UUIDs.
2026-06-19 14:48:32 -05:00
### Interface notes
2026-07-01 23:14:03 -05:00
- **Auto-refresh & live status.** When viewing today with Auto-refresh on, the
table reloads every 45 seconds. The pill in the summary row shows *"updated Xs
ago"* (or *"paused"* / *"viewing past day"* when polling is off).
- **Ingestion health.** The pill in the header shows the freshest badge event
across all enabled controllers — *"last badge 3m ago"* (green), *"no events…"*
(amber, stale), or *"webhook not registered"* — so a broken webhook is caught
without digging into the Controllers modal (which also shows per-controller
last-event time).
- **Badge-in times.** Clicking a person's First-badge time or their **Times**
button lists every badge-in for that day, oldest first, tagged *first* and
*latest* and labelled with the source controller. For merged people the list
spans all their identities.
- **View persistence & sharing.** Date, cutoff, controller, and the filter
toggles are saved to the browser and mirrored into the URL, so reloading keeps
your view and you can bookmark or share a link to a specific day/controller.
- **First-run onboarding.** With no controllers configured, the table shows an
"Add a Controller" call-to-action instead of an empty grid.
2026-06-19 14:48:32 -05:00
- On narrow screens, the attendance table automatically changes into stacked
row cards with labels for each field, so all columns remain visible without
sideways scrolling.
- Destructive or structural actions such as removing a controller, dissolving a
merged person, splitting an identity, and resetting a day use in-app
confirmation dialogs instead of browser popups.
- Toast notifications announce success/failure states; keyboard users can close
open dialogs with `Esc` .
2026-05-28 15:56:36 -05:00
---
## Merging identities across controllers
UniFi issues a new UUID per controller, so the same person on Main Office and
Warehouse shows up as two rows by default — and worst case, a badge at 8:45 on
one and 9:15 on the other produces one ON TIME row plus one LATE row. Merging
fixes this:
- Click **Merge** on any row. A picker shows other actors ordered by best
name match — pick one, confirm a display name, done.
- Click ** 👥 People** in the header to open the people manager. The top of
that modal shows **Suggested merges** — pairs of `(controller, actor)` rows
with matching full names across different controllers. One click confirms
each suggestion (no auto-apply; you're always in the loop).
- The same modal lists every merged person below the suggestions, with
2026-06-19 14:48:32 -05:00
per-person actions: **Rename** (opens an in-app text dialog), **Split off**
(remove one identity from the group), **Dissolve** (break the whole group up —
past badge events are preserved, the identities just become standalone rows
again).
2026-05-28 15:56:36 -05:00
Once merged, the attendance table:
- Shows **one row** per person, with MIN/MAX badge times computed across all
their identities — first badge wins ON TIME / LATE.
- Renders **one source chip per controller** they badged into that day.
- **Hide** on a merged row filters the *person* , so all their identities go
with them. Splitting an identity off later returns it unfiltered.
2026-03-04 20:56:30 -06:00
2026-05-28 15:56:36 -05:00
The merge data lives in two tables (`persons` , `person_members` ); user-cache
syncs from UniFi never touch them.
2026-05-28 00:39:46 -05:00
2026-03-04 20:56:30 -06:00
---
2026-05-28 15:01:22 -05:00
## Filtering tenants
Use this when an actor (typically a building tenant, vendor, or contractor)
badges into the same doors as your staff but you don't want them counted on
the attendance table.
- Click **Hide** on any row to filter that actor out. They're removed from the
table immediately and stay hidden on future days.
- Toggle **Show filtered** in the controls bar to see them again — filtered
rows render dimmed with a FILTERED tag and an **Unhide** action.
- Click the ** 🚫 Filtered** button in the header for a bulk-management view
across all controllers, with one-click unhide per actor.
The filter is per `(controller, actor)` , so the same person on two controllers
must be hidden on each one. Badge events are still recorded while an actor is
filtered — unhiding restores their full history with no gaps.
---
2026-06-19 09:10:34 -05:00
## Reporting over a date range
The live table only shows one day. To pull first badge-in times across a range —
for a single person or a whole group — click ** 📊 Report** in the header.
In the report modal:
- **Start / End** — the inclusive date range (capped at 366 days).
- **On-time cutoff** — the HH:MM threshold for ON TIME vs LATE (defaults to the
cutoff set in the main controls).
- **Users** — a searchable checklist of every report subject: each merged
**person** plus every unmerged actor. Pick one for an individual report, or
several for a group. **Select all** and **Clear** act on the current search.
- **Run Report** renders an on-screen **pivot** : one row per selected user, one
column per date, each cell showing that day's first badge-in time
(green = on time, red = late). Weekends are shaded and days with no badge-in
2026-07-01 23:14:03 -05:00
show as ** —**. Trailing **On time / Late / Absent** columns total each person
over the range, and a final **All** row totals every column.
2026-06-19 09:10:34 -05:00
- **Export CSV** downloads the same data in **long format** — one row per
user-per-day (`Name, Date, Weekday, First In, Status, Sources` ) — ideal for
Excel or Sheets.
The report respects the header's **Controller** filter and **Show filtered**
toggle, and it uses the same identity-merging logic as the live table, so a
merged person reports **one** first-badge time per day computed across all their
controllers. Days a selected user never badged in are reported as **ABSENT** ,
making the export a complete attendance record for the range.
> Reporting reads existing `badge_events` only — no schema changes, no extra
> storage. First-badge-of-day is just `MIN(ts)` per `(person, date)`.
---
2026-03-04 20:56:30 -06:00
## Updating from GitHub
2026-03-04 17:45:28 -06:00
```bash
2026-03-04 19:53:39 -06:00
cd /mnt/user/appdata/unifi-access-dashboard
git pull
2026-03-04 22:58:00 -06:00
/usr/bin/docker compose up -d --build
2026-03-04 17:45:28 -06:00
```
2026-07-01 23:14:03 -05:00
The SQLite database in `./data/` persists across rebuilds. Schema changes (such
as the `last_event_at` column added for ingestion health) are applied
automatically on boot. On first start after upgrading from a single-controller
install, existing badge events are automatically attached to the seeded
"Default" controller — nothing to migrate by hand.
2026-03-04 22:58:00 -06:00
2026-03-04 19:42:38 -06:00
---
2026-03-04 17:45:28 -06:00
2026-03-04 22:58:00 -06:00
## API reference
2026-03-04 17:45:28 -06:00
2026-05-28 00:39:46 -05:00
All endpoints are unauthenticated by design — this app assumes a LAN-only
deployment. Do not expose port 8000 to the internet without putting a
reverse proxy with auth in front of it.
| Method | Path | Params / Body | Description |
2026-03-04 20:56:30 -06:00
|---|---|---|---|
2026-05-28 00:39:46 -05:00
| `POST` | `/api/unifi-access/<controller_id>` | webhook body | Receives UniFi Access webhook for that controller |
| `POST` | `/api/unifi-access` | webhook body | Legacy alias — routes to the oldest controller |
2026-05-28 15:01:22 -05:00
| `GET` | `/api/first-badge-status` | `date` , `cutoff` , `controller_id?` , `include_filtered?` | Returns first + latest badge per user (filtered tenants hidden unless `include_filtered=1` ) |
2026-07-01 23:14:03 -05:00
| `GET` | `/api/badge-events` | `date` , and either `person_id` **or** `controller_id` +`actor_id` | Every badge-in for one subject on one day, oldest first (for a merged person, across all their identities) |
2026-06-19 09:10:34 -05:00
| `GET` | `/api/report/subjects` | `controller_id?` , `include_filtered?` | List selectable report subjects (merged persons + unmerged actors), each with a stable `key` |
| `GET` | `/api/report` | `start` , `end` , `cutoff?` , `subjects?` , `controller_id?` , `include_filtered?` , `format?` | First badge-in per subject per day over the range. JSON (pivot-shaped) by default; `format=csv` returns a long-format download. Missing days reported as `ABSENT` . `subjects` is a comma-separated list of subject `key` s (empty = all) |
2026-05-28 15:01:22 -05:00
| `GET` | `/api/users` | `controller_id?` , `filtered?` | List cached actors with their filtered flag |
| `PATCH` | `/api/users/<controller_id>/<actor_id>` | `filtered` (bool) | Hide / unhide an actor from the attendance table |
2026-05-28 15:56:36 -05:00
| `GET` | `/api/persons` | — | List merged people with their members |
| `POST` | `/api/persons` | `display_name` , `members[]` | Create a merged person from 1+ `(controller_id, actor_id)` members |
| `PATCH` | `/api/persons/<id>` | `display_name?` , `filtered?` | Rename or hide/unhide a merged person |
| `DELETE` | `/api/persons/<id>` | — | Dissolve a merged person (members become standalone) |
| `POST` | `/api/persons/<id>/members` | `controller_id` , `actor_id` | Add another identity to an existing person |
| `DELETE` | `/api/persons/<id>/members/<cid>/<aid>` | — | Split one identity off; dissolves the person if it was the last member |
| `GET` | `/api/persons/suggestions` | — | Exact full-name matches across controllers, excluding already-merged actors |
2026-07-01 23:14:03 -05:00
| `GET` | `/api/controllers` | — | List configured controllers (includes `last_sync_at` and `last_event_at` for health) |
2026-05-28 00:39:46 -05:00
| `POST` | `/api/controllers` | `name` , `host` , `port` , `api_token` | Add a controller (also registers webhook) |
| `PATCH` | `/api/controllers/<id>` | `name?` , `enabled?` | Rename or enable/disable a controller |
| `DELETE` | `/api/controllers/<id>` | — | Remove a controller (deletes webhook + its events) |
| `POST` | `/api/controllers/<id>/test` | — | Test controller reachability + token |
| `POST` | `/api/controllers/<id>/sync` | — | Sync one controller's user cache immediately |
| `GET` | `/api/sync-users` | — | Sync every enabled controller |
| `DELETE` | `/api/reset-day` | `date` , `controller_id?` | Delete badge records for a date (optionally scoped to one controller) |
2026-03-04 17:45:28 -06:00
2026-03-04 19:42:38 -06:00
---
## Troubleshooting
2026-03-04 22:58:00 -06:00
| Symptom | Cause | Fix |
2026-03-04 19:42:38 -06:00
|---|---|---|
2026-05-28 00:39:46 -05:00
| Add Controller fails with "webhook registration rejected" | Token invalid or wrong scope | Regenerate token in Access → Settings → General → API Token with all scopes enabled |
| Add Controller fails with a connection error | Host unreachable on port 12445 | Verify firewall rule from Step 1; `nc -zv <ip> 12445` from the dashboard host |
| Events arrive but signature is rejected | Webhook secret missing or stale | Remove the controller and re-add it (the dashboard re-registers and gets a fresh secret) |
| Source column says "—" | Pre-migration row with no controller_id | Restart the container; the migration runs on every boot |
| Names show as `Unknown (xxxxxxxx...)` | Users not synced yet for that controller | Click **Sync** in the Controllers modal |
| Webhook URL stored in controller points to the wrong address | Browser's origin isn't reachable from the controller | Set `DASHBOARD_BASE_URL` in `.env` , remove + re-add the controller |
2026-03-04 22:58:00 -06:00
| `Port 12445 connection refused` | Firewall blocking port | Add LAN IN firewall rule in UniFi Network (Step 1) |
2026-05-28 00:54:54 -05:00
| Dashboard shows stale names after a user rename | Cache not refreshed | Click **Sync Users** or wait for the hourly auto-sync |
2026-05-28 15:56:36 -05:00
| A tenant I hid is still showing up | Same person exists on a second controller | Hide them on each controller, or merge their identities under the ** 👥 People** modal so one Hide covers both |
2026-05-28 15:01:22 -05:00
| Filtered tenant doesn't appear when I tick "Show filtered" | They've never badged in on the selected date | Open the ** 🚫 Filtered** modal to confirm they're filtered |
2026-05-28 15:56:36 -05:00
| Same person showing twice with ON TIME + LATE | They badged into two controllers and the identities aren't merged | Click **Merge** on either row (or confirm the auto-suggestion under ** 👥 People**) |
| "actor already belongs to another person" when merging | The actor is already part of an existing merged person | Open ** 👥 People**, find that person, and add this identity to it (or split it off first) |
2026-03-04 20:56:30 -06:00
---
## Security notes
- `.env` is excluded from git via `.gitignore` — never commit it.
2026-05-28 00:39:46 -05:00
- API tokens are stored **in plaintext** in the SQLite DB; the dashboard
assumes a LAN-only deployment. Filesystem permissions on `./data/dashboard.db`
are the only thing protecting them.
- All admin endpoints (`/api/controllers/*` , `/api/sync-users` , `/api/reset-day` )
are **unauthenticated** . Do not expose port 8000 publicly. If external access
is required, place Nginx, Traefik, or Caddy with HTTPS + auth in front of port `8000` .
- Each controller's `webhook_secret` is enforced via HMAC-SHA256 on incoming
events so spoofed webhook posts from outside the LAN are rejected.