4 Commits

Author SHA1 Message Date
b7b2e7fc61 Fix periodic poll never finding new readings
extract_readings() only read the latestReading field embedded in the
stations-endpoint response. For some stations that field is always
null even though the measure's own /readings endpoint has current
data, so every non-backfill poll silently found 0 readings forever.
Now falls back to fetching the single latest reading directly from
the measure when the embedded field is missing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-05 01:41:02 +01:00
fd11c956d0 Add --no-html flag and Synology Task Scheduler setup
--no-html skips dashboard generation for deployments where river.php
reads the SQLite DB directly. synology-task.sh is a ready-to-configure
wrapper for DSM Task Scheduler.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-05 00:36:07 +01:00
9a0308d380 Add --backfill flag to fetch historical readings from EA API
Pulls up to 28 days of 15-minute readings per station using the
/measures/{id}/readings?since= endpoint.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-05 00:25:46 +01:00
afe742dcce Initial commit: river level monitoring service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-05 00:09:00 +01:00