v2.0.3
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 readdays[0]["timeline"][0](newest) instead ofdays[-1]["timeline"][-1](oldest) - Catch
pydantic.ValidationErrorin 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.