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 3.6k 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
                          • 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