<?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[MMM-PIR-Sensor Black screen..]]></title><description><![CDATA[<p dir="auto">Hey guys could someone help me what am i doing wrong…?<br />
i keep getting this error:</p>
<pre><code>Error: Cannot find module 'onoff'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:11:14)
    at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:88:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
Whoops! There was an uncaught exception...
{ Error: Cannot find module 'onoff'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:11:14)
    at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_helper.js:88:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32) code: 'MODULE_NOT_FOUND' }
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.
</code></pre>
<p dir="auto">This is my config.js file:</p>
<pre><code>    {
                          module: 'MMM-PIR-Sensor',
                          config: {
                            sensorPIN: 22,
                            powerSaving: true,
                        relayOnState: 1
                  }
                },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/2618/mmm-pir-sensor-black-screen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 17:29:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2618.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 May 2017 18:25:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-PIR-Sensor Black screen.. on Sat, 26 Aug 2017 11:06:31 GMT]]></title><description><![CDATA[<p dir="auto">I solved the <code>Error: Cannot find module 'onoff'</code>- Error by removing the <code>node_modules</code> from the MMM-PIR-Sensor directory and reinstall them by using <code>npm i</code>. This time, some dependencies seem to be built in with electron, and the error disappeared.</p>
]]></description><link>https://forum.magicmirror.builders/post/27061</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/27061</guid><dc:creator><![CDATA[Duske]]></dc:creator><pubDate>Sat, 26 Aug 2017 11:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor Black screen.. on Thu, 01 Jun 2017 19:25:23 GMT]]></title><description><![CDATA[<p dir="auto">fixed this one !</p>
]]></description><link>https://forum.magicmirror.builders/post/22261</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22261</guid><dc:creator><![CDATA[Desertswing]]></dc:creator><pubDate>Thu, 01 Jun 2017 19:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor Black screen.. on Tue, 30 May 2017 19:42:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/desertswing" aria-label="Profile: Desertswing">@<bdi>Desertswing</bdi></a><br />
I found out how to, i forgot to place the files in root :)<br />
But my screen isen`t going off yet but the light bulb i attached goed on and off when motion detected??</p>
]]></description><link>https://forum.magicmirror.builders/post/22195</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22195</guid><dc:creator><![CDATA[Desertswing]]></dc:creator><pubDate>Tue, 30 May 2017 19:42:29 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor Black screen.. on Tue, 30 May 2017 14:21:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/envedede" aria-label="Profile: envedede">@<bdi>envedede</bdi></a></p>
<p dir="auto"><strong>How do i need to:</strong></p>
<p dir="auto">chmod all files: From a terminal window in your root directory:</p>
<p dir="auto">sudo chmod +x <a href="http://pir.py" target="_blank" rel="noopener noreferrer nofollow ugc">pir.py</a></p>
<p dir="auto">sudo chmod +x monitor_off.sh</p>
<p dir="auto">sudo chmod +x monitor_on.sh</p>
<p dir="auto">Editing <a href="http://pir.py" target="_blank" rel="noopener noreferrer nofollow ugc">pir.py</a></p>
<p dir="auto">could u explain, i`m master noob with raspberry :P</p>
]]></description><link>https://forum.magicmirror.builders/post/22175</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22175</guid><dc:creator><![CDATA[Desertswing]]></dc:creator><pubDate>Tue, 30 May 2017 14:21:56 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor Black screen.. on Sun, 28 May 2017 20:45:23 GMT]]></title><description><![CDATA[<p dir="auto">Thank’s for your answer. As you have already seen I was able to solve it nealry like cowboysdude did</p>
]]></description><link>https://forum.magicmirror.builders/post/22118</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22118</guid><dc:creator><![CDATA[beck0r]]></dc:creator><pubDate>Sun, 28 May 2017 20:45:23 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor Black screen.. on Sun, 28 May 2017 15:39:36 GMT]]></title><description><![CDATA[<p dir="auto">You are correct about the BCM pin numbering beck0r, it is not the same as the actual pin number (the BCM pin numbering origins from the processor pins if I am correct).</p>
<p dir="auto">What I advise is to forget about this module and use <a href="https://github.com/cowboysdude/Pir-Sensor" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/cowboysdude/Pir-Sensor</a> instead.<br />
I made some slight changes to this myself, because it was still not turning on the monitor correctly.</p>
<p dir="auto">RUN apt-get update &amp;&amp; apt-get install -y libraspberrypi-bin and replace the scripts from the above link as follows: monitor_on.sh contains only vcgencmd display_power 1 and monitor_off.sh only the line vcgencmd display_power 0. This solved my problem for every display I used so far, being HDMI, VGA and DVI displays.</p>
]]></description><link>https://forum.magicmirror.builders/post/22103</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22103</guid><dc:creator><![CDATA[envedede]]></dc:creator><pubDate>Sun, 28 May 2017 15:39:36 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor Black screen.. on Sun, 28 May 2017 07:14:10 GMT]]></title><description><![CDATA[<p dir="auto">Facing the same issue… The sensor itself works. Tested with a python script…<br />
As soon as I implement the config for the sensor the screen stays black (via VNC) and the MM is not reachable via browser.</p>
<p dir="auto">By the way, I have connected my GPIO-data-cable to PIN wiringPi 7. The description says that BCM numbering should be used, so I used 4 instead of 7 in the config. Is that correct?</p>
<p dir="auto"><img src="/assets/uploads/files/1495955559692-upload-4326d89c-c750-454d-baea-0405235938ca.png" alt="0_1495955558091_upload-4326d89c-c750-454d-baea-0405235938ca" class=" img-fluid img-markdown" /></p>
<p dir="auto">(Sorry for german screenshot)</p>
]]></description><link>https://forum.magicmirror.builders/post/22091</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22091</guid><dc:creator><![CDATA[beck0r]]></dc:creator><pubDate>Sun, 28 May 2017 07:14:10 GMT</pubDate></item></channel></rss>