Files
river-monitor/river_monitor.py
simon 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

19 KiB