OpenSprinkler / OpenSprinkler-Weather

OpenSprinkler weather service used to calculate watering scale for the OpenSprinkler Unified Firmware.
https://opensprinkler.com
63 stars 38 forks source link

Open weather map (OWM) free API changes break the weather service #122

Closed cubiczar closed 2 years ago

cubiczar commented 2 years ago

It looks like at some point the OWM service changed the available API calls for their "free" tier subscription. I've added a pull request which seems to work to fix the issue. I mainly tried to just translate between the old API structure and the new one to keep the main code the same.

The main area of concern would be the data aggregating I'm doing when translating between hourly forecasts and the previous 3 hour forecast data, should be minimal though.