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.

    [Electron] : black screen

    Scheduled Pinned Locked Moved Troubleshooting
    28 Posts 2 Posters 5.0k 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.
    • R Offline
      RIKKO14
      last edited by

      This post is deleted!
      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @RIKKO14
        last edited by

        @RIKKO14

        cd ~/MagicMirror
        npm install electron-rebuild
        cd modules/??? modulename
        ~/MagicMirror/node_modules/,bin/electron-rebuild
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @RIKKO14 you should be able to see the error in the pm2 logs --lines=100 output

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • R Offline
            RIKKO14
            last edited by

            my pm2 log :

            pi@raspberrypi:~/MagicMirror/modules/MMM-soccer $ pm2 log
            [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
            /home/pi/.pm2/pm2.log last 15 lines:
            PM2        | 2020-10-15T23:33:46: PM2 log: ===============================================================================
            PM2        | 2020-10-15T23:33:46: PM2 log: App [mm:0] starting in -fork mode-
            PM2        | 2020-10-15T23:33:46: PM2 log: App [mm:0] online
            PM2        | 2020-10-15T23:47:47: PM2 log: Stopping app:mm id:0
            PM2        | 2020-10-15T23:47:47: PM2 log: pid=623 msg=failed to kill - retrying in 100ms
            PM2        | 2020-10-15T23:47:47: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
            PM2        | 2020-10-15T23:47:47: PM2 log: pid=623 msg=process killed
            PM2        | 2020-10-15T23:47:47: PM2 log: App [mm:0] starting in -fork mode-
            PM2        | 2020-10-15T23:47:47: PM2 log: App [mm:0] online
            PM2        | 2020-10-15T23:50:59: PM2 log: Stopping app:mm id:0
            PM2        | 2020-10-15T23:50:59: PM2 log: pid=24690 msg=failed to kill - retrying in 100ms
            PM2        | 2020-10-15T23:50:59: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
            PM2        | 2020-10-15T23:50:59: PM2 log: pid=24690 msg=process killed
            PM2        | 2020-10-15T23:50:59: PM2 log: App [mm:0] starting in -fork mode-
            PM2        | 2020-10-15T23:50:59: PM2 log: App [mm:0] online
            
            /home/pi/.pm2/logs/mm-error.log last 15 lines:
            0|mm       |     at Module._compile (internal/modules/cjs/loader.js:786:30)
            0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
            0|mm       |     at Module.load (internal/modules/cjs/loader.js:645:32) {
            0|mm       |   code: 'MODULE_NOT_FOUND',
            0|mm       |   requireStack: [
            0|mm       |     '/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js',
            0|mm       |     '/home/pi/MagicMirror/modules/default/calendar/node_helper.js',
            0|mm       |     '/home/pi/MagicMirror/js/app.js',
            0|mm       |     '/home/pi/MagicMirror/js/electron.js',
            0|mm       |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
            0|mm       |     undefined
            0|mm       |   ]
            0|mm       | }
            0|mm       | [2020-10-15 23:51:05.719] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            0|mm       | [2020-10-15 23:51:05.719] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
            
            /home/pi/.pm2/logs/mm-out.log last 15 lines:
            0|mm       | [2020-10-15 23:51:05.695] [LOG]    No helper found for module: clock.
            0|mm       | [2020-10-15 23:51:05.702] [LOG]    Loading module helpers ...
            0|mm       | [2020-10-15 23:51:05.703] [LOG]    No helper found for module: alert.
            0|mm       | [2020-10-15 23:51:05.704] [LOG]    Initializing new module helper ...
            0|mm       | [2020-10-15 23:51:05.704] [LOG]    Module helper loaded: updatenotification
            0|mm       | [2020-10-15 23:51:05.704] [LOG]    Initializing new module helper ...
            0|mm       | [2020-10-15 23:51:05.705] [LOG]    Module helper loaded: MMM-GoogleAssistant
            0|mm       | [2020-10-15 23:51:05.705] [LOG]    Initializing new module helper ...
            0|mm       | [2020-10-15 23:51:05.706] [LOG]    Module helper loaded: MMM-Assistant2Display
            0|mm       | [2020-10-15 23:51:05.706] [LOG]    Initializing new module helper ...
            0|mm       | [2020-10-15 23:51:05.707] [LOG]    Module helper loaded: MMM-UpdateNotification
            0|mm       | [2020-10-15 23:51:05.707] [LOG]    Initializing new module helper ...
            0|mm       | [2020-10-15 23:51:05.707] [LOG]    Module helper loaded: MMM-DHT-Sensor
            0|mm       | [2020-10-15 23:51:05.708] [LOG]    No helper found for module: clock.
            0|mm       | [2020-10-15 23:51:05.828] [LOG]    Launching application.
            
            
            
            
            
            1 Reply Last reply Reply Quote 0
            • R Offline
              RIKKO14
              last edited by

              @sdetweil i’ve made :

              cd ~/MagicMirror
              
              npm install electron-rebuild
              

              but when i wrote cd modules/??? modulename there is a bash
              what is the ???modulename should I write?

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

                @RIKKO14 MMM-soccer

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @RIKKO14 but you are missing some library file

                  do this

                  pm2 logs --lines=100

                  instead of default

                  pm2 logs --lines=15

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RIKKO14
                    last edited by

                    i don’t anderstand i wrote :

                    pi@raspberrypi:~/MagicMirror $ npm install electron-rebuild
                    npm ERR! code EISGIT
                    npm ERR! path /home/pi/MagicMirror/node_modules/ical
                    npm ERR! git /home/pi/MagicMirror/node_modules/ical: Appears to be a git repo or submodule.
                    npm ERR! git     /home/pi/MagicMirror/node_modules/ical
                    npm ERR! git Refusing to remove it. Update manually,
                    npm ERR! git or move it out of the way first.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2020-10-15T22_14_09_495Z-debug.log
                    pi@raspberrypi:~/MagicMirror $ cd modules/MMM-soccer
                    pi@raspberrypi:~/MagicMirror/modules/MMM-soccer $ ~/MagicMirror/node_modules/,bin/electron-rebuild
                    bash: /home/pi/MagicMirror/node_modules/,bin/electron-rebuild: Aucun fichier ou dossier de ce type```
                    S 1 Reply Last reply Reply Quote 0
                    • R Offline
                      RIKKO14
                      last edited by

                      @sdetweil said in [Electron] : black screen:

                      pm2 logs --lines=100

                      pi@raspberrypi:~/MagicMirror/modules/MMM-soccer $ pm2 logs --lines=100
                      [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
                      /home/pi/.pm2/pm2.log last 100 lines:
                      PM2        | 2020-10-15T23:33:15: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:15: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:16: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:16: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:16: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:17: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:17: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:17: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:18: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:18: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:18: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:19: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:19: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:19: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:20: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:20: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:20: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:21: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:21: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:21: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:22: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:22: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:22: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:23: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:23: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:23: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:24: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:24: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:24: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:25: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:25: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:25: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:26: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:26: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:26: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:27: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:27: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:27: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:28: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:28: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:28: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:29: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:29: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:29: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:30: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:30: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:30: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:32: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:32: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:32: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:33: PM2 log: App [MagicMirror:1] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:33: PM2 log: App [MagicMirror:1] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:33: PM2 log: App [MagicMirror:1] online
                      PM2        | 2020-10-15T23:33:34: PM2 log: App [mm:0] exited with code [1] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:34: PM2 log: App [mm:0] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:34: PM2 log: App [mm:0] online
                      PM2        | 2020-10-15T23:33:35: PM2 log: Stopping app:mm id:0
                      PM2        | 2020-10-15T23:33:35: PM2 log: Stopping app:MagicMirror id:1
                      PM2        | 2020-10-15T23:33:35: PM2 log: App [MagicMirror:1] exited with code [0] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:35: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
                      PM2        | 2020-10-15T23:33:35: PM2 log: pid=7359 msg=process killed
                      PM2        | 2020-10-15T23:33:35: PM2 log: pid=7376 msg=process killed
                      PM2        | 2020-10-15T23:33:35: PM2 log: PM2 successfully stopped
                      PM2        | 2020-10-15T23:33:46: PM2 log: ===============================================================================
                      PM2        | 2020-10-15T23:33:46: PM2 log: --- New PM2 Daemon started ----------------------------------------------------
                      PM2        | 2020-10-15T23:33:46: PM2 log: Time                 : Thu Oct 15 2020 23:33:46 GMT+0200 (GMT+02:00)
                      PM2        | 2020-10-15T23:33:46: PM2 log: PM2 version          : 4.4.1
                      PM2        | 2020-10-15T23:33:46: PM2 log: Node.js version      : 10.22.1
                      PM2        | 2020-10-15T23:33:46: PM2 log: Current arch         : arm
                      PM2        | 2020-10-15T23:33:46: PM2 log: PM2 home             : /home/pi/.pm2
                      PM2        | 2020-10-15T23:33:46: PM2 log: PM2 PID file         : /home/pi/.pm2/pm2.pid
                      PM2        | 2020-10-15T23:33:46: PM2 log: RPC socket file      : /home/pi/.pm2/rpc.sock
                      PM2        | 2020-10-15T23:33:46: PM2 log: BUS socket file      : /home/pi/.pm2/pub.sock
                      PM2        | 2020-10-15T23:33:46: PM2 log: Application log path : /home/pi/.pm2/logs
                      PM2        | 2020-10-15T23:33:46: PM2 log: Worker Interval      : 30000
                      PM2        | 2020-10-15T23:33:46: PM2 log: Process dump file    : /home/pi/.pm2/dump.pm2
                      PM2        | 2020-10-15T23:33:46: PM2 log: Concurrent actions   : 2
                      PM2        | 2020-10-15T23:33:46: PM2 log: SIGTERM timeout      : 1600
                      PM2        | 2020-10-15T23:33:46: PM2 log: ===============================================================================
                      PM2        | 2020-10-15T23:33:46: PM2 log: App [mm:0] starting in -fork mode-
                      PM2        | 2020-10-15T23:33:46: PM2 log: App [mm:0] online
                      PM2        | 2020-10-15T23:47:47: PM2 log: Stopping app:mm id:0
                      PM2        | 2020-10-15T23:47:47: PM2 log: pid=623 msg=failed to kill - retrying in 100ms
                      PM2        | 2020-10-15T23:47:47: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
                      PM2        | 2020-10-15T23:47:47: PM2 log: pid=623 msg=process killed
                      PM2        | 2020-10-15T23:47:47: PM2 log: App [mm:0] starting in -fork mode-
                      PM2        | 2020-10-15T23:47:47: PM2 log: App [mm:0] online
                      PM2        | 2020-10-15T23:50:59: PM2 log: Stopping app:mm id:0
                      PM2        | 2020-10-15T23:50:59: PM2 log: pid=24690 msg=failed to kill - retrying in 100ms
                      PM2        | 2020-10-15T23:50:59: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
                      PM2        | 2020-10-15T23:50:59: PM2 log: pid=24690 msg=process killed
                      PM2        | 2020-10-15T23:50:59: PM2 log: App [mm:0] starting in -fork mode-
                      PM2        | 2020-10-15T23:50:59: PM2 log: App [mm:0] online
                      PM2        | 2020-10-16T00:04:33: PM2 log: Stopping app:mm id:0
                      PM2        | 2020-10-16T00:04:34: PM2 log: pid=24871 msg=failed to kill - retrying in 100ms
                      PM2        | 2020-10-16T00:04:34: PM2 log: pid=24871 msg=failed to kill - retrying in 100ms
                      PM2        | 2020-10-16T00:04:34: PM2 log: App [mm:0] exited with code [0] via signal [SIGINT]
                      PM2        | 2020-10-16T00:04:34: PM2 log: pid=24871 msg=process killed
                      PM2        | 2020-10-16T00:04:34: PM2 log: App [mm:0] starting in -fork mode-
                      PM2        | 2020-10-16T00:04:34: PM2 log: App [mm:0] online
                      
                      /home/pi/.pm2/logs/mm-error.log last 100 lines:
                      0|mm       | - 
                      0|mm       |     at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:685:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:16:16)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:786:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                      0|mm       |     at Module.load (internal/modules/cjs/loader.js:645:32)
                      0|mm       | [2020-10-15 23:51:05.713] [ERROR]  Whoops! There was an uncaught exception...
                      0|mm       | [2020-10-15 23:51:05.714] [ERROR]  Error: Cannot find module 'node-ical'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                      0|mm       | - /home/pi/MagicMirror/js/app.js
                      0|mm       | - /home/pi/MagicMirror/js/electron.js
                      0|mm       | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                      0|mm       | - 
                      0|mm       |     at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:685:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:16:16)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:786:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                      0|mm       |     at Module.load (internal/modules/cjs/loader.js:645:32) {
                      0|mm       |   code: 'MODULE_NOT_FOUND',
                      0|mm       |   requireStack: [
                      0|mm       |     '/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js',
                      0|mm       |     '/home/pi/MagicMirror/modules/default/calendar/node_helper.js',
                      0|mm       |     '/home/pi/MagicMirror/js/app.js',
                      0|mm       |     '/home/pi/MagicMirror/js/electron.js',
                      0|mm       |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
                      0|mm       |     undefined
                      0|mm       |   ]
                      0|mm       | }
                      0|mm       | [2020-10-15 23:51:05.719] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                      0|mm       | [2020-10-15 23:51:05.719] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                      0|mm       | [2020-10-16 00:04:40.978] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'node-ical'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                      0|mm       | - /home/pi/MagicMirror/js/app.js
                      0|mm       | - /home/pi/MagicMirror/js/electron.js
                      0|mm       | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                      0|mm       | - 
                      0|mm       | [2020-10-16 00:04:40.988] [ERROR]  App threw an error during load
                      0|mm       | [2020-10-16 00:04:40.989] [ERROR]  Error: Cannot find module 'node-ical'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                      0|mm       | - /home/pi/MagicMirror/js/app.js
                      0|mm       | - /home/pi/MagicMirror/js/electron.js
                      0|mm       | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                      0|mm       | - 
                      0|mm       |     at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:685:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:16:16)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:786:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                      0|mm       |     at Module.load (internal/modules/cjs/loader.js:645:32)
                      0|mm       | [2020-10-16 00:04:40.991] [ERROR]  Whoops! There was an uncaught exception...
                      0|mm       | [2020-10-16 00:04:40.991] [ERROR]  Error: Cannot find module 'node-ical'
                      0|mm       | Require stack:
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js
                      0|mm       | - /home/pi/MagicMirror/modules/default/calendar/node_helper.js
                      0|mm       | - /home/pi/MagicMirror/js/app.js
                      0|mm       | - /home/pi/MagicMirror/js/electron.js
                      0|mm       | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                      0|mm       | - 
                      0|mm       |     at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16)
                      0|mm       |     at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                      0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:531:27)
                      0|mm       |     at Module.require (internal/modules/cjs/loader.js:685:19)
                      0|mm       |     at require (internal/modules/cjs/helpers.js:16:16)
                      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:8:14)
                      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:786:30)
                      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
                      0|mm       |     at Module.load (internal/modules/cjs/loader.js:645:32) {
                      0|mm       |   code: 'MODULE_NOT_FOUND',
                      0|mm       |   requireStack: [
                      0|mm       |     '/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js',
                      0|mm       |     '/home/pi/MagicMirror/modules/default/calendar/node_helper.js',
                      0|mm       |     '/home/pi/MagicMirror/js/app.js',
                      0|mm       |     '/home/pi/MagicMirror/js/electron.js',
                      0|mm       |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
                      0|mm       |     undefined
                      0|mm       |   ]
                      0|mm       | }
                      0|mm       | [2020-10-16 00:04:40.997] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                      0|mm       | [2020-10-16 00:04:40.997] [ERROR]  If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                      
                      /home/pi/.pm2/logs/mm-out.log last 100 lines:
                      0|mm       | [2020-10-15 23:47:58.005] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:47:58.005] [LOG]    Module helper loaded: updatenotification
                      0|mm       | [2020-10-15 23:47:58.006] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:47:58.006] [LOG]    Module helper loaded: MMM-GoogleAssistant
                      0|mm       | [2020-10-15 23:47:58.007] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:47:58.007] [LOG]    Module helper loaded: MMM-Assistant2Display
                      0|mm       | [2020-10-15 23:47:58.007] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:47:58.008] [LOG]    Module helper loaded: MMM-UpdateNotification
                      0|mm       | [2020-10-15 23:47:58.008] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:47:58.009] [LOG]    Module helper loaded: MMM-DHT-Sensor
                      0|mm       | [2020-10-15 23:47:58.009] [LOG]    No helper found for module: clock.
                      0|mm       | [2020-10-15 23:47:58.199] [LOG]    Launching application.
                      0|mm       | [2020-10-15 23:50:59.630] [LOG]    Shutting down server...
                      0|mm       | [2020-10-15 23:50:59.631] [LOG]    Stopping module helper: updatenotification
                      0|mm       | [2020-10-15 23:50:59.631] [LOG]    Stopping module helper: MMM-GoogleAssistant
                      0|mm       | [2020-10-15 23:50:59.632] [LOG]    Stopping module helper: MMM-Assistant2Display
                      0|mm       | [2020-10-15 23:50:59.632] [LOG]    Stopping module helper: MMM-UpdateNotification
                      0|mm       | [2020-10-15 23:50:59.632] [LOG]    Stopping module helper: MMM-DHT-Sensor
                      0|mm       | [2020-10-15 23:50:59.633] [LOG]    Stopping module helper: updatenotification
                      0|mm       | [2020-10-15 23:50:59.633] [LOG]    Stopping module helper: MMM-GoogleAssistant
                      0|mm       | [2020-10-15 23:50:59.633] [LOG]    Stopping module helper: MMM-Assistant2Display
                      0|mm       | [2020-10-15 23:50:59.634] [LOG]    Stopping module helper: MMM-UpdateNotification
                      0|mm       | [2020-10-15 23:50:59.634] [LOG]    Stopping module helper: MMM-DHT-Sensor
                      0|mm       | 
                      0|mm       | > magicmirror@2.14.0-develop start /home/pi/MagicMirror
                      0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                      0|mm       | 
                      0|mm       | [2020-10-15 23:51:01.956] [LOG]    Starting MagicMirror: v2.14.0-develop
                      0|mm       | [2020-10-15 23:51:01.964] [LOG]    Loading config ...
                      0|mm       | [2020-10-15 23:51:01.970] [LOG]    Loading module helpers ...
                      0|mm       | [2020-10-15 23:51:01.972] [LOG]    No helper found for module: alert.
                      0|mm       | [2020-10-15 23:51:02.014] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:02.014] [LOG]    Module helper loaded: updatenotification
                      0|mm       | [2020-10-15 23:51:04.460] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:04.461] [LOG]    Module helper loaded: MMM-GoogleAssistant
                      0|mm       | [2020-10-15 23:51:05.465] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.465] [LOG]    Module helper loaded: MMM-Assistant2Display
                      0|mm       | [2020-10-15 23:51:05.687] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.688] [LOG]    Module helper loaded: MMM-UpdateNotification
                      0|mm       | [2020-10-15 23:51:05.693] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.694] [LOG]    Module helper loaded: MMM-DHT-Sensor
                      0|mm       | [2020-10-15 23:51:05.695] [LOG]    No helper found for module: clock.
                      0|mm       | [2020-10-15 23:51:05.702] [LOG]    Loading module helpers ...
                      0|mm       | [2020-10-15 23:51:05.703] [LOG]    No helper found for module: alert.
                      0|mm       | [2020-10-15 23:51:05.704] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.704] [LOG]    Module helper loaded: updatenotification
                      0|mm       | [2020-10-15 23:51:05.704] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.705] [LOG]    Module helper loaded: MMM-GoogleAssistant
                      0|mm       | [2020-10-15 23:51:05.705] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.706] [LOG]    Module helper loaded: MMM-Assistant2Display
                      0|mm       | [2020-10-15 23:51:05.706] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.707] [LOG]    Module helper loaded: MMM-UpdateNotification
                      0|mm       | [2020-10-15 23:51:05.707] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-15 23:51:05.707] [LOG]    Module helper loaded: MMM-DHT-Sensor
                      0|mm       | [2020-10-15 23:51:05.708] [LOG]    No helper found for module: clock.
                      0|mm       | [2020-10-15 23:51:05.828] [LOG]    Launching application.
                      0|mm       | [2020-10-16 00:04:34.022] [LOG]    Shutting down server...
                      0|mm       | [2020-10-16 00:04:34.024] [LOG]    Stopping module helper: updatenotification
                      0|mm       | [2020-10-16 00:04:34.026] [LOG]    Stopping module helper: MMM-GoogleAssistant
                      0|mm       | [2020-10-16 00:04:34.026] [LOG]    Stopping module helper: MMM-Assistant2Display
                      0|mm       | [2020-10-16 00:04:34.027] [LOG]    Stopping module helper: MMM-UpdateNotification
                      0|mm       | [2020-10-16 00:04:34.027] [LOG]    Stopping module helper: MMM-DHT-Sensor
                      0|mm       | [2020-10-16 00:04:34.027] [LOG]    Stopping module helper: updatenotification
                      0|mm       | [2020-10-16 00:04:34.028] [LOG]    Stopping module helper: MMM-GoogleAssistant
                      0|mm       | [2020-10-16 00:04:34.028] [LOG]    Stopping module helper: MMM-Assistant2Display
                      0|mm       | [2020-10-16 00:04:34.028] [LOG]    Stopping module helper: MMM-UpdateNotification
                      0|mm       | [2020-10-16 00:04:34.029] [LOG]    Stopping module helper: MMM-DHT-Sensor
                      0|mm       | 
                      0|mm       | > magicmirror@2.14.0-develop start /home/pi/MagicMirror
                      0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                      0|mm       | 
                      0|mm       | [2020-10-16 00:04:36.693] [LOG]    Starting MagicMirror: v2.14.0-develop
                      0|mm       | [2020-10-16 00:04:36.701] [LOG]    Loading config ...
                      0|mm       | [2020-10-16 00:04:36.711] [LOG]    Loading module helpers ...
                      0|mm       | [2020-10-16 00:04:36.717] [LOG]    No helper found for module: alert.
                      0|mm       | [2020-10-16 00:04:36.766] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:36.767] [LOG]    Module helper loaded: updatenotification
                      0|mm       | [2020-10-16 00:04:39.562] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:39.563] [LOG]    Module helper loaded: MMM-GoogleAssistant
                      0|mm       | [2020-10-16 00:04:40.701] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.702] [LOG]    Module helper loaded: MMM-Assistant2Display
                      0|mm       | [2020-10-16 00:04:40.958] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.959] [LOG]    Module helper loaded: MMM-UpdateNotification
                      0|mm       | [2020-10-16 00:04:40.967] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.968] [LOG]    Module helper loaded: MMM-DHT-Sensor
                      0|mm       | [2020-10-16 00:04:40.968] [LOG]    No helper found for module: clock.
                      0|mm       | [2020-10-16 00:04:40.979] [LOG]    Loading module helpers ...
                      0|mm       | [2020-10-16 00:04:40.980] [LOG]    No helper found for module: alert.
                      0|mm       | [2020-10-16 00:04:40.980] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.981] [LOG]    Module helper loaded: updatenotification
                      0|mm       | [2020-10-16 00:04:40.981] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.982] [LOG]    Module helper loaded: MMM-GoogleAssistant
                      0|mm       | [2020-10-16 00:04:40.982] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.983] [LOG]    Module helper loaded: MMM-Assistant2Display
                      0|mm       | [2020-10-16 00:04:40.983] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.984] [LOG]    Module helper loaded: MMM-UpdateNotification
                      0|mm       | [2020-10-16 00:04:40.984] [LOG]    Initializing new module helper ...
                      0|mm       | [2020-10-16 00:04:40.984] [LOG]    Module helper loaded: MMM-DHT-Sensor
                      0|mm       | [2020-10-16 00:04:40.985] [LOG]    No helper found for module: clock.
                      0|mm       | [2020-10-16 00:04:41.105] [LOG]    Launching application.
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @RIKKO14
                        last edited by

                        @RIKKO14 said in [Electron] : black screen:

                        npm install electron-rebuild

                        NOT in the root MM folder

                        in the folder of the modules u had trouble with

                        cd modules/MMM-Soccer
                        ../../node_modules/.bin/electron-rebuild 
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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