rszimm / sprinklers_pi

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

add weather forecast source from weatherbit.io #186

Open gargamelonly opened 2 years ago

gargamelonly commented 2 years ago

Since I see that Openweather has become unstable in the last couple of months I would like to change to use an alternate free weather API source. The API documentation is available here: https://www.weatherbit.io/api

I assume we will need the default 48 hour forecast for sprinklers_pi, right? Here is the API format documentation: https://www.weatherbit.io/api/weather-forecast-120-hour

Or do we need the 16 day forecast? https://www.weatherbit.io/api/weather-forecast-16-day

nhorvath commented 2 years ago

aeris is free and works fine, please use that as looking into this will not be a near term project unless someone volunteers to do it. We need yesterday's weather and today's forecasts.

On Mon, Sep 27, 2021 at 10:59 AM gargamelonly @.***> wrote:

Since I see that Openweather has become unstable in the last couple of months I would like to change to use an alternate free weather API source. The API documentation is available here: https://www.weatherbit.io/api

I assume we will need the default 48 hour forecast for sprinklers_pi, right? Here is the API format documentation: https://www.weatherbit.io/api/weather-forecast-120-hour

Or do we need the 16 day forecast? https://www.weatherbit.io/api/weather-forecast-16-day

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXBYLR3WPF375GPAD6DUECBEDANCNFSM5E2YUQ2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

gargamelonly commented 2 years ago

I could not see it has a free option, only a 30 day trial. I created an account and it is valid only until end of October.

nhorvath commented 2 years ago

If you sign up for the dev key it doesn't actually expire. You used to have to "renew" it for free every 30 days but i haven't in a year at least.

On Mon, Sep 27, 2021 at 11:41 AM gargamelonly @.***> wrote:

I could not see it has a free option, only a 30 day trial.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/186#issuecomment-927996244, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXCXBSBEONCY6RNR343UECGBPANCNFSM5E2YUQ2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nhorvath commented 2 years ago

Correction, it was every 2 months, I'm also signed up for weather widgets which is for lifetime (also free) maybe that's why I don't have to renew my dev key anymore.

On Mon, Sep 27, 2021 at 11:54 AM Nick Horvath @.***> wrote:

If you sign up for the dev key it doesn't actually expire. You used to have to "renew" it for free every 30 days but i haven't in a year at least.

On Mon, Sep 27, 2021 at 11:41 AM gargamelonly @.***> wrote:

I could not see it has a free option, only a 30 day trial.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/186#issuecomment-927996244, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXCXBSBEONCY6RNR343UECGBPANCNFSM5E2YUQ2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

gargamelonly commented 2 years ago

How do I update the weather provider without resetting the existing schedule configuration?

nhorvath commented 2 years ago

backup your /etc/local/sprinkers_pi just in case, but it should just work if you recompile with different weather options. You'll have to change the settings for weather once you start it.

On Mon, Sep 27, 2021 at 12:18 PM gargamelonly @.***> wrote:

How do I update the weather provider without resetting the existing schedule configuration?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/186#issuecomment-928041291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXEHXTIDZAN3TTHJYYLUECKNFANCNFSM5E2YUQ2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.