Setup
Each collector uploads to with its own API key. Open a collector below and click Generate key; the key is filled into its steps. A key is shown only once.
Devices
| Loading… |
BrowserViolentmonkey userscript · time per site
Records tab_focus intervals labelled by hostname. A tab counts only while it's the selected tab of the focused window, and stops after 5 minutes without input unless video or audio is playing.
- Install Violentmonkey: Firefox · Chrome / Chromium
- Open and click Install. Violentmonkey checks this URL for updates.
- Click the Violentmonkey toolbar icon, then Activity Tracker → Set server and API key. Enter the server and key:
trk_… (generate a key above)
- Check it with Status / upload now in the same menu. Uploads happen every minute.
The menu also turns full URLs and page titles on or off (both off by default), sets hosts to ignore, and changes the idle timeout. about: pages, the new tab page, extension stores and the PDF viewer can't run scripts, so they aren't recorded; Hyprland still counts them as browser time.
Hyprland desktopfocused window, idle and locked time
Records app_focus intervals labelled by window class, with the title.
1. Install the agent
git clone ssh://git@stppi.tailf20278.ts.net:2222/adamf/ccp.git && cd ccp make install-agent # ~/.local/bin/hypr-agent and the systemd user unit
2. Configure and start it
mkdir -p ~/.config/hypr-agent
cat > ~/.config/hypr-agent/env <<EOF
TRACKER_URL=
TRACKER_API_KEY=trk_…
# HYPR_AGENT_TITLES=false # don't send window titles at all
# HYPR_AGENT_REDACT=(?i)bank|private # replace matching titles with [redacted]
EOF
chmod 600 ~/.config/hypr-agent/env
systemctl --user enable --now hypr-agent
3. Idle and lock (optional)
Add to ~/.config/hypr/hypridle.conf:
general {
lock_cmd = hypr-agent lock; pidof hyprlock || hyprlock
unlock_cmd = hypr-agent unlock
}
listener {
timeout = 300
on-timeout = hypr-agent idle
on-resume = hypr-agent resume
}
Check it with journalctl --user -u hypr-agent -f. Events upload every minute and wait in ~/.local/state/hypr-agent/buffer.jsonl while the server can't be reached.
Apple Healthwalks, workouts, steps, sleep
Workouts become activities (walk, run, workout); step counts, sleep and other metrics become samples.
In the Health Auto Export iOS app, create a REST API automation:
- URL:
/api/v1/health/hae - Header:
Authorization=Bearer trk_… - Format: JSON · Sync cadence: hourly
- Data: Workouts, plus metrics such as Step Count and Sleep Analysis
Scriptspost any interval with curl
curl -X POST /api/v1/manual/events \
-H 'Authorization: Bearer trk_…' -H 'Content-Type: application/json' \
-d '{"events":[{"id":"reading-2026-10-14","kind":"reading","label":"book",
"started_at":"2026-10-14T20:00:00Z","ended_at":"2026-10-14T20:45:00Z"}]}'
The id makes re-sending safe: a duplicate is ignored. Webcam presence (/api/v1/presence/events) has an endpoint but no agent yet.
Goalsdaily targets on the dashboard
Managed on the Pi. An empty label matches every label of that kind.
docker exec activity-tracker tracker goal add --kind tab_focus --label youtube.com --op '<=' --target 1h docker exec activity-tracker tracker goal add --kind walk --op '>=' --target 30m docker exec activity-tracker tracker goal list docker exec activity-tracker tracker goal rm --id 2