rszimm / sprinklers_pi

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

Openweather API fails, no free historical data for new users? #195

Closed jefedeestado closed 1 year ago

jefedeestado commented 1 year ago

Had to update this season as it was unstable and would not work for more than a few minutes. Upgraded to 1.7.0 and it runs fine, but since darksky is now gone I've switched to using openweather. Setup an api key 3-4 days ago. I get 'invalid response' from the sprinklerspi when it tries to call. When I do manual calls, I can only get a valid response for current weather and it appears the the openweather.cpp code is trying to pull historical data. Digging about on openweather, it appears that you can't get historical data for free. So do I have to pay for an account to get my sprinklers to work?

nhorvath commented 1 year ago

Someone mentioned that you can only use v3 with new accounts and we only support v2 right now. They were working on this PR but it's not finished. https://github.com/rszimm/sprinklers_pi/pull/191

Aeris should work for free but you need to micromanage it more because they keep making you renew your free account.

jefedeestado commented 1 year ago

Been reading documentation on openweather... yeah it seems that I have to create an account for 3.0. It's free for 1000call/day, but they still want you to plug in a credit card number. I've just done that, I'll give it an hour or so to see if it will work. If that does the job, it seems all that would be needed is to change the 2.5 to 3.0 in openweather.cpp. I'll come back in a couple hours and see if that works.


From: Nick Horvath @.> Sent: Thursday, May 18, 2023 9:23 AM To: rszimm/sprinklers_pi @.> Cc: jefedeestado @.>; Author @.> Subject: Re: [rszimm/sprinklers_pi] Openweather API fails, no free historical data for new users? (Issue #195)

Someone mentioned that you can only use v3 with new accounts and we only support v2 right now. They were working on this PR but it's not finished. #191https://github.com/rszimm/sprinklers_pi/pull/191

Aeris should work for free but you need to micromanage it more because they keep making you renew your free account.

— Reply to this email directly, view it on GitHubhttps://github.com/rszimm/sprinklers_pi/issues/195#issuecomment-1553306183, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKOWUCEGRA4P5HNB4ZPM6JTXGZEJDANCNFSM6AAAAAAYGVJZFM. You are receiving this because you authored the thread.Message ID: @.***>

jefedeestado commented 1 year ago

Turns out that I just needed to make a full account with a CC on file, the code now works just fine without any changes at all. Might be a good idea to add that to the instructions in the wiki