sopel-irc / sopel-weather

A working re-implementation of the weather plugin for Sopel
MIT License
6 stars 7 forks source link

openmeteo: switch from `current_weather` to `current` parameter #51

Closed dgw closed 11 months ago

dgw commented 11 months ago

The current_weather=1 parameter no longer appears in Open-Meteo documentation, and is likely deprecated.

Handling that response format also presented us with intermittent bugs, especially around fetching humidity data from an hourly series based on timestamp data that wasn't necessarily aligned with that series.

Using the 'current' parameter, we can directly request exactly the weather properties we need, and nothing else.

Fixes #50.