• 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.

Error while starting Magic Mirror

Scheduled Pinned Locked Moved Development
29 Posts 2 Posters 5.3k 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.
  • 1 Offline
    1BlauNitrox
    last edited by Jan 21, 2022, 1:21 PM

    Hey guys,
    I am not able to start my Magic Mirror with the command pm2 start MagicMirror.

    There is always this error:

    [21.01.2022 14:17.17.199] [ERROR] Whoops! There was an uncaught exception...
    [21.01.2022 14:17.17.201] [ERROR] TypeError: Cannot read properties of undefined (reading 'on')
        at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:104:5)
        at Module._compile (node:internal/modules/cjs/loader:1101:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
        at Module._compile (node:internal/modules/cjs/loader:1101:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    

    I have only installed Spotify and calender_monthly module. Yesterday everythink works fine, now nothing works without changing anything

    S 1 Reply Last reply Jan 21, 2022, 1:46 PM Reply Quote 0
    • S Away
      sdetweil @1BlauNitrox
      last edited by Jan 21, 2022, 1:46 PM

      @1blaunitrox that looks like a bad position for a module

      module:
      position: ???

      see the list here
      https://docs.magicmirror.builders/modules/configuration.html

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 1 Reply Last reply Jan 21, 2022, 2:53 PM Reply Quote 0
      • 1 Offline
        1BlauNitrox @sdetweil
        last edited by Jan 21, 2022, 2:53 PM

        @sdetweil

        This is my config:

        modules: [
        		{
        			module: "alert",
        		},
        		{
        			module: "updatenotification",
        			position: "top_bar"
        		},
        		{
        			module: "clock",
        			position: "top_left"
        		},
        		{
        			module: "calendar_monthly",
        			position: "top_left",
        			config: {
        
        			}
        		},
        		{
        			module: "weather",
        			position: "top_right",
        			config: {
        				weatherProvider: "openweathermap",
        				type: "current",
        				location: "mycity",
        				locationID: "cityID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
        				apiKey: "mykey"
        			}
        		},
        		{
        			module: "weather",
        			position: "top_right",
        			header: "Wettervorhersage",
        			config: {
        				weatherProvider: "openweathermap",
        				type: "forecast",
        				location: "mycity",
        				locationID: "cityID", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
        				apiKey: "mykey"
        			}
        		},
        		{
                    		 module: "MMM-NowPlayingOnSpotify",
         			 position: "bottom_left",
        			 config: {
           				 clientID: "myid",
            				 clientSecret: "myid",
            				 accessToken: "mytoken",
            				 refreshToken: "mytoken"
         			 }
        		},
        	]
        
        S 1 Reply Last reply Jan 21, 2022, 3:54 PM Reply Quote 0
        • S Away
          sdetweil @1BlauNitrox
          last edited by Jan 21, 2022, 3:54 PM

          @1blaunitrox I don’t see a calendar_monthly module

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 1 Reply Last reply Jan 21, 2022, 4:13 PM Reply Quote 0
          • 1 Offline
            1BlauNitrox @sdetweil
            last edited by Jan 21, 2022, 4:13 PM

            @sdetweil What do you mean?

            https://github.com/KirAsh4/calendar_monthly/

            S 1 Reply Last reply Jan 21, 2022, 4:16 PM Reply Quote 0
            • S Away
              sdetweil @1BlauNitrox
              last edited by Jan 21, 2022, 4:16 PM

              @1blaunitrox thx… I used your module list and dont see any issues…

              you did npm install in both new module folders, right?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 1 Reply Last reply Jan 21, 2022, 4:16 PM Reply Quote 0
              • 1 Offline
                1BlauNitrox @sdetweil
                last edited by Jan 21, 2022, 4:16 PM

                @sdetweil no, it worked without

                S 1 2 Replies Last reply Jan 21, 2022, 4:17 PM Reply Quote 0
                • S Away
                  sdetweil @1BlauNitrox
                  last edited by Jan 21, 2022, 4:17 PM

                  @1blaunitrox both modules provide a package.json file, which means u must
                  npm install
                  in their folders

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1 Offline
                    1BlauNitrox @1BlauNitrox
                    last edited by Jan 21, 2022, 4:20 PM

                    @1blaunitrox my mistake. I did it

                    S 1 Reply Last reply Jan 21, 2022, 4:24 PM Reply Quote 0
                    • S Away
                      sdetweil @1BlauNitrox
                      last edited by Jan 21, 2022, 4:24 PM

                      @1blaunitrox did u update MM?? git pull?

                      did you npm install after?

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 1 Reply Last reply Jan 21, 2022, 4:26 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        4/29
                        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