5 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
b1abac0f33 Add CLAUDE.md with web integration instructions for river.php
Documents the DB schema, useful queries, and exact steps for the
web repo Claude to add river.php and the nav link to the site.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-05 00:37:31 +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