radio: quiet hours for reminders (default 23:00-07:30 Amsterdam, RADIO_QUIET_HOURS overrides)
All checks were successful
Deploy production / deploy (push) Successful in 1m21s

This commit is contained in:
2026-10-26 17:18:59 +00:00
parent 95a8b76562
commit f954881bcc
6 changed files with 74 additions and 5 deletions

View File

@@ -21,3 +21,7 @@ Private (owner-only, 404 for everyone else) tracker for Opa Chiel's scanner hobb
- Both read `~/.config/radio.env` (mode 600): `RADIO_NTFY_URL` (ntfy topic URL), optional
`RADIO_NTFY_TOKEN`. Log: `~/.local/state/radio.log`.
- `bun scripts/radio.ts upcoming` prints the next 24 h of reminders without sending.
## Quiet hours
Reminders whose send time (event minus 10 min) falls in 23:00-07:30 Europe/Amsterdam are skipped. Override with `RADIO_QUIET_HOURS=HH:MM-HH:MM` (or `off`) in `~/.config/radio.env`; the page shows the code default (`QUIET_HOURS` in `src/lib/radio/index.ts`). `bun scripts/radio.ts upcoming` marks skipped reminders as QUIET-SKIP.