-
Notifications
You must be signed in to change notification settings - Fork 4
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
API Error - 401 Unauthorised #46
Comments
This happened to me a couple of months ago after first opening a v3.0 account. After some research and discussion with open weather map I concluded the same thing you did and submitted a bug report. Then suddenly a couple of weeks later, it started working. At first I thought it was a software version upgrade but when I checked the version history there had been no upgrades. And it’s still working normally now. Hopefully this will happen for you too.
…Sent from my iPhone
On Nov 29, 2022, at 17:06, CameronSmith93 ***@***.***> wrote:
Hi there,
I just discovered this plugin today, and also created an OpenWeatherMap account at the same time, but it looks like my API key is being rejected:
[30/11/2022, 10:55:44] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized) [30/11/2022, 10:56:45] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized) [30/11/2022, 10:57:46] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized) [30/11/2022, 10:58:46] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized)
From what I've read in here, it appears there's a difference between v2.5 and v3.0 of the API - is there a setting I need to change in the config to get this working?
Thank you!
—
Reply to this email directly, view it on GitHub<#46>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2XK7VCQEU2EGSNT7VMOLL3WK2SAXANCNFSM6AAAAAASPCURNM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Hi, I checked the API using the link everything looks correct"
|
Be aware that:
|
BTW, this call works:
but this doesn't:
There is strong evidence that the |
Thank you for this wonderful plugin ! I subscribed to One Call API 3.0 https://openweathermap.org/api/one-call-3 and I modify /var/lib/homebridge/node_modules/homebridge-smart-irrigation/index.js this line : "const url = 'https://api.openweathermap.org/data/2.5/onecall?lat=' + this.latitude + '&lon=' + this.longitude + '&exclude=current,minutely,hourly>" in this "const url = 'https://api.openweathermap.org/data/3.0/onecall?lat=' + this.latitude + '&lon=' + this.longitude + '&exclude=current,minutely,hourly>" and now I haven't API Error - 401 Unauthorised ever. Please make an update for other users. Have a good day. Louison. |
@Louison-B Can you submit a pull request? |
@jmaferreira here you go: Note: Users will have to add payment details to use v3.0 one call api. |
Hi All - can someone explain how I modify my install to use the new API 3.0 calls please? Everything else should be in place, including the OWM subscription & I can see the line (168) in the index.js file here on GitHub, but I can't find that file on my Pi to make the changes - I'm guessing its not that simple? Thanks for your help |
Hi there,
I just discovered this plugin today, and also created an OpenWeatherMap account at the same time, but it looks like my API key is being rejected:
[30/11/2022, 10:55:44] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized) [30/11/2022, 10:56:45] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized) [30/11/2022, 10:57:46] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized) [30/11/2022, 10:58:46] [Sprinklers] Error getting weather data or Response code 401 (Unauthorized)
From what I've read in here, it appears there's a difference between v2.5 and v3.0 of the API - is there a setting I need to change in the config to get this working?
Thank you!
The text was updated successfully, but these errors were encountered: