Read the statement by Michael Teeuw here.
Default weather module stuck loading after latest MM update
-
@Peter ok, two things…
you ALSO have to add
weatherEndpoint: "/onecall",to each config, as this is required for the 3.0 api
this makes it work with my 3.0 apikey

second,
in the forum, when you post config, or log info, please use the code block wrapper… else the quotes get changed to workd processing type which JS doesn’t understandto do
paste the text into the editor, blank line above and below
select the text just pasted
hit the </> button above the editor -
@sdetweil Thanks, You solve a 2 weeks headache problem wit this line:
weatherEndpoint: “/onecall”,
-
@sdetweil so my config was identical to above, so I’ve added you new line “weatherEndpoint…”
I’m using Putty to access the MM and used pm2 to stop the MM.
which it did.
However now, pm2 via Putty is no longer having any effect on the MM.
MM isn’t launching.run pm2 logs mm and get a parsing error over adding the new line
unexpected token weatherEndpoint your configuration file contains syntax errors.all I’ve added is weatherEndpoint: “/onecall”, to a final line under the apiKey line above.
any thoughts?
edit to add, pm2 status and logs show that pm2 exists still it’s just not launching. can pm2 be “updated” or should I follow the process for a first install?
for completeness I don’t want it to launch MM on boot I just want to be able to start and stop the MM using pm2. -
@JMac did u have the trailing comma
we added code to stop MagicMirror coming up with garbage profile on error
-
@sdetweil I have it exactly as you have it above.
can you share a config for this module as an example?
I can’t even check if this is working with pm2 not launching the MM -
cd ~/MagicMirror
npm start -
@sdetweil Adding ‘weatherEndpoint: “/onecall”,’’ gives some kind of weather, but for the wrong location I presume (26C but it is only 15C here).
So, location ID does not work with API 3.0; it worked with 2.5.
Somebody have the solution?
Lat/ Lon?Peter
-
> magicmirror@2.29.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2024-10-08 19:41:58.640] [LOG] Starting MagicMirror: v2.29.0 [2024-10-08 19:41:58.693] [LOG] Loading config ... [2024-10-08 19:41:58.698] [LOG] config template file not exists, no envsubst [2024-10-08 19:41:59.497] [INFO] Checking config file /home/MagicMirror/MagicMirror/config/config.js ... [2024-10-08 19:41:59.584] [ERROR] Your configuration file contains syntax errors :( Line 94 column 5: Parsing error: Unexpected token weatherEndpointThat parsing error is for the new line added in for weatherEndpoint
-
@JMac yes, the line before needs a trailing comma
-
@Peter Found it in the documentation!
Note: Latitude and longitude are REQUIRED if weatherEndpoint is set to ‘/onecall’. The locationID and location options are ignored when the OpenWeatherMap One Call API is used.
https://docs.magicmirror.builders/modules/weather.html#configuration-options
-
@MaXi-XCeL it works!
Thanks,
Peter -
S sdetweil has marked this topic as solved on
-
Hi I have a new problem now, using /onecall and the correct Lat /Long parameters shows my Time Zone Name omn top of Weather modules and a Crazy time… the Clock Module shows correct.
What else I need to modify to have Weather working again like before the doomed update? ( “Xx” for privacy)
{ module: "weather", CalendarClasses: "current", position: "top_right", header: "Weather Forecast", disabled: false, config: { weatherProvider: "openweathermap", weatherEndpoint: "/onecall", //updateInterval: "20", type: "current", tempUnits: "imperial", degreeLabel: "false", location: "XxXxX", locationID: "XXxXXX", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "XxXXXXxxXXXXxXXxXXxX", showFeelsLike: "false", lat: "2XXXX350", lon: "-8X.3XXxX915" } -
-
@sdetweil Thank you a lot.
I was able to fix the header problem but not the time problem. I looked to a lot of /js files looking for the TimeZone Parameter but I didnt get it.

Also is really weird the 18:48… the different minutes tells that maybe isn’t a timezone problem.
-
@pritikin71 weather with openweather 3 uses lat/lon for location
and time is local system time . make sure you have timezone set correctlycorrected below… sunrise/sunset time is shown (whichever is next)
not current wall clock time -
@pritikin71 said in Default weather module stuck loading after latest MM update:
Also is really weird the 18:48
this is not an actual time, but sunrise or sunset (depending on what comes next)
-
@karsten13 dang I get that wrong EVERY time!
-
@sdetweil said in Default weather module stuck loading after latest MM update:
@karsten13 dang I get that wrong EVERY time!
one of the reasons I wrote my own njk …

-
@karsten13 Wow… you kill me… what a Shame jaja Sorry for the misunderstood and great idea your config/
@sdetweil thanks too
-
@pritikin71 said in [Default weather module stuck loading after latest MM
{ module: "weather", CalendarClasses: "current", position: "top_right", header: "Weather Forecast", disabled: false, config: { weatherProvider: "openweathermap", weatherEndpoint: "/onecall", //updateInterval: "20", type: "current", tempUnits: "imperial", degreeLabel: "false", location: "XxXxX", locationID: "XXxXXX", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "XxXXXXxxXXXXxXXxXXxX", showFeelsLike: "false", lat: "2XXXX350", lon: "-8X.3XXxX915" }My code looks exactly like this i even generated a new api key paid setup payment and i am still only getting loading on my npm start i have Zero Errors im so confused
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
