lunch-notifier/.env.example
Barely Removable 3d374c4417
All checks were successful
Deploy / deploy (push) Successful in 46s
Pull daily instead of on day 25; skip past dates and weekend misreads
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>
2026-09-29 10:49:59 -07:00

21 lines
810 B
Text

# Copy this to .env and fill in your values
# --- Required ---
# Home Assistant webhook URL that receives the day's menu and creates a
# calendar event (see automation.lunch_menu_family_calendar in HA).
# e.g. http://192.168.86.X:8123/api/webhook/<random-token>
HA_WEBHOOK_URL=
# Anthropic API key. The district's lunch menu is now a graphic PDF
# calendar (Nutrislice was discontinued), so scraper.py sends it to Claude
# to read into structured data — see console.anthropic.com/settings/keys.
ANTHROPIC_API_KEY=
# --- Optional ---
# 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
PORT=2323