Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openweathermap update to 3.0 #67

Open
Jeffaffa opened this issue Sep 21, 2024 · 6 comments
Open

Openweathermap update to 3.0 #67

Jeffaffa opened this issue Sep 21, 2024 · 6 comments
Assignees

Comments

@Jeffaffa
Copy link

Openweather is upgrading towards version 3.0. It seems version 2.5 is not working anymore with the current version of smart irrigation.

Error getting weather data or Response code 401 (Unauthorized)

@Vagenthar
Copy link

This is one of the best plugins for homebridge. Please update it.

@Jeffaffa
Copy link
Author

Jeffaffa commented Sep 23, 2024

I changed the code on line 168 of index.js from 2.5 to 3.0.

const url = 'https://api.openweathermap.org/data/3.0/onecall?lat=

Now it works again.

@Vagenthar
Copy link

And how I can do that ?

@Jeffaffa
Copy link
Author

edit this file homebridge\node_modules\homebridge-smart-irrigation\index.js

search for https://api.openweathermap.org/data/2.5/ and replace 2.5 with 3.0

@Vagenthar
Copy link

Thanks that worked.

@cladmonitor
Copy link

Thanks for the detail, also you need to subscribe to the new one call 3.0 service. It will require a CC but has 1000 call per day base which is totally free. Once you subscribe it will take appx 30min for the subscription to be come active regardless if you get an email stating it’s active or not. They do have a simply web request link in the email though so you can see if you’re still getting a 401 or if it’s working. As soon as I changed the 2.5->3.0 in the code, restarted homebridge and subscribed to the new service I got a push notification about 30min (from my configured pushover endpoint) saying the irrigation was scheduled properly.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants