rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
309 stars 100 forks source link

OpernWeather API call fails #190

Open keithfisher123 opened 1 year ago

keithfisher123 commented 1 year ago

On a raspberry Pi I set the config.h to use

define WEATHER_OPENWEATHER

I got an account and an API key I entered the key and LAT,Long in the config screen When I try to do Advanced Weather Diagnostics I get Invalid Response from Weather Provider server!

Is it working for anyone?

Note - after playing with this some.. It seems that the 2.5 version of the OneCall API is not working for me - the only one that returns data is 3.0 version. So I edited the URL in Opwnweather.cpp to be 3.0 instead of 2.5 that does produce a json file however I still get the Invalid Response from Weather Provider server! I don't know c but I'm trying to hard code the key and lat long so I can just run inside the init.d directory so I can see the trace outputs...(sorry I dont know any other way to do it :) )

Ill see if i can find any more info that might be usefull I made a new config for OPENWEATHER V3 API That way existing users who are allowed 2.5 access will still work Thanks!

gargamelonly commented 2 months ago

It is working for me without any modifications. At least until yesterday. However got an email from OW saying 2.5 api call support will end by June 2024. Only 3.0 will work after that deadline.