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>
19 KiB
19 KiB