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

Internet-monitor module Not Starting Mirror

Scheduled Pinned Locked Moved Solved Troubleshooting
13 Posts 3 Posters 2.0k Views 3 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.
  • E Offline
    ebourne
    last edited by Jan 7, 2024, 4:04 AM

    I have reinstall the internet-monitor module multiple times and I am pretty sure i have done it right. I even use the config from github page. the problem i am seeing is that with the module in, it does not start my mirror. no black screen, no error, it just does not start?

    restarting stopping and starting the pm2 or just rebooting the PI doesn’t do anything either

    has anyone else seen that happen? for any modules even?

    S 1 Reply Last reply Jan 7, 2024, 1:03 PM Reply Quote 0
    • K Offline
      KristjanESPERANTO Module Developer @KristjanESPERANTO
      last edited by Jan 8, 2024, 11:45 PM

      @KristjanESPERANTO said in Internet-monitor module Not Starting Mirror:

      I also happened to be working on the problem just now. The speedtest-net package is apparently no longer compatible with the current node version. I created a PR to fix this: https://github.com/BrianHepler/internet-monitor/pull/2

      Let’s see when @bhepler merge it.

      @ebourne The maintainer of the module, @bhepler, accepted my Pull Request. Please update your module and check if it’s working 🙂

      E 1 Reply Last reply Jan 28, 2024, 8:47 PM Reply Quote 0
      • S Away
        sdetweil @ebourne
        last edited by Jan 7, 2024, 1:03 PM

        @ebourne please show the messages at mm startup, where you do npm start

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        E 1 Reply Last reply Jan 7, 2024, 6:11 PM Reply Quote 0
        • E Offline
          ebourne @sdetweil
          last edited by Jan 7, 2024, 6:11 PM

          @sdetweil That is the weird thing. the start up message is completely normal

          Screenshot 2024-01-07 130854.png

          once i comment out the config for internet-monitor and run pm2 restart mm.sh i get the same message

          S 1 Reply Last reply Jan 7, 2024, 6:13 PM Reply Quote 0
          • S Away
            sdetweil @ebourne
            last edited by Jan 7, 2024, 6:13 PM

            @ebourne thats not the startup messages

            do this is the module enabled in config.js

            pm2 stop all
            cd ~/MagicMirror
            npm start 
            

            that will display the errors

            pm2 start mm
            to restart thru pm2

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            E 1 Reply Last reply Jan 7, 2024, 6:22 PM Reply Quote 1
            • E Offline
              ebourne @sdetweil
              last edited by Jan 7, 2024, 6:22 PM

              @sdetweil
              oh i see. it seems it says it can’t find a folder, and that makes me confused since i did clone and npm installed in the internet-monitor folder. i thought that was all there was

              Screenshot 2024-01-07 130955.png

              S 1 Reply Last reply Jan 7, 2024, 6:46 PM Reply Quote 0
              • S Away
                sdetweil @ebourne
                last edited by Jan 7, 2024, 6:46 PM

                @ebourne which authors module are you using
                show

                git remote -v
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                E K 2 Replies Last reply Jan 7, 2024, 6:55 PM Reply Quote 1
                • E Offline
                  ebourne @sdetweil
                  last edited by Jan 7, 2024, 6:55 PM

                  @sdetweil brianhepler

                  Screenshot 2024-01-07 135427.png

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    KristjanESPERANTO Module Developer @sdetweil
                    last edited by Jan 7, 2024, 6:55 PM

                    I also happened to be working on the problem just now. The speedtest-net package is apparently no longer compatible with the current node version. I created a PR to fix this: https://github.com/BrianHepler/internet-monitor/pull/2

                    Let’s see when @bhepler merge it.

                    S K 2 Replies Last reply Jan 7, 2024, 7:04 PM Reply Quote 0
                    • S Away
                      sdetweil @KristjanESPERANTO
                      last edited by sdetweil Jan 7, 2024, 7:20 PM Jan 7, 2024, 7:04 PM

                      @KristjanESPERANTO not node version, electron version

                      so, the steps to fix I think (tested, failed before, doesn’t fail now)

                      #!/bin/bash
                      cd ~/MagicMirror
                      # this tool should be installed in MM
                      if [ ! -e node_modules/.bin/electron-rebuild ]; then
                          npm install electron/rebuild 
                      fi
                      cd modules/internet-monitor
                      ../../node_modules/.bin/electron-rebuild
                      cd ~/MagicMirror
                      

                      this should be a postinstall step in the package.json

                      this is the tested postinstall
                      and works…

                      and the fixed package.json

                      {
                        "name": "internet-speed",
                        "version": "1.0.0",
                        "description": "Displays ping, download and upload speed on your smart mirror.",
                        "main": "index.js",
                        "scripts": {
                          "test": "echo \"Error: no test specified\" && exit 1",
                          "postinstall":"./postinstall"
                        },
                        "keywords": [
                          "internet",
                          "speed"
                        ],
                        "author": "Debayan Deb",
                        "license": "MIT",
                        "dependencies": {
                          "justgage": "^1.3.5",
                          "round-to": "^1.1.0",
                          "speedtest-net": "^2.2.0",
                          "raphael": "^2.2.8"
                        }
                      }
                      

                      have to make postinstall executable

                      chmod +x postinstall
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      K 1 Reply Last reply Jan 7, 2024, 7:29 PM Reply Quote 0
                      • K Offline
                        KristjanESPERANTO Module Developer @sdetweil
                        last edited by Jan 7, 2024, 7:29 PM

                        @sdetweil Interesting solution! I’m still not quite getting to grips with the rebuild of electron.

                        My approach in the PR is to use a version of speedtest-net that is compatible with the current version. That way, no rebuild is necessary.

                        S 1 Reply Last reply Jan 7, 2024, 7:37 PM Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          1/13
                          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