Read the statement by Michael Teeuw here.
Problem with MMM-PhoneDetect
-
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...
-
@Manino did you install the nmap program?
-
@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…? -
@plainbroke hide what module?
-
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.
-