• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Back to Booting to black

Scheduled Pinned Locked Moved Solved Troubleshooting
13 Posts 2 Posters 2.8k 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.
  • D Offline
    dwleo
    last edited by Jan 28, 2019, 5:56 PM

    Re: MM booting to black

    Well, all was going pretty good. I added some modules and removed some. Had Carousel, NHL and NFL working well. Almost.
    Then I changed the Calendar to another module, didn’t like the look so went back to calendar and everything went into the toilet. It was booting to black so I went back into it from my laptop and checked the config.js file and could not find an error. Copied it to Jshint and it gave this:
    One undefined variable
    111 module
    That was in the last line:
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== “undefined”) {module.exports = config;}
    But that is the same in the sample and my backup.
    So I deleted the config.js and renamed the backup as config.js. No change.
    I stopped the process with:
    pm2 stop all and got:
    │ Name │ mode │ status │ ↺ │ cpu │ memory │
    ├─────────────┼──────┼─────────┼───┼─────┼────────┤
    │ MagicMirror │ fork │ stopped │ 0 │ 0% │ 0 B │

    I ran npm config:check and got:
    pi@raspberrypi:~/MagicMirror/config $ npm run config:check

    magicmirror@2.6.0 config:check /home/pi/MagicMirror
    node tests/configs/check_config.js

    Checking file… /home/pi/MagicMirror/config/config.js
    Your configuration file doesn’t contain syntax errors :)

    So now I am not sure which direction to go.

    1 Reply Last reply Reply Quote 0
    • S Away
      sdetweil
      last edited by sdetweil Jan 28, 2019, 6:08 PM Jan 28, 2019, 6:07 PM

      start the MM in debug mode

      npm start dev
      

      then select the console tab… look for errors (red text)

      altho usually black screen is caused by failures in the node modules

      so, minimze MM, alt-spacebar, n
      and look at errors in the console window (used above for npm start

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Jan 28, 2019, 6:15 PM Reply Quote 0
      • D Offline
        dwleo @sdetweil
        last edited by Jan 28, 2019, 6:15 PM

        @sdetweil

        pi@raspberrypi:~ $ npm start dev
        npm ERR! missing script: start

        That’s what I got.

        S 1 Reply Last reply Jan 28, 2019, 6:25 PM Reply Quote 0
        • S Away
          sdetweil @dwleo
          last edited by Jan 28, 2019, 6:25 PM

          @dwleo well, you have to be IN the MM folder

          cd MagicMirror
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Jan 28, 2019, 6:33 PM Reply Quote 0
          • D Offline
            dwleo @sdetweil
            last edited by Jan 28, 2019, 6:33 PM

            @sdetweil
            WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module ‘moment-timezone’

            D S 2 Replies Last reply Jan 28, 2019, 6:35 PM Reply Quote 0
            • D Offline
              dwleo @dwleo
              last edited by Jan 28, 2019, 6:35 PM

              Sometimes I feel like a real noob. Anyway the config.js file is there right where it always has been.

              S 1 Reply Last reply Jan 28, 2019, 6:37 PM Reply Quote 0
              • S Away
                sdetweil @dwleo
                last edited by sdetweil Jan 28, 2019, 6:36 PM Jan 28, 2019, 6:35 PM

                @dwleo

                from the MM folder run

                node tests/configs/check_config.js
                

                and work thru the errors from top to bottom

                rerunning as needed

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @dwleo
                  last edited by sdetweil Jan 28, 2019, 6:37 PM Jan 28, 2019, 6:37 PM

                  @dwleo yes, but there is a syntax error from all the editing you have done

                  make a rule,

                  1 change at a time,
                  AND save the working config.js before u edit

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Jan 28, 2019, 6:38 PM Reply Quote 0
                  • D Offline
                    dwleo @sdetweil
                    last edited by Jan 28, 2019, 6:38 PM

                    @sdetweil
                    Yeah, you are right. (sigh)
                    Anyway I ran it and got this:
                    pi@raspberrypi:~/MagicMirror $ node tests/configs/check_config.js
                    Checking file… /home/pi/MagicMirror/config/config.js
                    Your configuration file doesn’t contain syntax errors :)

                    S 1 Reply Last reply Jan 28, 2019, 7:04 PM Reply Quote 0
                    • S Away
                      sdetweil @dwleo
                      last edited by Jan 28, 2019, 7:04 PM

                      @dwleo ok, then you have a module name wrong, or u deleted it

                      Cannot find module ‘moment-timezone’

                      OR, you installed a module, but didn’t finish ITS install, by going to ITS folder and running npm install

                      when a module uses other modules, (some not used by base MM), you have to do a manual step to install ITS dependencies

                      so, I would look thru the modules u might have just installed, and edit the package.json file in each and look for moment-timezone… if its there, then u probably need to run npm install in that folder

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 2 Replies Last reply Jan 28, 2019, 7:08 PM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        4/13
                        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