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.

    MM on Ubuntu

    Scheduled Pinned Locked Moved Solved Troubleshooting
    90 Posts 4 Posters 42.0k 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.
    • S Offline
      sdetweil @goncalovsc
      last edited by

      @goncalovsno…

      how do you start MM? pm2 or some other script?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil Its with auto start activated

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

          @goncalovsc sorry, don’t understand that…

          if you used my script, it would have asked if you wanted to use pm2 to start on boot… (default answer is no)

          so, what script is executed on ‘autostart’?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil ahhh i think i said yes

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

              @goncalovsc so,

              pm2 status  
              

              should show the definition

              anyhow, if you have copied the confi over, now restart mm again…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • G Offline
                goncalovsc
                last edited by

                https://gyazo.com/14d8c30cc49ba12b849877d0b401a638
                Just restarted, all the same…

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

                  @goncalovsc ok, edit the config.js and show me the config for weatherforecast

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil ```

                    	module: "currentweather",
                    			position: "top_right",
                    			config: {
                    				location: "Matosinhos",
                    				locationID: "2737824", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                    				appid: "b1f305ba796f09f236dfa60e45a8a8d8"
                    			}
                    		},
                    		{
                    			module: "weatherforecast",
                    			position: "top_right",
                    			header: "Weather Forecast",
                    			config: {
                    				location: "Matosinhos",
                    				locationID: "2737824", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                    				appid: "b1f305ba796f09f236dfa60e45a8a8d8"
                    			}
                    		},
                    		{
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @goncalovsc
                      last edited by

                      @goncalovsc ok, show the output of pm2 logs

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @sdetweil

                        [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
                        /home/goncalo/.pm2/pm2.log last 15 lines:
                        PM2        | 2020-04-04T17:04:39: PM2 log: Application log path : /home/goncalo/.pm2/logs
                        PM2        | 2020-04-04T17:04:39: PM2 log: Worker Interval      : 30000
                        PM2        | 2020-04-04T17:04:39: PM2 log: Process dump file    : /home/goncalo/.pm2/dump.pm2
                        PM2        | 2020-04-04T17:04:39: PM2 log: Concurrent actions   : 2
                        PM2        | 2020-04-04T17:04:39: PM2 log: SIGTERM timeout      : 1600
                        PM2        | 2020-04-04T17:04:39: PM2 log: ===============================================================================
                        PM2        | 2020-04-04T17:04:39: PM2 log: [Watch] Start watching MagicMirror
                        PM2        | 2020-04-04T17:04:39: PM2 log: App [MagicMirror:0] starting in -fork mode-
                        PM2        | 2020-04-04T17:04:39: PM2 log: App [MagicMirror:0] online
                        PM2        | 2020-04-04T17:11:20: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                        PM2        | 2020-04-04T17:11:20: PM2 log: App [MagicMirror:0] starting in -fork mode-
                        PM2        | 2020-04-04T17:11:20: PM2 log: App [MagicMirror:0] online
                        PM2        | 2020-04-04T17:41:37: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                        PM2        | 2020-04-04T17:41:37: PM2 log: App [MagicMirror:0] starting in -fork mode-
                        PM2        | 2020-04-04T17:41:37: PM2 log: App [MagicMirror:0] online
                        
                        /home/goncalo/.pm2/logs/MagicMirror-error.log last 15 lines:
                        0|MagicMir | npm ERR! errno 1
                        0|MagicMir | npm ERR! magicmirror@2.11.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                        0|MagicMir | npm ERR! Exit status 1
                        0|MagicMir | npm ERR! 
                        0|MagicMir | npm ERR! Failed at the magicmirror@2.11.0 start script.
                        0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                        0|MagicMir | 
                        0|MagicMir | npm ERR! A complete log of this run can be found in:
                        0|MagicMir | npm ERR!     /home/goncalo/.npm/_logs/2020-04-04T16_02_55_422Z-debug.log
                        0|MagicMir | [1328:0404/170500.787870:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
                        0|MagicMir | [1328:0404/170822.269139:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
                        0|MagicMir | [1328:0404/171052.817336:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
                        0|MagicMir | [1910:0404/171123.504386:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
                        0|MagicMir | [1910:0404/174131.869273:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
                        0|MagicMir | [2161:0404/174140.096920:ERROR:gles2_cmd_decoder.cc(2813)] [GroupMarkerNotSet(crbug.com/242999)!:B0305C06BA0D0000]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Create: <- error from previous GL command
                        
                        /home/goncalo/.pm2/logs/MagicMirror-out.log last 15 lines:
                        0|MagicMir | [2020-04-04 17:41:39.247] [LOG]    No helper found for module: weatherforecast.
                        0|MagicMir | [2020-04-04 17:41:39.266] [LOG]    Initializing new module helper ...
                        0|MagicMir | [2020-04-04 17:41:39.266] [LOG]    Module helper loaded: newsfeed
                        0|MagicMir | [2020-04-04 17:41:39.267] [LOG]    All module helpers loaded.
                        0|MagicMir | [2020-04-04 17:41:39.350] [LOG]    Starting server on port 8080 ... 
                        0|MagicMir | [2020-04-04 17:41:39.361] [LOG]    Server started ...
                        0|MagicMir | [2020-04-04 17:41:39.362] [LOG]    Connecting socket for: updatenotification
                        0|MagicMir | [2020-04-04 17:41:39.363] [LOG]    Connecting socket for: calendar
                        0|MagicMir | [2020-04-04 17:41:39.364] [LOG]    Starting node helper for: calendar
                        0|MagicMir | [2020-04-04 17:41:39.364] [LOG]    Connecting socket for: newsfeed
                        0|MagicMir | [2020-04-04 17:41:39.365] [LOG]    Starting module: newsfeed
                        0|MagicMir | [2020-04-04 17:41:39.366] [LOG]    Sockets connected & modules started ...
                        0|MagicMir | [2020-04-04 17:41:39.467] [LOG]    Launching application.
                        0|MagicMir | [2020-04-04 17:41:40.947] [LOG]    Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
                        0|MagicMir | [2020-04-04 17:41:40.979] [LOG]    Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
                        
                        
                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 8 / 9
                        • 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