Skip to content

v2.0.3

Choose a tag to compare

@andrejs2 andrejs2 released this 21 Mar 16:02

Critical Bug Fix

Fixed observationAms reading stale data from ~2 days ago (#29)

The observationAms history endpoint returns data in reverse chronological order (newest first), but the parser assumed chronological order. This caused all ~107 primary weather stations to display temperature, dew point, humidity, wind, and other measurements from approximately 2 days ago instead of current values.

The discrepancy was most noticeable at night — sensors showed stale daytime temperatures (10-16°C) instead of actual nighttime values (2-3°C).

Changes

  • Fix _parse_primary_station_data() to read days[0]["timeline"][0] (newest) instead of days[-1]["timeline"][-1] (oldest)
  • Catch pydantic.ValidationError in observationAms fallback handler (previously uncaught)
  • Bump version to 2.0.3

Affected

All locations listed in station_map.py (~107 primary ARSO stations). Non-primary locations were unaffected.