Read the statement by Michael Teeuw here.
Default weather module not showing after MM update
-
@mumblebaj I xxx out the last few digits
-
@mumblebaj If I enter shit + ctrl + i in the terminal nothing shows up but a dialog box with Cancel and OK
-
@01ZerosOnes01 Hi. Not in the terminal from the browser window that displays the mirror. I have created an Openweathermap api key and I get an unauthorized error in the Developers window. I guess I have to wait for it to activate first. Once it is active I will see if I can spot anything.
-
@mumblebaj Okay this is what I get when I run shift + ctrl + i
Load script: modules/default/weather/weather.js
:8080/modules/default/weather/weather.js:159 Uncaught SyntaxError: Unexpected token . -
@01ZerosOnes01 said in Default weather module not showing after MM update:
@mumblebaj Okay this is what I get when I run shift + ctrl + i
Load script: modules/default/weather/weather.js
:8080/modules/default/weather/weather.js:159 Uncaught SyntaxError: Unexpected token .I’m receiving the same error after updating to 2.20.0. Here’s the text from the weather.js error line 159: " currentWeather: this.weatherProvider?.currentWeatherObject?.simpleClone() ?? null,(RED X)"
-
@Jarhead96097 Thanks for your info. Hopefully someone can come up with the fix.
-
how did u upgrade,and from what version?
I don’t see any significant code change here this release…
-
I keep the mirror updated so I am assuming it was updated from the last version.
I updated by first issuing git stash then git pull && npm install --only=prod --omit=dev
followed by git stash applyAll other default and third party modules work.
Thank for your help it is appreciated.
-
@01ZerosOnes01 I had my API authorized and the module works just fine with your location data. The only change I made was not add quotes around the locationID.

locationID: 4891010, -
@sdetweil I also upgraded from 2.19.0, which had been upgraded from 2.18.0. No problems before today.
-
@mumblebaj Well, unfortunately, removing the quotes around locationID did not resolve the issue on my configuration. I still receive “Uncaught SyntaxError: Unexpected token” in weather.js:159.
-
Raspberry Pi 4 2GB
Well this is what i have done so far.
Removed SD card with broken default weather module.
With new SD card installed fresh 64bit Pi OS
Fresh manual install of MagicMirror
“name”: “magicmirror”,
“version”: “2.20.0”,
“description”: “The open source modular smart mirror platform.”,
“main”: “js/electron.js”,Entered my openweathermap credentials
and
Walla! the weather module works.
I have no idea why the weather module broke after the MagicMirror update. I will be following this thread to see if it is a problem or it was just a fluke.
Good luck and thanks to all that contribute.
Now I just have to reload my third party modules and customizations. -
@01ZerosOnes01 @sdetweil Glad to hear you’re up and running on a fresh install… I’m hoping to avoid having to rebuild mine. Any other thoughts?
And thanks for your time in advance!
-
@Jarhead96097 would be interested in knowing if my upgrade script avoided this problem
-
@01ZerosOnes01 you do not have a “ to start your string, only one at the end…
-
@Jarhead96097 I was lucky I had a backup of my config. So just a reinstall and copy and paste. Everything is working fine now.
All the best. -
@sdetweil I updated with your script and had no issues at all. Everything is fine.
-
@01ZerosOnes01 said in Default weather module not showing after MM update:
@mumblebaj Okay this is what I get when I run shift + ctrl + i
Load script: modules/default/weather/weather.js
:8080/modules/default/weather/weather.js:159 Uncaught SyntaxError: Unexpected token .I’m running into the exact same issue as explained above since I updated my MM.
However, I only get this error message in chromium on the rasperry pi itself when I call the URL of the MM. All other devices in my network can display the Weather Module cleanly when I access the page via LAN IP. Both chromium and firefox on my notebook and my smartphone are displaying the default weather module cleanly.
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