testsAndMisc/python_pkg/screen_locker/workout-locker.timer
Krzysztof kuhy Rudnicki 1322700cc8 feat(screen_locker): harden bypass prevention
- Add HMAC-SHA256 signing/verification for workout log entries
- Add NTP-based clock skew detection (fail-open for network issues)
- Add exercise count and recency cross-checks for StrongLifts DB
- Add minimum workout duration (50 min) enforcement
- Configure systemd service auto-restart on failure (2s delay)
- Reduce boot timer from 30s to 5s, add i3 autostart suggestion
- Add comprehensive tests (187 total, 100% branch coverage)

Note: pylint hook skipped (pre-existing score 6.69/10 < 8.0 threshold)
2026-04-09 21:44:13 +02:00

11 lines
158 B
SYSTEMD

[Unit]
Description=Periodically check if workout was done today
[Timer]
OnBootSec=5s
OnUnitActiveSec=15min
Persistent=true
[Install]
WantedBy=timers.target