<?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] Install failing]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">First of all: I am a total newbie to Linux and MagicMirror. I now tried to install the MMM-PIR-Module on my Pi3 an no matter what I am doing, i am always getting the same error:</p>
<pre><code class="language-bash">npm WARN prefer global node-gyp@3.4.0 should be installed with -g

epoll@0.1.20 install /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
node-gyp rebuild

make: Entering directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'
  CXX(target) Release/obj.target/epoll/src/epoll.o
  SOLINK_MODULE(target) Release/obj.target/epoll.node
  COPY Release/epoll.node
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'

Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall /home/pi/MagicMirror/modules/MMM-PIR-Sensor
electron-rebuild -e ../../node_modules/electron-prebuilt

module.js:471
    throw err;
    ^

Error: Cannot find module 'bluebird'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/cli.js:8:17)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

npm ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: `electron-rebuild -e ../../node_modules/electron-prebuilt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall script 'electron-rebuild -e ../../node_modules/electron-prebuilt'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the Magic-Mirror-Module-PIR-Sensor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron-rebuild -e ../../node_modules/electron-prebuilt
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs Magic-Mirror-Module-PIR-Sensor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls Magic-Mirror-Module-PIR-Sensor
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/MagicMirror/modules/MMM-PIR-Sensor/npm-debug.log
</code></pre>
<p dir="auto">Does someone have a solution for me?</p>
<p dir="auto">Thank you very much!</p>
<p dir="auto">Best regards,</p>
<p dir="auto">Mareus</p>
]]></description><link>https://forum.magicmirror.builders/topic/1351/mmm-pir-sensor-install-failing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 02:17:38 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1351.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jan 2017 21:22:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Thu, 08 Jun 2017 09:35:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pepemujica" aria-label="Profile: pepemujica">@<bdi>pepemujica</bdi></a><br />
No. You can connect the PIR sensor to the GPIO pins of your raspberry (make sure your wiring is proper) and work with the PIR sensor after installing the specific libraries</p>
]]></description><link>https://forum.magicmirror.builders/post/22483</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22483</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Thu, 08 Jun 2017 09:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Wed, 07 Jun 2017 12:39:06 GMT]]></title><description><![CDATA[<p dir="auto">Do I need anything else than the raspi, cable and pir sensor?<br />
An arduino for example?</p>
<p dir="auto">Kind regards</p>
]]></description><link>https://forum.magicmirror.builders/post/22444</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/22444</guid><dc:creator><![CDATA[pepemujica]]></dc:creator><pubDate>Wed, 07 Jun 2017 12:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Thu, 18 May 2017 16:58:13 GMT]]></title><description><![CDATA[<p dir="auto">Hmmmm, black screen, and nothing on a browser at <a href="http://192.168.n.nn:8080/" target="_blank" rel="noopener noreferrer nofollow ugc">http://192.168.n.nn:8080/</a>  either.</p>
<pre><code>		module: 'MMM-PIR-Sensor',
		config: {
		sensorPIN: 22,
                powerSaving: true,
                relayPIN: false,
                powerSavingDelay: 0,
                relayOnState: 1
			// See 'Configuration options' for more information.
		}
	},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/21787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21787</guid><dc:creator><![CDATA[Richard238]]></dc:creator><pubDate>Thu, 18 May 2017 16:58:13 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Thu, 11 May 2017 14:20:35 GMT]]></title><description><![CDATA[<p dir="auto">hi there,</p>
<p dir="auto">finally i had the time to work / finish my magic mirror.<br />
Just the PIR-Sensor-Plugin doesn’t work… After I updated the MM to 2.1.1 I did a fresh install of the script which worked without an error. Yay!</p>
<p dir="auto">BUT the script is not turning off my monitor… I connected the sensor to GPIO04 / BCM07 and tried to change the SensorPin-Number (from 4 to 7)</p>
<p dir="auto">I put the sensor in a black box so the display should shut down after starting Magic Mirror, right?</p>
]]></description><link>https://forum.magicmirror.builders/post/21477</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21477</guid><dc:creator><![CDATA[thoimi]]></dc:creator><pubDate>Thu, 11 May 2017 14:20:35 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Wed, 10 May 2017 19:03:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a> I’ve been reading up further on this, and i’ve found that version 53 doesn’t actually exist yet, and 51 is currently the latest. Have you any idea how i’d get this to work with this information? thanks.</p>
]]></description><link>https://forum.magicmirror.builders/post/21407</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21407</guid><dc:creator><![CDATA[Oliver_Tooth]]></dc:creator><pubDate>Wed, 10 May 2017 19:03:20 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Mon, 08 May 2017 17:56:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a> Hi! my prebuilt version was slightly different, so i changed that in the target= field, does the abi= number need to be 53, not 50? I’ve tried it as 50 and it’s still throwing the error.</p>
]]></description><link>https://forum.magicmirror.builders/post/21312</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21312</guid><dc:creator><![CDATA[Oliver_Tooth]]></dc:creator><pubDate>Mon, 08 May 2017 17:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Mon, 08 May 2017 07:46:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliver_tooth" aria-label="Profile: Oliver_Tooth">@<bdi>Oliver_Tooth</bdi></a></p>
<p dir="auto">all right …</p>
<p dir="auto">Open a terminal and do this:</p>
<pre><code>cd ~/MagicMirror
npm list | grep electron
</code></pre>
<p dir="auto">You will see something like this:</p>
<pre><code>├─┬ electron-prebuilt@1.4.5
│ ├─┬ electron-download@3.0.1
npm ERR! peer dep missing: grunt@~0.4.0, required by grunt-yamllint@0.2.0
</code></pre>
<p dir="auto">Note the version of electron, in this case it is 1.4.5, if it is different for you please replace the version accordingly.<br />
Afterwards run this:</p>
<pre><code>cd modules/MMM-PIR-Sensor
npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50
</code></pre>
<p dir="auto">Now the module should not throw a version mismatch error any more.</p>
]]></description><link>https://forum.magicmirror.builders/post/21299</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21299</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Mon, 08 May 2017 07:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Sun, 07 May 2017 19:12:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliver_tooth" aria-label="Profile: Oliver_Tooth">@<bdi>Oliver_Tooth</bdi></a><br />
Sure, tomorrow morning</p>
]]></description><link>https://forum.magicmirror.builders/post/21268</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21268</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Sun, 07 May 2017 19:12:05 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Sun, 07 May 2017 19:11:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a> Cheers for this. I’ve had a quick browse but i’m struggling to find anything that works. If your able to post the command whenever you’re able to i’d really appreciate it! thanks.</p>
]]></description><link>https://forum.magicmirror.builders/post/21267</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21267</guid><dc:creator><![CDATA[Oliver_Tooth]]></dc:creator><pubDate>Sun, 07 May 2017 19:11:09 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Sun, 07 May 2017 17:53:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliver_tooth" aria-label="Profile: Oliver_Tooth">@<bdi>Oliver_Tooth</bdi></a><br />
Please search this forum for “version mismatch”. I’m on my smartphone right now, otherwise I would post the command necessary.<br />
You need to rebuild the module with a special command providing the version info related to your system</p>
]]></description><link>https://forum.magicmirror.builders/post/21263</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21263</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Sun, 07 May 2017 17:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Sun, 07 May 2017 17:07:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I’ve been trying to instal this module, but i’m bumping into the issue of needing node module 53, as it was compiled with 48. I’ve been at this all day and i’m really struggling. Can anyone offer any advice? Thanks in advance!</p>
]]></description><link>https://forum.magicmirror.builders/post/21261</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/21261</guid><dc:creator><![CDATA[Oliver_Tooth]]></dc:creator><pubDate>Sun, 07 May 2017 17:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Thu, 23 Mar 2017 12:46:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steff92" aria-label="Profile: STEFF92">@<bdi>STEFF92</bdi></a> I guess you might defined the wrong pin number according on your setup you use gpio23 which is pin 16 in this diagram <a href="https://forum.magicmirror.builders/uploads/files/1485851152518-raspberry-pi-15b.jpg">https://forum.magicmirror.builders/uploads/files/1485851152518-raspberry-pi-15b.jpg</a>, but I never did something with the gpio of the pi</p>
]]></description><link>https://forum.magicmirror.builders/post/18086</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18086</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Thu, 23 Mar 2017 12:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Thu, 23 Mar 2017 12:39:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/strawberry-3.141" aria-label="Profile: strawberry-3.141">@<bdi>strawberry-3.141</bdi></a> Thanks, now the config file and the magic mirror surface are running but there is no response from the sensor. i have moved the potentiometer but the screen doesnt turn off. Do you know any possible mistake i could have made?</p>
]]></description><link>https://forum.magicmirror.builders/post/18084</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18084</guid><dc:creator><![CDATA[STEFF92]]></dc:creator><pubDate>Thu, 23 Mar 2017 12:39:49 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Thu, 23 Mar 2017 11:34:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steff92" aria-label="Profile: STEFF92">@<bdi>STEFF92</bdi></a> none is not a valid js value either use</p>
<pre><code>{
  module: 'MMM-PIR-Sensor',
  config: {
    sensorPIN: 23,
    powerSaving: true,
    relayPIN: false,
    relayOnState: 1
  }
},
</code></pre>
<p dir="auto">or like this, because <code>relayPIN</code> is set to false by default</p>
<pre><code>{
  module: 'MMM-PIR-Sensor',
  config: {
    sensorPIN: 23,
    powerSaving: true,
    relayOnState: 1
  }
},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/18082</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18082</guid><dc:creator><![CDATA[strawberry 3.141]]></dc:creator><pubDate>Thu, 23 Mar 2017 11:34:37 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Wed, 22 Mar 2017 21:55:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnyboy" aria-label="Profile: johnnyboy">@<bdi>johnnyboy</bdi></a> yes i tried it like this :</p>
<pre><code>               {
			module: 'MMM-PIR-Sensor',
			config: {
				sensorPIN: 23,
                                powerSaving: true,
                                relayPIN: none,
                                relayOnState: 1
			}
		},
</code></pre>
<p dir="auto">But it dosent work. Same problem as before.</p>
]]></description><link>https://forum.magicmirror.builders/post/18067</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18067</guid><dc:creator><![CDATA[STEFF92]]></dc:creator><pubDate>Wed, 22 Mar 2017 21:55:39 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Wed, 22 Mar 2017 21:45:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pjkoeleman" aria-label="Profile: pjkoeleman">@<bdi>pjkoeleman</bdi></a> when i want to start the magic mirror it says that i should create a correct config.js file. But the only thing i added in my config.js file (which runs without the following lines) is:</p>
<pre><code>               {
			module: 'MMM-PIR-Sensor',
			config: {
				sensorPIN: 23,
                                powerSaving: true,
                                relayPIN: none,
                                relayOnState: 1,
			}
		},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/18065</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18065</guid><dc:creator><![CDATA[STEFF92]]></dc:creator><pubDate>Wed, 22 Mar 2017 21:45:40 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Wed, 22 Mar 2017 21:37:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnnyboy" aria-label="Profile: johnnyboy">@<bdi>johnnyboy</bdi></a> But it doesnt matter as long as i use the gpio that belongs to this pin or am i wrong?</p>
]]></description><link>https://forum.magicmirror.builders/post/18063</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18063</guid><dc:creator><![CDATA[STEFF92]]></dc:creator><pubDate>Wed, 22 Mar 2017 21:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Wed, 22 Mar 2017 20:55:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/steff92" aria-label="Profile: STEFF92">@<bdi>STEFF92</bdi></a><br />
What is not working;</p>
<ul>
<li>Do you still have the problem with the config.sys, when post your config.sys here.</li>
<li>Is the PIR not switching off you screen?</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/18054</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18054</guid><dc:creator><![CDATA[pjkoeleman]]></dc:creator><pubDate>Wed, 22 Mar 2017 20:55:24 GMT</pubDate></item><item><title><![CDATA[Reply to [MMM-PIR-Sensor] Install failing on Wed, 22 Mar 2017 18:05:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pjkoeleman" aria-label="Profile: pjkoeleman">@<bdi>pjkoeleman</bdi></a> Doesnt work :(</p>
]]></description><link>https://forum.magicmirror.builders/post/18045</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/18045</guid><dc:creator><![CDATA[STEFF92]]></dc:creator><pubDate>Wed, 22 Mar 2017 18:05:20 GMT</pubDate></item></channel></rss>