mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-10 16:38:38 +01:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWZd3smuxDGmEgXkYP8
21 lines
767 B
SYSTEMD
21 lines
767 B
SYSTEMD
[Unit]
|
|
Description=Wake Alarm morning-session refresh, every 2 min through the morning
|
|
Documentation=https://github.com/kuhyx/wake-alarm
|
|
|
|
[Timer]
|
|
# From 05:00 (the night lockdown lifts and the login-armed locks decide):
|
|
# every 10 min until the alarm hour is near, every 2 min from 07:00 to 10:58,
|
|
# then once at 11:00 (the carrot's end) so the last rewrite lands on the
|
|
# boundary. ~133 Firebase reads/day.
|
|
OnCalendar=*-*-* 05..06:00/10:00
|
|
OnCalendar=*-*-* 07..10:00/2:00
|
|
OnCalendar=*-*-* 11:00:00
|
|
AccuracySec=1s
|
|
# A PC booted mid-morning refreshes at once, retrying in-process every 5 s
|
|
# for 150 s (no DNS yet at boot); the consumers wait up to 180 s for exactly
|
|
# this catch-up before treating the file as stale.
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|