Read the statement by Michael Teeuw here.
MM modules not displaying or no longer refresh after restart
-
Hi All
Need to request some help if I may. It seems my MM has stopped functioning and I can’t
figure out why, rather frustratingly.
Started yesterday after some seemingly innocuous changes I made to config.js (adding MMM-random quote which has now been removed)Issues as follows:
- Default clock displays but does not refresh beyond restart
- Default weather forecast does not display
- Calendar monthly displays intermittently on refresh or remains “Loading…”
- Default news feed does not display
Pasting config.js
* * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen on any interface // Default, when address config is left out, is "localhost" port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "en", timeFormat: 24, units: "metric", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "UK Holidays", position: "bottom_left", config: { calendars: [ { symbol: "calendar-check-o ", url: "webcal://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics" } ] } }, { module: "currentweather", position: "top_right", config: { location: "City of London", locationID: "2643741", //ID from http://www.openweathermap.org/help/city_list.txt appid: "[redacted]" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "City of London", locationID: "2643741", //ID from http://www.openweathermap.org/help/city_list.txt appid: "[redacted]" } }, { module: "compliments", position: "top_right", config: { updateInterval: 5000, fadeSpeed: 1000, compliments: { day_sunny: [ "Today is a sunny day", "It's a beautiful day" ], snow: [ "Snowball battle!" ], rain: [ "Don't forget your umbrella" ], showers: [ "Looks like it might rain!" ] } } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC World News", url: "http://feeds.bbci.co.uk/news/world/rss.xml" } ], showSourceTitle: true, showPublishDate: true } }, { module: "MMM-Globe", position: "bottom_right", config: { style: "europeDiscNat", imageSize: 300, ownImagePath:'', updateInterval: 10*60*1000 } }, { module: "calendar_monthly", position: "top_left", config: { // The config property is optional // Without a config, a default month view is shown // Please see the 'Configuration Options' section for more information } } ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
I have run
npm run config:check
and confirm that there are no syntax errors (presumably would’ve seen black screen otherwise)I have also run
pm2 info MagicMirror
and get the following output which I believe shows no obvious issues;Describing process with id 0 - name MagicMirror ┌───────────────────┬────────────────────────────────────────────┐ │ status │ online │ │ name │ MagicMirror │ │ restarts │ 0 │ │ uptime │ 19m │ │ script path │ /home/pi/MagicMirror/installers/mm.sh │ │ script args │ N/A │ │ error log path │ /home/pi/.pm2/logs/MagicMirror-error-0.log │ │ out log path │ /home/pi/.pm2/logs/MagicMirror-out-0.log │ │ pid path │ /home/pi/.pm2/pids/MagicMirror-0.pid │ │ interpreter │ bash │ │ interpreter args │ N/A │ │ script id │ 0 │ │ exec cwd │ /home/pi/MagicMirror │ │ exec mode │ fork_mode │ │ node.js version │ N/A │ │ watch & reload │ ✔ │ │ unstable restarts │ 0 │ │ created at │ 2018-04-24T21:19:54.160Z │ └───────────────────┴────────────────────────────────────────────┘ Revision control metadata ┌──────────────────┬───────────────────────────────────────────────────────────┐ │ revision control │ git │ │ remote url │ https://github.com/MichMich/MagicMirror.git │ │ repository root │ /home/pi/MagicMirror │ │ last update │ 2018-04-25T07:01:33.788Z │ │ revision │ 60b9a5b9dad36a7748a5d1bdb3b32c0c6384e4c0 │ │ comment │ Merge pull request #1245 from MichMich/electron-downgrade │ │ branch │ master │ └──────────────────┴───────────────────────────────────────────────────────────┘
Really at a loss as to what the problem is and considered entire reinstallation.
Any help would be greatly appreciated so please let me know if more info is required. -
Did you enter the proper module name for the calendar?
Try to comment calendar out to see if it works without. -
Thanks for the suggestion.
-
Which calendar do you mean? There’s default (bottom left) and there’s calendar-monthly (top left).
-
when you say comment out, do you mean the name or the entire module?
-
-
I would say calendar monthly
Every line from the first { until the last }
Just type // before if it runs that points to the module That holds the rest. -
Thanks for the suggestions.
Bizarrely I didn’t need to do anything, just left pi off for a few days whilst I worked on some other projects.
Switched on this afternoon and everything is perfect again.Weird
; -\ -
@lodown It sounds like you had a temporary network interruption. Everything that you listed as a problem requires a network pull to update. Except the clock, which is just weird. Even the time synchronization failing due to a network interruption shouldn’t affect the clock.
-
@bhepler
Got it! I did wonder whether that might be it but the outages were so ridiculously coincidental with the changes I was making that I had to wonder whether I had broken something.Happy to report that everything is still working as expected at this time.
Thanks all for the suggestions.