MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MM modules not displaying or no longer refresh after restart

    Scheduled Pinned Locked Moved Troubleshooting
    7 Posts 3 Posters 2.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? Offline
      A Former User
      last edited by A Former User

      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.

      1 Reply Last reply Reply Quote 0
      • C Offline
        Charley Module Developer
        last edited by

        Did you enter the proper module name for the calendar?
        Try to comment calendar out to see if it works without.

        MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @Charley
          last edited by

          @Charley

          Thanks for the suggestion.

          1. Which calendar do you mean? There’s default (bottom left) and there’s calendar-monthly (top left).

          2. when you say comment out, do you mean the name or the entire module?

          1 Reply Last reply Reply Quote 0
          • C Offline
            Charley Module Developer
            last edited by

            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.

            MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

            ? 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User @Charley
              last edited by

              @Charley

              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
              ; -\

              bheplerB 1 Reply Last reply Reply Quote 0
              • bheplerB Offline
                bhepler Module Developer @Guest
                last edited by

                @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.

                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @bhepler
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy