Open-Meteo's daily high/low for the current day aggregates only the hours elapsed so far, so grading it reads a still-unfolding day as complete and produces spurious extremes — a cool morning served as a 1st-percentile record-low high. The MET Norway primary already guards this with its diurnal-coverage gate; the Open-Meteo fallback had no equivalent, so a fleet-wide failover onto it exposed the bug. Use the utc_offset_seconds Open-Meteo reports for a timezone=auto request to identify the cell's local today and exclude it from the bundle. Past days are complete and future days are whole-day forecasts, so only today is dropped; the day lands in the record once it is over. When no offset is reported the guard is skipped rather than guessing a date. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cities.py | ||
| city_events.py | ||
| climate.py | ||
| climate_store.py | ||
| era5lake.py | ||
| grading.py | ||
| grid.py | ||
| meteostat.py | ||
| places.py | ||
| scoring.py | ||
| store.py | ||