Read the statement by Michael Teeuw here.
Version 2.30.0 weather module, stuck loading, worked fine before upgrade
-
Earlier this year(2024), OpenWeather informed us users that they were discontinuing their old 2.5 api version (after 3 years of work)…
this requires a new apikey, which requires a credit card backing.
but some number of api requests per day are not charged, (as of 1/1/2025, 1000 api calls per day are ‘free’)see https://openweathermap.org/guide
anyhow, we changed the module defaults to support the new ‘required’ api
other users have mentioned that thye have changed the apiVersion back to 2.5
and set the weatherEndPoint back to /weather and /forecast (as appropriate)apiVersion:.2.5, weatherEndpoint:"/weather" or weatherEndpoint:"/forecast"from the MM doc

NOTE: as we understand it, at some point in the future, the 2.5 api will stop working at all… (jan1 , 2024, June 15 , 2024, Oct 14, 2024… who knows) -
S sdetweil pinned this topic on
-
S sdetweil referenced this topic on
-
@sdetweil I signed up for the new subscription and regenerated my API key (just to be safe). I remember it taking some time to show up the first time,so hopefully it will be back to normal in the morning! Thanks for the information.
-
@sdetweil After 24 hours, I’m still stuck at “loading…” could you confirm if I have the config set up properly? I signed up for the Onecall 3.0 API subscription, and it says it’s active.
{ module: "weather", position: "top_left", config: { weatherProvider: "openweathermap", apiVersion: "3.0", type: "forecast", weatherEndpoint: "/forecast", lat: "xxx", lon: "-xxx", apiKey: "cxxx", roundTemp: true, showPrecipitationAmount: true, tableClass: "medium", colored: true, } }, { module: "weather", position: "top_right", config: { weatherProvider: "openweathermap", apiVersion: "3.0", type: "current", weatherEndpoint: "/weather", lat: "xxx", lon: "-xxx", apiKey: "cxxx", showWindDirectionAsArrow: true, showSun: false, roundTemp: true, } }, -
@angeliKITTYx said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:
apiVersion: "3.0", type: "forecast", weatherEndpoint: "/forecast",for apiVersion 3.0, you can ONLY use /onecall as the endpoint
those endpoints /forecast, /… are only good with the old 2.5 apiVersion
-
@sdetweil not going to lie, but I don’t see anywhere saying we have to use /onecall as the endpoint, but that worked for me for both of my current and forecast modules. The location is stating my time zone city (which is 8 hours north) , but the information seems to be correct when comparing it to a weather website. Thank you for the help.
-
@angeliKITTYx openweather only provides /onecall in v3.0
that is why the default is 3.0 and /onecallyou don’t have to specify them since this release
location? where do you see that?
-
you can see on the right module it says “America/New_York” which is my timezone city, but my lat/lon is set to my home many states south. They used to both say that, but I added the “appendLocationNameToHeader” parameter to the left one to see what it would look like.
Before the API update, it would properly display my home city. I’m pretty sure it’s displaying the correct weather information, but we surprisingly have similar weather to NY right now so it’s hard to confidently confirm.
-
@angeliKITTYx yes, new openweather api does not return the location info anymore. so you have to add
appendLocationToHeader: false
and add your own headeri will add that info to the top entry as well
-
@sdetweil yeah that’s what I ended up doing. Thank you again for all your help the last few days! Glad to have everything back to normal.
-
Ran the update, weather module failed , read this thread and can now have either weather or forecast. Can we no longer have both, like before?
-
@Richard238 two instances, type: as appropriate. NO endpoint setting. The v3 openweather api only supports /onecall (already set as default)
https://forum.magicmirror.builders/post/123079
The config.js.sample shows two instances -
@sdetweil said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:
ionToHeader: false
default config sample works, but that’s using openmeteo, not openweathermap, is that correct?
{ module: "weather", position: "top_right", config: { weatherProvider: "openmeteo", type: "current", lat: 40.776676, lon: -73.971321 } }, { module: "weather", position: "top_right", header: "Weather Forecast", config: { weatherProvider: "openmeteo", type: "forecast", lat: 40.776676, lon: -73.971321 } }, {openweathermap.js I have as
apiVersion: "3.0", apiBase: "https://api.openweathermap.org/data/", // weatherEndpoint is "/onecall" since API 3.0 // "/onecall", "/forecast" or "/weather" only for pro customers weatherEndpoint: "/onecall", -
@Richard238 leave off those parms. Defaults to 3.0 etc
Just put in your 3.0 apikey and lat/lon
And of course set the provider -
@sdetweil said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:
leave off those parms.
Which ones, sorry?
-
@Richard238 all the openweather ones you showed
-
This gives the ‘undefined, invalid date’ error on the MM
{ module: 'weather', header: 'Current xxxxxxxxxxxxxxx weather: ', position: 'top_right', config: { weatherProvider: "openweathermap", lat: 11111111, lon: 2222222, apiKey: "33333333333" } }, -
@Richard238 and you used real lat/lon
-
Yes, real Lat:Lon used
-
Do the L:L and API key live in the openweathermap.js file, or the config.js file? Or both?
-
@Richard238 all config goes in config.js
Never need to edit any other file
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
