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.

    Problem with MMM-PhoneDetect

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 3 Posters 640 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.
    • M Offline
      Manino
      last edited by sdetweil

      I did the install of the MMM-PhoneDetect but can’t get it to work. Does anyone know what do to? There seem to be no conection between my phone and the module. It’s a grey dot on the screen that is supposed to be green. When I did the log check I get this:

      m@raspberrypi:~ $ pm2 logs
      [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
      /home/m/.pm2/pm2.log last 15 lines:
      PM2        | 2024-06-16T14:23:34: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2        | 2024-06-16T14:23:34: PM2 log: App [MagicMirror:0] online
      PM2        | 2024-06-16T14:39:28: PM2 log: Change detected on path config/config.js for app MagicMirror - restarting
      PM2        | 2024-06-16T14:39:28: PM2 log: Stopping app:MagicMirror id:0
      PM2        | 2024-06-16T14:39:29: PM2 error: Error: kill EPERM
      PM2        | 2024-06-16T14:39:29: PM2 error: Error: kill EPERM
      PM2        | 2024-06-16T14:39:29: PM2 log: pid=859 msg=failed to kill - retrying in 100ms
      PM2        | 2024-06-16T14:39:29: PM2 log: pid=859 msg=failed to kill - retrying in 100ms
      PM2        | 2024-06-16T14:39:29: PM2 log: pid=859 msg=failed to kill - retrying in 100ms
      PM2        | 2024-06-16T14:39:29: PM2 log: pid=859 msg=failed to kill - retrying in 100ms
      PM2        | 2024-06-16T14:39:29: PM2 log: pid=859 msg=failed to kill - retrying in 100ms
      PM2        | 2024-06-16T14:39:29: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      PM2        | 2024-06-16T14:39:30: PM2 log: pid=859 msg=process killed
      PM2        | 2024-06-16T14:39:30: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2        | 2024-06-16T14:39:30: PM2 log: App [MagicMirror:0] online
      
      /home/m/.pm2/logs/MagicMirror-error.log last 15 lines:
      0|MagicMir | [1193:0616/142444.467634:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
      0|MagicMir | [2024-06-16 14:39:29.388] [ERROR] MMM-PhoneDetect: Error performing nmap scan: Command failed: sudo nmap -sn 192.168.1.0/24
      0|MagicMir |  
      0|MagicMir | [2024-06-16 14:39:29.400] [ERROR] (node:1193) UnhandledPromiseRejectionWarning: Error: Command failed: sudo nmap -sn 192.168.1.0/24
      0|MagicMir | 
      0|MagicMir |     at ChildProcess.exithandler (node:child_process:422:12)
      0|MagicMir |     at ChildProcess.emit (node:events:514:28)
      0|MagicMir |     at maybeClose (node:internal/child_process:1105:16)
      0|MagicMir |     at Socket.<anonymous> (node:internal/child_process:457:11)
      0|MagicMir |     at Socket.emit (node:events:514:28)
      0|MagicMir |     at Pipe.<anonymous> (node:net:337:12)
      0|MagicMir | (Use `electron --trace-warnings ...` to show where the warning was created) 
      0|MagicMir | [2024-06-16 14:39:29.401] [ERROR] (node:1193) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) 
      0|MagicMir | /home/manino/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
      0|MagicMir | [3682:0616/144334.609151:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCache
      
      /home/m/.pm2/logs/MagicMirror-out.log last 15 lines:
      0|MagicMir | [2024-06-16 15:09:17.175] [LOG]   MMM-PhoneDetect: Mirror turned off. 
      0|MagicMir | [2024-06-16 15:09:17.915] [LOG]   MMM-PhoneDetect: Turning off the mirror... 
      0|MagicMir | [2024-06-16 15:09:17.942] [LOG]   MMM-PhoneDetect: Mirror turned off. 
      0|MagicMir | [2024-06-16 15:09:22.384] [LOG]   MMM-PhoneDetect: Turning off the mirror... 
      0|MagicMir | [2024-06-16 15:09:22.439] [LOG]   MMM-PhoneDetect: Mirror turned off. 
      0|MagicMir | [2024-06-16 15:09:23.045] [LOG]   MMM-PhoneDetect: Turning off the mirror...
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Manino
        last edited by

        @Manino did you install the nmap program?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        plainbrokeP 1 Reply Last reply Reply Quote 0
        • plainbrokeP Offline
          plainbroke @sdetweil
          last edited by

          @sdetweil
          Can I hide this module ?
          It would be great to use and I think instead of the shut down monitor, I can us pm2 stop all and pm2 start mm to shut off display, like I do in my crontab. I leave the monitor on all the time as a night light basically very little light come of it cause I use a black background and the toolbar is set to small with a black background. What do you think can this be made to work…?

          Slow learner. But trying anyways.
          MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
          Running Trixie and the latest MM version.

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

            @plainbroke hide what module?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            plainbrokeP 1 Reply Last reply Reply Quote 0
            • plainbrokeP Offline
              plainbroke @sdetweil
              last edited by

              @sdetweil

              MMM-PhoneDetect, I just want to use it to turn the screen off and on if one of is home. My dogs ignore MM anyways.

              Slow learner. But trying anyways.
              MM is on Raspberry Pi 4B w/8gb ram loaded on a 128gb nvme drive.
              Running Trixie and the latest MM version.

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

                @plainbroke maybe, add

                hiddenOnStartup:true,

                after module:

                1000026643.jpg

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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