Read the statement by Michael Teeuw here.
MMM-Weather-Now is borking my MagicMirror after v2.13.0 update
-
looks like its the translation file
translations/da.jsonwhich has a comment in it… not allowed in json
{ /* NOW key can be translated to "Lige nu", please provide footage or description of where and how it's used */ "NOW": "Nu", "FEELS_LIKE": "Føles som" }
remove that line.
I opened issue https://github.com/nigel-daniels/MMM-Weather-Now/issues/6
but its been 2 years since update, so unlikely
-
@sdetweil thanks for looking into this for me… I owe you a coffee or beer.
This is the log from
npm start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2020-10-04 10:44:51.126] [LOG] Starting MagicMirror: v2.13.0 [2020-10-04 10:44:51.133] [LOG] Loading config ... [2020-10-04 10:44:51.138] [LOG] Loading module helpers ... [2020-10-04 10:44:51.506] [LOG] Initializing new module helper ... [2020-10-04 10:44:51.506] [LOG] Module helper loaded: MMM-MyCalendar [2020-10-04 10:44:51.508] [LOG] No helper found for module: alert. [2020-10-04 10:44:51.544] [LOG] Initializing new module helper ... [2020-10-04 10:44:51.544] [LOG] Module helper loaded: updatenotification [2020-10-04 10:44:51.545] [LOG] No helper found for module: clock. [2020-10-04 10:44:51.849] [LOG] Initializing new module helper ... [2020-10-04 10:44:51.850] [LOG] Module helper loaded: MMM-Weather-Now [2020-10-04 10:44:51.852] [LOG] Initializing new module helper ... [2020-10-04 10:44:51.852] [LOG] Module helper loaded: MMM-3Day-Forecast [2020-10-04 10:44:51.874] [LOG] Initializing new module helper ... [2020-10-04 10:44:51.874] [LOG] Module helper loaded: newsfeed [2020-10-04 10:44:51.876] [LOG] Initializing new module helper ... [2020-10-04 10:44:51.877] [LOG] Module helper loaded: MMM-MyStandings [2020-10-04 10:44:51.994] [LOG] Initializing new module helper ... [2020-10-04 10:44:51.994] [LOG] Module helper loaded: MMM-Remote-Control [2020-10-04 10:44:52.024] [LOG] Initializing new module helper ... [2020-10-04 10:44:52.024] [LOG] Module helper loaded: MMM-PIR-Sensor [2020-10-04 10:44:52.025] [LOG] All module helpers loaded. [2020-10-04 10:44:52.149] [LOG] Starting server on port 8080 ... [2020-10-04 10:44:52.154] [INFO] You're using a full whitelist configuration to allow for all IPs [2020-10-04 10:44:52.159] [LOG] Server started ... [2020-10-04 10:44:52.160] [LOG] Connecting socket for: MMM-MyCalendar [2020-10-04 10:44:52.161] [LOG] Starting node helper for: MMM-MyCalendar [2020-10-04 10:44:52.162] [LOG] Connecting socket for: updatenotification [2020-10-04 10:44:52.163] [LOG] Connecting socket for: MMM-Weather-Now [2020-10-04 10:44:52.164] [LOG] MMM-Weather-Now helper, started... [2020-10-04 10:44:52.165] [LOG] Connecting socket for: MMM-3Day-Forecast [2020-10-04 10:44:52.166] [LOG] MMM-3Day-Forecast helper, started... [2020-10-04 10:44:52.167] [LOG] Connecting socket for: newsfeed [2020-10-04 10:44:52.168] [LOG] Starting node helper for: newsfeed [2020-10-04 10:44:52.169] [LOG] Connecting socket for: MMM-MyStandings [2020-10-04 10:44:52.169] [LOG] MMM-MyStandings helper started ... [2020-10-04 10:44:52.170] [LOG] Connecting socket for: MMM-Remote-Control [2020-10-04 10:44:52.171] [LOG] Starting node helper for: MMM-Remote-Control [2020-10-04 10:44:52.179] [LOG] Connecting socket for: MMM-PIR-Sensor [2020-10-04 10:44:52.180] [LOG] Sockets connected & modules started ... [2020-10-04 10:44:52.298] [LOG] Launching application. [2020-10-04 10:45:01.780] [LOG] Shutting down server... [2020-10-04 10:45:01.781] [LOG] Stopping module helper: MMM-MyCalendar [2020-10-04 10:45:01.782] [LOG] Stopping module helper: updatenotification [2020-10-04 10:45:01.782] [LOG] Stopping module helper: MMM-Weather-Now [2020-10-04 10:45:01.782] [LOG] Stopping module helper: MMM-3Day-Forecast [2020-10-04 10:45:01.783] [LOG] Stopping module helper: newsfeed [2020-10-04 10:45:01.783] [LOG] Stopping module helper: MMM-MyStandings [2020-10-04 10:45:01.784] [LOG] Stopping module helper: MMM-PIR-Sensor
This is the log from
npm start dev
loader.js:195 Load stylesheet: vendor/css/font-awesome.css loader.js:155 Styles loaded for: MMM-MyCalendar loader.js:157 Translations loaded for: MMM-MyCalendar loader.js:176 Load script: modules/default/alert//alert.js module.js:513 Module registered: alert loader.js:148 Bootstrapping module: alert loader.js:176 Load script: modules/default/alert/notificationFx.js loader.js:153 Scripts loaded for: alert loader.js:195 Load stylesheet: modules/default/alert/notificationFx.css loader.js:236 File already loaded: font-awesome.css loader.js:155 Styles loaded for: alert translator.js:102 alert - Load translation fallback: translations/en.json /home/pi/Desktop/MM …rity-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure protocols.This exposes users of this app to unnecessary security risks. Consider loading the following resources over HTTPS or FTPS. - http://0.0.0.0:8080/css/main.css - http://0.0.0.0:8080/fonts/roboto.css - http://0.0.0.0:8080/socket.io/socket.io.js - http://0.0.0.0:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js - http://0.0.0.0:8080/js/defaults.js - http://0.0.0.0:8080/config/config.js - http://0.0.0.0:8080/vendor/vendor.js - http://0.0.0.0:8080/modules/default/defaultmodules.js - http://0.0.0.0:8080/js/logger.js - http://0.0.0.0:8080/translations/translations.js - http://0.0.0.0:8080/js/translator.js - http://0.0.0.0:8080/js/class.js - http://0.0.0.0:8080/js/module.js - http://0.0.0.0:8080/js/loader.js - http://0.0.0.0:8080/js/socketclient.js - http://0.0.0.0:8080/js/main.js - http://0.0.0.0:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2 - http://0.0.0.0:8080/translations/en.json - http://0.0.0.0:8080/translations/en.json - http://0.0.0.0:8080/modules/MMM-MyCalendar//MMM-MyCalendar.js - http://0.0.0.0:8080/vendor/node_modules/moment/min/moment-with-locales.js - http://0.0.0.0:8080/modules/MMM-MyCalendar/MMM-MyCalendar.css - http://0.0.0.0:8080/vendor/css/font-awesome.css - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css - http://0.0.0.0:8080/modules/default/alert//alert.js - http://0.0.0.0:8080/modules/default/alert/notificationFx.js - http://0.0.0.0:8080/modules/default/alert/notificationFx.css For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. /home/pi/Desktop/MM …ity-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks. For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. loader.js:157 Translations loaded for: alert loader.js:176 Load script: modules/default/updatenotification//updatenotification.js module.js:513 Module registered: updatenotification loader.js:148 Bootstrapping module: updatenotification loader.js:153 Scripts loaded for: updatenotification loader.js:155 Styles loaded for: updatenotification loader.js:157 Translations loaded for: updatenotification loader.js:176 Load script: modules/default/clock//clock.js module.js:513 Module registered: clock loader.js:148 Bootstrapping module: clock loader.js:236 File already loaded: moment.js loader.js:176 Load script: vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js loader.js:176 Load script: vendor/node_modules/suncalc/suncalc.js loader.js:153 Scripts loaded for: clock loader.js:195 Load stylesheet: modules/default/clock/clock_styles.css loader.js:155 Styles loaded for: clock loader.js:157 Translations loaded for: clock loader.js:176 Load script: modules/MMM-Weather-Now//MMM-Weather-Now.js module.js:513 Module registered: MMM-Weather-Now loader.js:148 Bootstrapping module: MMM-Weather-Now loader.js:153 Scripts loaded for: MMM-Weather-Now loader.js:195 Load stylesheet: modules/MMM-Weather-Now/weather-now.css loader.js:236 File already loaded: font-awesome.css loader.js:155 Styles loaded for: MMM-Weather-Now translator.js:100 MMM-Weather-Now - Load translation: translations/en.json translator.js:102 MMM-Weather-Now - Load translation fallback: translations/da.json VM143:2 Uncaught SyntaxError: Unexpected token / in JSON at position 6 at JSON.parse (<anonymous>) at XMLHttpRequest.xhr.onreadystatechange (translator.js:22)
-
@sdetweil that worked… I removed the comment line in the da.json file and it runs like normal now. Much appreciated.
-
@schrutesbeets glad it worked… don’t see the change that caused that yet…
it would always fail with that comment, so it wasn’t parsed for some reason, and now is…
-
see the sticky topic at the top of the troubleshooting section
https://forum.magicmirror.builders/topic/13774/2-13-back-screen -
@sdetweil nice thanks