Pull daily instead of on day 25; skip past dates and weekend misreads
All checks were successful
Deploy / deploy (push) Successful in 46s
All checks were successful
Deploy / deploy (push) Successful in 46s
The monthly day-25 pull pushed whatever month the district's permalink served. September's PDF was still live on 9/29, so the 9/25 pull re-pushed September and October would not have been pulled until 10/25. Home Assistant now dedups lunch events per date, so pull every day and pick up a new month the evening it's posted. - push only today onward; skip weekend dates that have items (a misread date: Fri 9/25's menu once landed on Sat 9/26) and log a warning - settings schema is just calendar_run_time; load_settings keeps only known keys and startup rewrites the file, dropping stale SMS-era data - UI: remove day-of-month field and the "no dedup" warning, fix buttons that reverted to "This Week" labels - docs: daily scheduler, HA queued mode + dedup, calendar is iCloud Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a809aa5a5a
commit
3d374c4417
3 changed files with 105 additions and 116 deletions
10
.env.example
10
.env.example
|
|
@ -12,13 +12,9 @@ HA_WEBHOOK_URL=
|
|||
ANTHROPIC_API_KEY=
|
||||
|
||||
# --- Optional ---
|
||||
# Day of the month (1-28) to pull whichever month is currently published
|
||||
# and push it to the calendar. Re-pushing the same month creates duplicate
|
||||
# events, so pick one day near month-end (the district tends to post next
|
||||
# month's menu a few days early).
|
||||
CALENDAR_RUN_DAY_OF_MONTH=25
|
||||
|
||||
# Time to run the pull (24-hour HH:MM, container timezone)
|
||||
# Time of the daily pull (24-hour HH:MM, container timezone). Each day it
|
||||
# pushes today onward from whichever month is published; Home Assistant
|
||||
# skips dates that already have a lunch event, so daily pulls are safe.
|
||||
CALENDAR_RUN_TIME=18:00
|
||||
|
||||
# HTTP server port
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue