Open Ray94520 opened 1 month ago
Same here, tried with a new API key as well.
I found the solution to this problem everything is working fine now
I found the solution to this problem everything is working fine now
What is the solution?
I'm not at home right now I'll tell you how to do it when I get home
On Thu, Oct 3, 2024, 12:07 PM Gaëtan Trellu @.***> wrote:
I found the solution to this problem everything is working fine now
What is the solution?
— Reply to this email directly, view it on GitHub https://github.com/jclarke0000/MMM-OpenWeatherForecast/issues/36#issuecomment-2392131391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AURAAS7DS7ODOBY6KT5T62TZZWIYBAVCNFSM6AAAAABPEAR7CCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGEZTCMZZGE . You are receiving this because you authored the thread.Message ID: @.***>
Hi, what is the solution? I have the same problem.
The openweathermap change their version from 2.5 to 3.0 you have to enter a credit card in order for it to work you still get a 1000 calls for free but if you go over they will charge you you can also set your call limit I made mine 999 the procedure is very simple
Once you do that your original app key should work at least it did for me then you need to replace var url = "https://api.openweathermap.org/data/2.5/onecall?" With var url = "https://api.openweathermap.org/data/3.0/onecall?" You will find that in node_helper.js
In your config file make sure you set the 10 minutes to 15 that's what I did otherwise you go over your call limit
Hi,
I tried the solution you proposed, but it doesn't work; it keeps loading.
The log returns the following error:
[MMM-OpenWeatherForecast] 5-Oct-24 12:47 ** ERROR ** Error: Request failed with status code 401
Below is the excerpt from the config file and the node_helper.js file.
{
module: 'MMM-OpenWeatherForecast',
position: 'top_right',
header: 'Previsioni',
config: {
apikey: 'myAPIkey',
latitude: **.*****,
longitude: '**.******',
forecastHeaderText: 'I prossimi giorni',
showHourlyForecast: false,
updateInterval: 15,
label_days: [
'Dom',
'Lun',
'Mar',
'Mer',
'Gio',
'Ven',
'Sab'
],
extraCurrentConditions: {
highLowTemp: true,
precipitation: true,
sunrise: true,
sunset: true,
wind: true,
barometricPressure: false,
humidity: true,
dewPoint: false,
uvIndex: false,
visibility: false
}
}
},
var url = "https://api.openweathermap.org/data/3.0/onecall?" +
"lat=" + payload.latitude +
"&lon=" + payload.longitude +
"&exclude=" + "minutely" +
"&appid=" + payload.apikey +
"&units=" + payload.units +
"&lang=" + payload.language;
The openweathermap change their version from 2.5 to 3.0 you have to enter a credit card in order for it to work you still get a 1000 calls for free but if you go over they will charge you you can also set your call limit I made mine 999 the procedure is very simple
Once you do that your original app key should work at least it did for me then you need to replace var url = "https://api.openweathermap.org/data/2.5/onecall?" With var url = "https://api.openweathermap.org/data/3.0/onecall?" You will find that in node_helper.js
In your config file make sure you set the 10 minutes to 15 that's what I did otherwise you go over your call limit
Works for me, after changing the URL and putting my billing information it took about 30 minutes before showing information back to the mirror.
Thanks for sharing!
For me, it doesn't work, but I think it's an Open Weather issue because in the "My services" section, it still shows "Free Plan."
I tried sending them an email.
I receive an HTML 401 error:
API calls return an error 401 Error 401 - Unauthorized. You can get 401 error if API token did not provide in the request or in case API token provided in the request does not grant access to this API. You must add API token with granted access to the product to the request before returning it.
So, you have to pay, I think as @cacy82 already mentioned.
There is an active fork of this module: https://github.com/Tom-Hirschberger/MMM-OpenWeatherForecast.
I recommend to switch to it.
It's on my schedule and just as soon as I have time I will dumbly be looking into it but for right now this one is working just fine
I just opened a pull request to commit the change to use the 3.0 endpoint.
For me, it doesn't work, but I think it's an Open Weather issue because in the "My services" section, it still shows "Free Plan."
I tried sending them an email.
You shouldn't be under free plan. You need to select base plan.
https://home.openweathermap.org/subscriptions
It should look something like this.
So all of a sudden OpenWeatherForecast is displaying loading I also have a virtual mirror and it is doing exactly the same thing
I went to the website and everything checked out fine even my app key I even went to their weather map and it is showing the temperature
I have been using this for quite some time so I don't understand what's going on unless the service is down
ps: I even tried different coordinates with no luck