wake-alarm/wake-alarm-fallback.timer
Krzysztof kuhy Rudnicki 8c511c148c Ring the PC at 21:00 when notifications off
The fallback timer also ticks 21:00-21:59; those ticks go to
_fallback_evening before any morning code. Rings while today's
newest notifications event says off, 30 min cap on its own latch,
never when tomorrow is free or sick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:52:11 +01:00

18 lines
616 B
SYSTEMD

[Unit]
Description=Wake Alarm PC fallback alarm, once a minute mornings and 21:00-21:59
Documentation=https://github.com/kuhyx/wake-alarm
[Timer]
# 04:00-09:59 covers A-5min..A+45min for any alarm the phone can set (A is
# clamped to <= 08:00). Outside that window a tick reads only local files.
# Through 11:59: a phone bypass rings the PC up to A + 4 h (A <= 08:00).
OnCalendar=*-*-* 04..11:*:00
# 21:00-21:59: the notifications check (DOCS-bypass.md); fetches only then.
OnCalendar=*-*-* 21:*:00
AccuracySec=1s
# Catch up at once after the RTC resume or a boot.
Persistent=true
[Install]
WantedBy=timers.target