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-Screencast erro

    Scheduled Pinned Locked Moved Solved Troubleshooting
    23 Posts 4 Posters 5.4k Views 4 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.
    • I Offline
      iorifly
      last edited by iorifly

      Dear,

      I set the module and I get this error.

      pi@raspberrypi:~/MagicMirror $ npm start
      
      > magicmirror@2.10.0 start /home/pi/MagicMirror
      > ./run-start.sh
      
      [15:57:07.067] [LOG]    Starting MagicMirror: v2.10.0
      [15:57:07.101] [LOG]    Loading config ...
      [15:57:07.121] [LOG]    Loading module helpers ...
      [15:57:07.127] [LOG]    No helper found for module: alert.
      [15:57:07.412] [LOG]    Initializing new module helper ...
      [15:57:07.416] [LOG]    Module helper loaded: updatenotification
      [15:57:07.420] [LOG]    No helper found for module: clock.
      [15:57:07.821] [ERROR]  WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: /home/pi/MagicMirror/modules/MMM-Screencast/node_modules/xmlbuilder/lib/XMLRaw.js:1
      (function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { =���o��P�ᔱ��/�~�4��UY��5�qs����+�D1�#?��$
                                                                                                                                                                 ^
      
      SyntaxError: Unexpected token =
          at new Script (vm.js:74:7)
          at createScript (vm.js:246:10)
          at Object.runInThisContext (vm.js:298:10)
          at Module._compile (internal/modules/cjs/loader.js:678:28)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
          at Module.load (internal/modules/cjs/loader.js:620:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
          at Function.Module._load (internal/modules/cjs/loader.js:551:3)
          at Module.require (internal/modules/cjs/loader.js:658:17)
          at require (internal/modules/cjs/helpers.js:20:18)
      [15:57:07.825] [LOG]    Loading module helpers ...
      [15:57:07.827] [LOG]    No helper found for module: alert.
      [15:57:07.830] [LOG]    Initializing new module helper ...
      [15:57:07.832] [LOG]    Module helper loaded: updatenotification
      [15:57:07.835] [LOG]    No helper found for module: clock.
      [15:57:07.863] [ERROR]  App threw an error during load
      [15:57:07.865] [ERROR]  /home/pi/MagicMirror/modules/MMM-Screencast/node_modules/xmlbuilder/lib/XMLRaw.js:1
      (function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { =���o��P�ᔱ��/�~�4��UY��5�qs����+�D1�#?��$
                                                                                                                                                                 ^
      
      SyntaxError: Unexpected token =
          at new Script (vm.js:74:7)
          at createScript (vm.js:246:10)
          at Object.runInThisContext (vm.js:298:10)
          at Module._compile (internal/modules/cjs/loader.js:678:28)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
          at Module.load (internal/modules/cjs/loader.js:620:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
          at Function.Module._load (internal/modules/cjs/loader.js:551:3)
          at Module.require (internal/modules/cjs/loader.js:658:17)
          at require (internal/modules/cjs/helpers.js:20:18)
      [15:57:07.873] [LOG]    Whoops! There was an uncaught exception...
      [15:57:07.875] [ERROR]  /home/pi/MagicMirror/modules/MMM-Screencast/node_modules/xmlbuilder/lib/XMLRaw.js:1
      (function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { =���o��P�ᔱ��/�~�4��UY��5�qs����+�D1�#?��$
                                                                                                                                                                 ^
      
      SyntaxError: Unexpected token =
          at new Script (vm.js:74:7)
          at createScript (vm.js:246:10)
          at Object.runInThisContext (vm.js:298:10)
          at Module._compile (internal/modules/cjs/loader.js:678:28)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
          at Module.load (internal/modules/cjs/loader.js:620:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
          at Function.Module._load (internal/modules/cjs/loader.js:551:3)
          at Module.require (internal/modules/cjs/loader.js:658:17)
          at require (internal/modules/cjs/helpers.js:20:18)
      [15:57:07.893] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [15:57:07.897] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [15:57:08.505] [LOG]    Launching application.
      [15:57:16.454] [LOG]    Shutting down server...
      [15:57:16.464] [LOG]    Stopping module helper: updatenotification
      [15:57:16.466] [LOG]    Stopping module helper: updatenotification
      

      part of my config

      modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},               
                      {
      		        module: 'MMM-Screencast',
      		        position: 'bottom_right', // This position is for a hidden <div /> and not the screencast window
      		        config: {
      			        position: 'bottomRight',
      			        height: 300,
      			        width: 500,
      		        }
                     },
                     {
      			module: "calendar",
      			header: "Feriados",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "https://www.calendarlabs.com/ical-calendar/ics/37/Brazil_Holidays.ics"					}
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third"
      		},
      		
      		{
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @iorifly
        last edited by

        @iorifly seems one of the module dependencies is garbled… try this

        cd ~/MagicMirror/modules/MMM-Screencast
        rm -rf node_modules
        npm install
        cd ~/MagicMirror
        npm start
        

        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 @iorifly
          last edited by

          @iorifly how did u update to 2.10?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • I Offline
            iorifly
            last edited by

            How did I update my MM? I installed it from scratch … Already in this version.

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

              @iorifly ok, installed… good (update just came out, so most have updated from 2.9)

              can u tell me the output of

              node -v
              npm -v

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • I Offline
                iorifly
                last edited by

                pi@raspberrypi:~/MagicMirror $ node -v
                v10.18.0
                pi@raspberrypi:~/MagicMirror $ npm -v
                6.13.4
                pi@raspberrypi:~/MagicMirror $
                
                1 Reply Last reply Reply Quote 0
                • I Offline
                  iorifly
                  last edited by

                  That is why almost no module works for me … I’m struggling to put the Home assistant and also nothing !!

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

                    @iorifly seems one of the module dependencies is garbled… try this

                    cd ~/MagicMirror/modules/MMM-Screencast
                    rm -rf node_modules
                    npm install
                    cd ~/MagicMirror
                    npm start
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • I Offline
                      iorifly
                      last edited by

                      @sdetweil said in MMM-Screencast erro:

                      npm install

                      pi@raspberrypi:~/MagicMirror/modules/MMM-Screencast $ npm install
                      
                      > electron@3.1.13 postinstall /home/pi/MagicMirror/modules/MMM-Screencast/node_modules/electron
                      > node install.js
                      
                      added 208 packages from 211 contributors and audited 369 packages in 55.818s
                      
                      1 package is looking for funding
                        run `npm fund` for details
                      
                      found 11 vulnerabilities (5 low, 2 moderate, 4 high)
                        run `npm audit fix` to fix them, or `npm audit` for details
                      pi@raspberrypi:~/MagicMirror/modules/MMM-Screencast $
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @iorifly
                        last edited by

                        @iorifly ok, and restarting ?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • I Offline
                          iorifly
                          last edited by

                          Worked, thank you!!

                          1 Reply Last reply Reply Quote 0
                          • I Offline
                            iorifly
                            last edited by

                            Could you help me with the Home Assistant module?

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

                              @iorifly sorry, don’t know anything about it… what is the problem?

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                iorifly
                                last edited by iorifly

                                pi@raspberrypi:~/MagicMirror $ npm start
                                
                                > magicmirror@2.10.0 start /home/pi/MagicMirror
                                > ./run-start.sh
                                
                                [17:20:12.438] [LOG]    Starting MagicMirror: v2.10.0
                                [17:20:12.470] [LOG]    Loading config ...
                                [17:20:12.491] [LOG]    Loading module helpers ...
                                [17:20:12.495] [LOG]    No helper found for module: alert.
                                [17:20:12.748] [LOG]    Initializing new module helper ...
                                [17:20:12.751] [LOG]    Module helper loaded: updatenotification
                                [17:20:12.754] [LOG]    No helper found for module: clock.
                                [17:20:14.468] [LOG]    Initializing new module helper ...
                                [17:20:14.470] [LOG]    Module helper loaded: calendar
                                [17:20:14.472] [LOG]    No helper found for module: compliments.
                                [17:20:15.942] [LOG]    Initializing new module helper ...
                                [17:20:15.944] [LOG]    Module helper loaded: MMM-DarkSkyForecast
                                [17:20:16.102] [LOG]    Initializing new module helper ...
                                [17:20:16.104] [LOG]    Module helper loaded: newsfeed
                                [17:20:16.121] [ERROR]  WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'underscore'
                                [17:20:16.125] [LOG]    Loading module helpers ...
                                [17:20:16.128] [LOG]    No helper found for module: alert.
                                [17:20:16.131] [LOG]    Initializing new module helper ...
                                [17:20:16.133] [LOG]    Module helper loaded: updatenotification
                                [17:20:16.136] [LOG]    No helper found for module: clock.
                                [17:20:16.139] [LOG]    Initializing new module helper ...
                                [17:20:16.141] [LOG]    Module helper loaded: calendar
                                [17:20:16.143] [LOG]    No helper found for module: compliments.
                                [17:20:16.145] [LOG]    Initializing new module helper ...
                                [17:20:16.147] [LOG]    Module helper loaded: MMM-DarkSkyForecast
                                [17:20:16.150] [LOG]    Initializing new module helper ...
                                [17:20:16.152] [LOG]    Module helper loaded: newsfeed
                                [17:20:16.159] [ERROR]  App threw an error during load
                                [17:20:16.163] [ERROR]  Error: Cannot find module 'underscore'
                                    at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                    at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                                    at Module.require (internal/modules/cjs/loader.js:658:17)
                                    at require (internal/modules/cjs/helpers.js:20:18)
                                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:14:9)
                                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:227:3)
                                    at Module._compile (internal/modules/cjs/loader.js:711:30)
                                    at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                                [17:20:16.171] [LOG]    Whoops! There was an uncaught exception...
                                [17:20:16.174] [ERROR]  { Error: Cannot find module 'underscore'
                                    at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
                                    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                    at Function.Module._load (internal/modules/cjs/loader.js:528:25)
                                    at Module.require (internal/modules/cjs/loader.js:658:17)
                                    at require (internal/modules/cjs/helpers.js:20:18)
                                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:14:9)
                                    at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-HASS/node_helper.js:227:3)
                                    at Module._compile (internal/modules/cjs/loader.js:711:30)
                                    at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) code: 'MODULE_NOT_FOUND' }
                                [17:20:16.209] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                [17:20:16.211] [LOG]    If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                [17:20:16.925] [LOG]    Launching application.
                                [17:20:34.995] [LOG]    Shutting down server...
                                [17:20:35.006] [LOG]    Stopping module helper: updatenotification
                                [17:20:35.008] [LOG]    Stopping module helper: calendar
                                [17:20:35.010] [LOG]    Stopping module helper: MMM-DarkSkyForecast
                                [17:20:35.012] [LOG]    Stopping module helper: newsfeed
                                [17:20:35.014] [LOG]    Stopping module helper: updatenotification
                                [17:20:35.016] [LOG]    Stopping module helper: calendar
                                [17:20:35.018] [LOG]    Stopping module helper: MMM-DarkSkyForecast
                                [17:20:35.019] [LOG]    Stopping module helper: newsfeed
                                pi@raspberrypi:~/MagicMirror $
                                

                                I confess I don’t know if the error is only in MM. But nothing happens in the Home assistant. That is, accuses nothing.

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

                                  @iorifly said in MMM-Screencast erro:

                                  Cannot find module ‘underscore’

                                  looks like the module author forgot to update the package.json to indicate this library was needed
                                  do this

                                  cd ~/MagicMirror/modules/MMM-HASS
                                  npm install underscore
                                  cd ~/MagicMirror
                                  npm start

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

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

                                    I opened issue in the module github repo
                                    https://github.com/aserramonner/MMM-HASS/issues/14

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • I Offline
                                      iorifly
                                      last edited by

                                      You are great!

                                      In the meantime, I tried another module, MMM-homeassistant-sensors.

                                      It carries the MM. However I get this error msg. and no other module loads … gets msg from “loading”

                                      pi@raspberrypi:~/MagicMirror $ npm start
                                      
                                      > magicmirror@2.10.0 start /home/pi/MagicMirror
                                      > ./run-start.sh
                                      
                                      [19:50:41.053] [LOG] Starting MagicMirror: v2.10.0
                                      [19:50:41.091] [LOG] Loading config ...
                                      [19:50:41.111] [LOG] Loading module helpers ...
                                      [19:50:41.119] [LOG] No helper found for module: alert.
                                      [19:50:41.315] [LOG] Initializing new module helper ...
                                      [19:50:41.319] [LOG] Module helper loaded: updatenotification
                                      [19:50:41.321] [LOG] No helper found for module: clock.
                                      [19:50:42.483] [LOG] Initializing new module helper ...
                                      [19:50:42.485] [LOG] Module helper loaded: MMM-Screencast
                                      [19:50:43.894] [LOG] Initializing new module helper ...
                                      [19:50:43.896] [LOG] Module helper loaded: calendar
                                      [19:50:43.898] [LOG] No helper found for module: compliments.
                                      [19:50:45.187] [LOG] Initializing new module helper ...
                                      [19:50:45.190] [LOG] Module helper loaded: MMM-DarkSkyForecast
                                      [19:50:45.320] [LOG] Initializing new module helper ...
                                      [19:50:45.322] [LOG] Module helper loaded: newsfeed
                                      [19:50:45.330] [LOG] Initializing new module helper ...
                                      [19:50:45.332] [LOG] Module helper loaded: MMM-homeassistant-sensors
                                      [19:50:45.333] [LOG] All module helpers loaded.
                                      [19:50:45.342] [LOG] Starting server on port 8080 ...
                                      [19:50:45.441] [LOG] Server started ...
                                      [19:50:45.444] [LOG] Connecting socket for: updatenotification
                                      [19:50:45.448] [LOG] Connecting socket for: MMM-Screencast
                                      [19:50:45.452] [LOG] Connecting socket for: calendar
                                      [19:50:45.454] [LOG] Starting node helper for: calendar
                                      [19:50:45.457] [LOG] Connecting socket for: MMM-DarkSkyForecast
                                      [19:50:45.459] [LOG] ====================== Starting node_helper for module [MMM-DarkSkyForecast]
                                      [19:50:45.462] [LOG] Connecting socket for: newsfeed
                                      [19:50:45.465] [LOG] Starting module: newsfeed
                                      [19:50:45.528] [LOG] Connecting socket for: MMM-homeassistant-sensors
                                      [19:50:45.533] [LOG] Sockets connected & modules started ...
                                      [19:50:45.538] [LOG]
                                      Ready to go! Please point your browser to: http://localhost:8080
                                      Starting chromium browser now, have patience, it takes a minute
                                       --disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
                                      events.js:174
                                            throw er; // Unhandled 'error' event
                                            ^
                                      
                                      Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
                                          at doWrite (_stream_writable.js:411:19)
                                          at writeOrBuffer (_stream_writable.js:399:5)
                                          at Socket.Writable.write (_stream_writable.js:299:11)
                                          at Console.con.(anonymous function) [as log] (/home/pi/MagicMirror/node_modules/console-stamp/main.js:150:46)
                                          at process.<anonymous> (/home/pi/MagicMirror/js/app.js:40:10)
                                          at process.emit (events.js:198:13)
                                          at process._fatalException (internal/bootstrap/node.js:497:27)
                                      ^C
                                      pi@raspberrypi:~/MagicMirror $
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jorgnyg
                                        last edited by

                                        @sdetweil said in MMM-Screencast erro:

                                        https://github.com/aserramonner/MMM-HASS/issues/14

                                        I’m getting the same “Unhandled ‘error’”-error. However, I’m not using this module at all.

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

                                          @jorgnyg well then it’s a problem in another module

                                          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 @iorifly
                                            last edited by

                                            @iorifly can u do this

                                            which chromium-browser
                                            

                                            it should return something, not an empty line

                                            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
                                              last edited by sdetweil

                                              @iorifly said in MMM-Screencast erro:

                                              MMM-homeassistant-sensors

                                              I installed this module and am running split mode… I don’t see any errors, but I don’t have an HA system talk to…

                                              I get the header on the page, that says the module started

                                              Sam

                                              How to add modules

                                              learning how to use browser developers window for css changes

                                              1 Reply Last reply Reply Quote 0

                                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                              With your input, this post could be even better 💗

                                              Register Login
                                              • 1
                                              • 2
                                              • 1 / 2
                                              • 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