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.

    MMM-WeatherBackground crashing?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    7 Posts 2 Posters 400 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.
    • M Offline
      MrCoads
      last edited by

      Hi everyone!

      I’d like to get some help with my MagicMirror MMM-WeatherBackground issue. Occasionally my MagicMirror crashes and is showing a black screen with the cursor.

      I’ve been trouble shooting this issue, but no luck.

      I’ve been disabling various modules to get to the bottom of this, and eventually it was the WeatherBackground causing the issue. I’ve disabled this function and it’s been up and running perfectly fine for the past week. Before it would cash multiple times a day.

      I’m using the RaspBerry Pi Model 3B+ with the following config.js:

      GNU nano 7.2                                  MagicMirror/config/config.js *                                          
            /* Config Sample
             *
             * For more information on how you can configure this file
             * see https://docs.magicmirror.builders/configuration/introduction.html
             * and https://docs.magicmirror.builders/modules/configuration.html
             *
             * You can use environment variables using a `config.js.template` file instead of `config.js`
             * which will be converted to `config.js` while starting. For more information
             * see https://docs.magicmirror.builders/configuration/introduction.html#enviromnent-variables
             */
            let config = {
                    address: "localhost",   // Address to listen on, can be:
                                                                    // - "localhost", "127.0.0.1", "::1" to listen on loopback inte>
                                                                    // - 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 or empty, is "local>
                    port: 8080,
                    basePath: "/",  // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy
                                                                                    // you must set the sub path here. basePath mus>
                    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", "::>
                                                                                    // or IPv4 range of 192.168.3.0 --> 192.168.3.1>
                                                                                    // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::>
            
                            
            useHttps: false,                        // Support HTTPS or not, default "false" will use HTTP
            httpsPrivateKey: "",    // HTTPS private key path, only require when useHttps is true
            httpsCertificate: "",   // HTTPS Certificate path, only require when useHttps is true
      
            language: "nl",
            locale: "en-US",   // this variable is provided as a consistent location
                               // it is currently only used by 3rd party modules. no MagicMirror code uses this value
                               // as we have no usage, we  have no constraints on what this field holds
                               // see https://en.wikipedia.org/wiki/Locale_(computer_software) for the possibilities
      
            logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
            timeFormat: 24,
            units: "metric",
      
            modules: [
                    {
                            module: "clock",
                            position: "top_center",
                            showDate: true,
                            showWeek: true,
                    },
                    {
                            module: "weather",
                            position: "top_left",
                            header: 'Hengelo (OV)',
                            config: {
                            // See 'Configuration options' for more information.
                            weatherProvider: "openweathermap",
                            type: "current",
                            lat: "52.262600",
                            lon: "6.791080",
                            apiKey: "71b933c6f50387fd0ae3c5e2bc9345ba",
                            apiVersion: "2.5",
                            appendLocationNameToHeader: false,
      
                            weatherEndpoint: "/weather",
                            roundTemp: true
                            },
                    },
                    {
                            module: "weather",
                            position: "top_left",
                            header: "Voorspelling:",
                            config: {
                            // See 'Configuration options' for more information.
                            weatherProvider: "openweathermap",
                            type: "forecast",
                            lat: "52.262600",
                            lon: "6.791080",
                            apiKey: "71b933c6f50387fd0ae3c5e2bc9345ba",
                            apiVersion: "2.5",
                            appendLocationNameToHeader: false,
                            weatherEndpoint: "/forecast",
                            roundTemp: true
                            },
                    },
                    {
                            module: 'MMM-Todoist',
                            position: 'bottom_right',       // This can be any of the regions. Best results in left or righ>
                            header: 'To do', // This is optional
                            config: { // See 'Configuration options' for more information.
                                    hideWhenEmpty: false,
                                    showProject: false,
                                    accessToken: '73e3463135d110d38785ab788e3198ac527bb28f',
                                    displayTasksWithinDays: 0,
                                    updateInterval: 600*60*1000, // Update every 10 hours
                                    fade: false,
                                    sortType: "dueDateAsc",
                                    // projects and/or labels is mandatory:                                    
                                    projects: [ 2348560100 ],
                                    labels: [ "MagicMirror", "Important" ] // Tasks for any projects with these labels will>
                                    }
                    },
                    {
                            module: "calendar",
                            position: "bottom_third", // This can be any of the regions. Best results in left or right regi>
                            header: "Agenda",
                            config: {
                                    calendars: [
                                    {
                                  // The config property is optional.
                                  // If no config is set, an example calendar is shown.
                                  // See 'Configuration options' for more information.
                                            symbol: "calendar-check-o",
                                            maximumNumberOfDays: "2",
                                            dateFormat: "D MMM",
                                            fetchinterval: 86400000,
                                            url: "https://calendar.google.com/calendar/ical/agendaonslombok8%40gmail.com/pr>
                                    }
                                    ]
                            },
                    },
      //              {
      //                      module: "MMM-WeatherBackground",
      //                      // don't assign position.
      //                      config: {
      //                              clientID: "Rom82DzfVYutBzBskWZxBkst96BoJyHOm3lH2kX7rfw",
      //                              }
      //              },
            ]
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") { module.exports = config; }
      

      The error logs showing no error, never, not even when crashing. Syntax no errors.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @MrCoads
        last edited by

        @MrCoads only thing i can think of is one of the images is damaged.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MrCoads @sdetweil
          last edited by

          @sdetweil Well, maybe… weird thing is, the first “word” it looked up was winter, getting all winter themed pictures. That crashed randomly at times. Now it went to Spring, still getting crashes. Different pics, same crashes :( …

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @MrCoads
            last edited by sdetweil

            @MrCoads id find some tool to run thru the images

            how old is the sd card?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MrCoads @sdetweil
              last edited by

              @sdetweil Bought the SD Card 4 weeks ago… Rest of modules and everything runs fine…
              Maybe better to just use a Googel Drive or something to display images? What you think ?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @MrCoads
                last edited by

                @MrCoads i use a local file server, and link the mounted image source folder the module needs

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 1
                • M Offline
                  MrCoads @sdetweil
                  last edited by

                  @sdetweil I’ll probably do that then… Still haven’t found the solution tho :(

                  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