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-MyCommute

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    22 Posts 4 Posters 6.3k 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.
    • CyruS1337C Offline
      CyruS1337 Project Sponsor
      last edited by

      no ideas? Or can I do something that can help you to find the mistake?

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

        @CyruS1337 what does ‘does not run’ mean?

        did u open the developers console and look for any errors reported?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • CyruS1337C Offline
          CyruS1337 Project Sponsor
          last edited by

          @sdetweil

          If I access the MagicMirror directly via Putty do I have to enter npm start dev or how?

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

            @CyruS1337 yes, do

            cd ~/MagicMirror
            export DISPLAY=:0
            npm start dev
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • CyruS1337C Offline
              CyruS1337 Project Sponsor
              last edited by

              @sdetweil said in MMM-MyCommute:

              export DISPLAY=:0

              That comes out when I enter npm start dev

              > magicmirror@2.8.0 start /home/pi/MagicMirror
              > sh run-start.sh "dev"
              
              Starting MagicMirror: v2.8.0
              Loading config ...
              Loading module helpers ...
              No helper found for module: alert.
              Initializing new module helper ...
              Module helper loaded: updatenotification
              Initializing new module helper ...
              Module helper loaded: MMM-WatchDog
              Initializing new module helper ...
              Module helper loaded: MMM-Remote-Control
              Initializing new module helper ...
              Module helper loaded: MMM-SystemStats
              Initializing new module helper ...
              Module helper loaded: newsfeed
              Initializing new module helper ...
              Module helper loaded: MMM-MyCommute
              Initializing new module helper ...
              Module helper loaded: MMM-GoogleMapsTraffic
              Initializing new module helper ...
              Module helper loaded: MMM-DarkSkyForecast
              Initializing new module helper ...
              Module helper loaded: MMM-MyCalendar
              All module helpers loaded.
              Starting server on port 8080 ...
              Server started ...
              Connecting socket for: updatenotification
              Connecting socket for: MMM-WatchDog
              Starting module helper: MMM-WatchDog
              Connecting socket for: MMM-Remote-Control
              Starting node helper for: MMM-Remote-Control
              Connecting socket for: MMM-SystemStats
              Connecting socket for: newsfeed
              Starting module: newsfeed
              Connecting socket for: MMM-MyCommute
              ====================== Starting node_helper for module [MMM-MyCommute]
              Connecting socket for: MMM-GoogleMapsTraffic
              Starting node_helper for module: MMM-GoogleMapsTraffic
              Connecting socket for: MMM-DarkSkyForecast
              ====================== Starting node_helper for module [MMM-DarkSkyForecast]
              Connecting socket for: MMM-MyCalendar
              Starting node helper for: MMM-MyCalendar
              Sockets connected & modules started ...
              Whoops! There was an uncaught exception...
              { Error: listen EADDRINUSE 0.0.0.0:8080
                  at Server.setupListenHandle [as _listen2] (net.js:1330:14)
                  at listenInCluster (net.js:1378:12)
                  at doListen (net.js:1492:7)
                  at process._tickCallback (internal/process/next_tick.js:63:19)
                  at Function.Module.runMain (internal/modules/cjs/loader.js:755:11)
                  at startup (internal/bootstrap/node.js:241:19)
                  at bootstrapNodeJSCore (internal/bootstrap/node.js:579:3)
                errno: 'EADDRINUSE',
                code: 'EADDRINUSE',
                syscall: 'listen',
                address: '0.0.0.0',
                port: 8080 }
              MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              Launching application.
              
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @CyruS1337
                last edited by

                @CyruS1337 said in MMM-MyCommute:

                EADDRINUSE 0.0.0.0:8080

                already an instance running with pm2…

                pm2 list

                pm2 stop 0

                pm2 start 0

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                CyruS1337C 1 Reply Last reply Reply Quote 0
                • CyruS1337C Offline
                  CyruS1337 Project Sponsor @sdetweil
                  last edited by

                  @sdetweil said in MMM-MyCommute:

                  @CyruS1337 said in MMM-MyCommute:

                  EADDRINUSE 0.0.0.0:8080

                  already an instance running with pm2…

                  pm2 list

                  pm2 stop 0

                  pm2 start 0

                  I did, unfortunately it still does not show me the module

                  pi@raspberrypi3:~/MagicMirror/modules/MMM-MyCommute $ pm2 list
                  ┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
                  │ Name │ id │ mode │ status │ ↺ │ cpu │ memory   │
                  ├──────┼────┼──────┼────────┼───┼─────┼──────────┤
                  │ mm   │ 0  │ fork │ online │ 5 │ 0%  │ 2.6 MB   │
                  └──────┴────┴──────┴────────┴───┴─────┴──────────┘
                   Use `pm2 show <id|name>` to get more details about an app
                  pi@raspberrypi3:~/MagicMirror/modules/MMM-MyCommute $ pm2 stop 0
                  [PM2] Applying action stopProcessId on app [0](ids: 0)
                  [PM2] [mm](0) ✓
                  ┌──────┬────┬──────┬─────────┬───┬─────┬────────┐
                  │ Name │ id │ mode │ status  │ ↺ │ cpu │ memory │
                  ├──────┼────┼──────┼─────────┼───┼─────┼────────┤
                  │ mm   │ 0  │ fork │ stopped │ 5 │ 0%  │ 0 B    │
                  └──────┴────┴──────┴─────────┴───┴─────┴────────┘
                   Use `pm2 show <id|name>` to get more details about an app
                  pi@raspberrypi3:~/MagicMirror/modules/MMM-MyCommute $ pm2 start 0
                  [PM2] Applying action restartProcessId on app [0](ids: 0)
                  [PM2] [mm](0) ✓
                  [PM2] Process successfully started
                  ┌──────┬────┬──────┬────────┬───┬─────┬──────────┐
                  │ Name │ id │ mode │ status │ ↺ │ cpu │ memory   │
                  ├──────┼────┼──────┼────────┼───┼─────┼──────────┤
                  │ mm   │ 0  │ fork │ online │ 5 │ 0%  │ 2.6 MB   │
                  └──────┴────┴──────┴────────┴───┴─────┴──────────┘
                   Use `pm2 show <id|name>` to get more details about an app
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil
                    last edited by

                    ok, and pm2 logs to show the logging output

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    CyruS1337C 1 Reply Last reply Reply Quote 0
                    • CyruS1337C Offline
                      CyruS1337 Project Sponsor @sdetweil
                      last edited by

                      The module once worked on the PI. Do I have to do something now @sdetweil?

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

                        @CyruS1337 i don’t know anything about the module… so just looking for debugging info…

                        pm2 logs should show something

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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