<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem with MMM-PhoneDetect]]></title><description><![CDATA[<p dir="auto">I did the install of the <a href="https://github.com/PierreGode/MMM-PhoneDetect" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-PhoneDetect</a> 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:</p>
<pre><code class="language-text">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.&lt;anonymous&gt; (node:internal/child_process:457:11)
0|MagicMir |     at Socket.emit (node:events:514:28)
0|MagicMir |     at Pipe.&lt;anonymous&gt; (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...
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/18801/problem-with-mmm-phonedetect</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 09:39:22 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18801.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Jun 2024 13:37:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with MMM-PhoneDetect on Mon, 08 Jul 2024 22:54:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> maybe, add</p>
<p dir="auto">hiddenOnStartup:true,</p>
<p dir="auto">after module:</p>
<p dir="auto"><img src="/assets/uploads/files/1720479260407-1000026643.jpg" alt="1000026643.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/118788</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118788</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 08 Jul 2024 22:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with MMM-PhoneDetect on Mon, 08 Jul 2024 22:23:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">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.</p>
]]></description><link>https://forum.magicmirror.builders/post/118787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118787</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Mon, 08 Jul 2024 22:23:51 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with MMM-PhoneDetect on Sun, 07 Jul 2024 16:05:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plainbroke" aria-label="Profile: plainbroke">@<bdi>plainbroke</bdi></a> hide what module?</p>
]]></description><link>https://forum.magicmirror.builders/post/118766</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118766</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 07 Jul 2024 16:05:34 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with MMM-PhoneDetect on Sun, 07 Jul 2024 15:56:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Can I hide this module ?<br />
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…?</p>
]]></description><link>https://forum.magicmirror.builders/post/118765</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118765</guid><dc:creator><![CDATA[plainbroke]]></dc:creator><pubDate>Sun, 07 Jul 2024 15:56:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with MMM-PhoneDetect on Sun, 30 Jun 2024 11:06:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/manino" aria-label="Profile: Manino">@<bdi>Manino</bdi></a> did you install the nmap program?</p>
]]></description><link>https://forum.magicmirror.builders/post/118549</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118549</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 30 Jun 2024 11:06:05 GMT</pubDate></item></channel></rss>