<?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 - White Screen]]></title><description><![CDATA[<p dir="auto">Hi Guys,</p>
<p dir="auto">first kudos to all of you. The Magic Mirror is great. However, I have a problem with the module of the PIR sensor. I installed the mirror with the standard modules and it worked right away.</p>
<p dir="auto">Now I have integrated the PIR sensor module according to the instructions. When I start the mirror,I  see only a completely white screen.</p>
<p dir="auto">What am I doing wrong or what can be wrong.</p>
<p dir="auto">If I do not write the module in the config.js, the mirror works again without problems.</p>
<p dir="auto">Thanks and best regards<br />
HanSolo</p>
]]></description><link>https://forum.magicmirror.builders/topic/569/mmm-pir-sensor-white-screen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 19:41:39 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/569.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Sep 2016 04:40:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Fri, 03 Mar 2017 15:10:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/medo" aria-label="Profile: Medo">@<bdi>Medo</bdi></a> Solved it for me, thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/16377</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/16377</guid><dc:creator><![CDATA[Coda]]></dc:creator><pubDate>Fri, 03 Mar 2017 15:10:02 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 22 Feb 2017 07:55:10 GMT]]></title><description><![CDATA[<p dir="auto">I’m glad to hear that! :-D</p>
]]></description><link>https://forum.magicmirror.builders/post/15355</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15355</guid><dc:creator><![CDATA[Bangee]]></dc:creator><pubDate>Wed, 22 Feb 2017 07:55:10 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Tue, 21 Feb 2017 17:15:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bangee" aria-label="Profile: Bangee">@<bdi>Bangee</bdi></a></p>
<p dir="auto">Thanx a Million, Bro’ !!</p>
<p dir="auto">The step-by-step did it for me!</p>
<p dir="auto">I couldn’t understand that everybody’s was working so cool and mine dis diddly-squat?!?</p>
<p dir="auto">So removing the module and reinstalling was the answer. No idea what went wrong first time round; Just grateful it is now working as expected.</p>
<p dir="auto">Thanx for your great post!!</p>
]]></description><link>https://forum.magicmirror.builders/post/15270</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/15270</guid><dc:creator><![CDATA[djbosman]]></dc:creator><pubDate>Tue, 21 Feb 2017 17:15:54 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 25 Jan 2017 12:39:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> Try changing line 24 in <code>package.json</code> as shown <a href="https://github.com/paviro/MMM-PIR-Sensor/pull/18/files" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> and reinstall with <code>npm install</code> in the module folder. Does that help?</p>
<p dir="auto">Also: Please continue discussion about install issues <a href="https://forum.magicmirror.builders/topic/1351/mmm-pir-sensor-install-failing">here</a>. There is already info on how it can be solved. For other problems with the PIR-Sensor Module please open a new thread in the <a href="https://forum.magicmirror.builders/category/29/troubleshooting">modeul troubleshooting section</a>.</p>
]]></description><link>https://forum.magicmirror.builders/post/12420</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12420</guid><dc:creator><![CDATA[Jopyth]]></dc:creator><pubDate>Wed, 25 Jan 2017 12:39:05 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 25 Jan 2017 07:54:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> I think you definitely need to rebuild electron. I can’t see what else is causing the issue. Try with different electron version numbers. Otherwise I’m all out of ideas. Sorry!</p>
]]></description><link>https://forum.magicmirror.builders/post/12405</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12405</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Wed, 25 Jan 2017 07:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 25 Jan 2017 07:04:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> i also thought i have a higher electron-version. but i tried</p>
<p dir="auto"><code>npm rebuild --runtime=electron --target=1.4.3 --disturl=https://atom.io/download/atom-shell --abi=50</code></p>
<p dir="auto">and it worked for me.</p>
]]></description><link>https://forum.magicmirror.builders/post/12402</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12402</guid><dc:creator><![CDATA[ostfilinchen]]></dc:creator><pubDate>Wed, 25 Jan 2017 07:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 25 Jan 2017 05:00:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bhepler" aria-label="Profile: bhepler">@<bdi>bhepler</bdi></a></p>
<p dir="auto">Hey there, thank you for the suggestion. updated both nodejs and npm to 7.4.0 and 4.0.5.</p>
<p dir="auto">I think removed the MMM-PIR-Sensor folder, grabbed it again from github, and then tried to run npm install on it, and the install failed again.</p>
<blockquote>
<p dir="auto">An unhandled error occurred inside electron-rebuild<br />
Unable to find electron-prebuilt’s version number, either install it or specify an explicit version<br />
Error: Unable to find electron-prebuilt’s version number, either install it or specify an explicit version<br />
at _callee$ (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/cli.js:74:17)<br />
at tryCatch (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:63:40)<br />
at Generator.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:337:22)<br />
at Generator.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:96:21)<br />
at Generator.tryCatcher (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bluebird/js/release/util.js:16:23)<br />
at PromiseSpawn._promiseFulfilled (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bluebird/js/release/generators.js:97:49)<br />
at /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bluebird/js/release/generators.js:201:15<br />
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/cli.js:197:4)<br />
at Module._compile (module.js:571:32)<br />
at Object.Module._extensions…js (module.js:580:10)<br />
at Module.load (module.js:488:32)<br />
at tryModuleLoad (module.js:447:12)<br />
at Function.Module._load (module.js:439:3)<br />
at Module.runMain (module.js:605:10)<br />
at run (bootstrap_node.js:420:7)<br />
at startup (bootstrap_node.js:139:9)</p>
</blockquote>
<p dir="auto">I tried running the rebuild with my electron version number (1.5.7) but still no luck. Any thoughts on what else I could try? I am drawing a blank here, unfortunately.</p>
]]></description><link>https://forum.magicmirror.builders/post/12398</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12398</guid><dc:creator><![CDATA[Them Russians]]></dc:creator><pubDate>Wed, 25 Jan 2017 05:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Thu, 12 Jan 2017 18:10:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a></p>
<blockquote>
<p dir="auto">When i ran the “npm install” in the MM directory, i got this error:<br />
npm warn grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed</p>
</blockquote>
<p dir="auto">Don’t worry about this one. The log file format is [process] [debug level] [error message]. In this case, “warn” is the level of severity of the message. If it said “err” then it would require your attention.</p>
<p dir="auto">I suspect your nodejs version is out of date. Try running this command: <code>nodejs -v</code> and then <code>npm -v</code>. It should spit out the version of node and NPM you’re using. Personally, I’m on v7.4.0 and v4.0.5 respectively. If you’re running a few versions behind, you may wish to run these commands from your home folder:</p>
<pre><code class="language-bash">curl -sL https://deb.nodesource.com/setup_7x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g npm
sudo npm install -g npm
</code></pre>
<p dir="auto">And yes, you may have to run that last command twice. For some reason, NPM sometimes requires a double-tap to update itself. Thank you, StackExchange.</p>
<p dir="auto">Run <code>nodejs -v</code> again and verify that your node version is up to snuff.</p>
]]></description><link>https://forum.magicmirror.builders/post/10940</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10940</guid><dc:creator><![CDATA[bhepler]]></dc:creator><pubDate>Thu, 12 Jan 2017 18:10:01 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Thu, 12 Jan 2017 03:07:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bungee09" aria-label="Profile: bungee09">@<bdi>bungee09</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/yawns" aria-label="Profile: yawns">@<bdi>yawns</bdi></a> When i ran the “npm install” in the MM directory, i got this error:</p>
<blockquote>
<p dir="auto">npm warn grunt-yamllint@0.2.0 requires a peer of grunt@~0.4.0 but none was installed</p>
</blockquote>
<p dir="auto">I googled the error and it looks like it shouldnt be an issue, but when i tried doing an install in the PIR directory (it failed), so did the rebuild with the updated electron version number (mine was 1.5.6).</p>
<p dir="auto">I got the same error when trying to run the rebuild</p>
<blockquote>
<p dir="auto">Failed at the epoll@0.1.20 install script ‘node-gyp rebuild’<br />
Make sure you have the latest version of node.js and npm installed.</p>
</blockquote>
<p dir="auto">Sorry for all the posts on here, but do you have any thoughts? I update node.js and npm to the most recent versions, so i dont think that what is broken for me :(</p>
<p dir="auto">When i try to run the mirror, here is the error i get before the white screen:</p>
<blockquote>
<p dir="auto">magicmirror@2.1.0 start /home/pi/MagicMirror<br />
electron js/electron.js “dev”<br />
Starting MagicMirror: v2.1.0<br />
Loading config …<br />
Loading module helpers …<br />
No helper found for module: alert.<br />
Initializing new module helper …<br />
No helper found for module: clock.<br />
No helper found for module: compliments.<br />
No helper found for module: currentweather.<br />
WARNING! Could not load config file. Starting with default configuration. Error found: Error: Could not locate the bindings file. Tried:<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/default/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/compiled/6.5.0/linux/arm/epoll.node<br />
Loading module helpers …<br />
No helper found for module: alert.<br />
Initializing new module helper …<br />
No helper found for module: clock.<br />
No helper found for module: compliments.<br />
No helper found for module: currentweather.<br />
App threw an error during load<br />
Error: Could not locate the bindings file. Tried:<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/default/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/compiled/6.5.0/linux/arm/epoll.node<br />
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:88:9)<br />
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:1:116)<br />
at Module._compile (module.js:556:32)<br />
at Object.Module._extensions…js (module.js:565:10)<br />
at Module.load (module.js:473:32)<br />
at tryModuleLoad (module.js:432:12)<br />
at Function.Module._load (module.js:424:3)<br />
at Module.require (module.js:483:17)<br />
at require (internal/module.js:20:19)<br />
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/onoff/onoff.js:4:11)<br />
Whoops! There was an uncaught exception…<br />
{ Error: Could not locate the bindings file. Tried:<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Debug/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Release/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/default/epoll.node<br />
→ /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/compiled/6.5.0/linux/arm/epoll.node<br />
at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:88:9)<br />
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/epoll.js:1:116)<br />
at Module._compile (module.js:556:32)<br />
at Object.Module._extensions…js (module.js:565:10)<br />
at Module.load (module.js:473:32)<br />
at tryModuleLoad (module.js:432:12)<br />
at Function.Module._load (module.js:424:3)<br />
at Module.require (module.js:483:17)<br />
at require (internal/module.js:20:19)<br />
at Object. (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/onoff/onoff.js:4:11)<br />
tries:<br />
[ ‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Debug/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/Release/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Debug/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Debug/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/out/Release/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/Release/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build/default/epoll.node’,<br />
‘/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/compiled/6.5.0/linux/arm/epoll.node’ ] }<br />
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?<br />
If you think this really is an issue, please open an issue on GitHub: <a href="https://github.com/MichMich/MagicMirror/issues" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/issues</a><br />
Launching application.</p>
</blockquote>
]]></description><link>https://forum.magicmirror.builders/post/10900</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10900</guid><dc:creator><![CDATA[Them Russians]]></dc:creator><pubDate>Thu, 12 Jan 2017 03:07:12 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 18:19:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> In the main directory</p>
<pre><code> cd ~/MagicMirror/
 npm install &amp;&amp; npm start
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/10880</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10880</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Wed, 11 Jan 2017 18:19:02 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 18:06:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bungee09" aria-label="Profile: bungee09">@<bdi>bungee09</bdi></a> The main MagicMirror directory, or the module directory within MagicMirror?</p>
]]></description><link>https://forum.magicmirror.builders/post/10879</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10879</guid><dc:creator><![CDATA[Them Russians]]></dc:creator><pubDate>Wed, 11 Jan 2017 18:06:47 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 16:47:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a><br />
npm install in the main MM directory. Then npm install in the PIR sensor directory to install dependencies. If it fails then npm rebuild as above using the correct electron version number and abi.</p>
]]></description><link>https://forum.magicmirror.builders/post/10878</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10878</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Wed, 11 Jan 2017 16:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 15:52:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> said in <a href="/post/10875">MMM-PIR-Sensor - White Screen</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bungee09" aria-label="Profile: bungee09">@<bdi>bungee09</bdi></a> I did not do that install in the Magic Mirror folder. I ran the “curl” command from the github site for the MagicMirror, set up config.js, and then immediately got the PIR module.</p>
<p dir="auto">Do you think i could run the npm install on the MagicMirror folder now, and try again with the rebuild, or would i have to clear my SD card and reinstall everything and start from scratch?</p>
</blockquote>
<p dir="auto">Yes, running npm install now will work and it is required.</p>
]]></description><link>https://forum.magicmirror.builders/post/10876</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10876</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Wed, 11 Jan 2017 15:52:37 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 14:52:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bungee09" aria-label="Profile: bungee09">@<bdi>bungee09</bdi></a> I did not do that install in the Magic Mirror folder. I ran the “curl” command from the github site for the MagicMirror, set up config.js, and then immediately got the PIR module.</p>
<p dir="auto">Do you think i could run the npm install on the MagicMirror folder now, and try again with the rebuild, or would i have to clear my SD card and reinstall everything and start from scratch?</p>
]]></description><link>https://forum.magicmirror.builders/post/10875</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10875</guid><dc:creator><![CDATA[Them Russians]]></dc:creator><pubDate>Wed, 11 Jan 2017 14:52:25 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 10:57:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a><br />
BTW? Did you install node in the main MagicMirror directory first before installing dependencies in the MMM-PIR-Sensor directory?</p>
<pre><code> cd ~/MagicMirror
 npm install
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/10870</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10870</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Wed, 11 Jan 2017 10:57:53 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 10:53:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> The rebuild was successful for me using exactly the method I described above. I don’t have my pi with me currently but I only installed node for the first time last week so I definitely don’t have an old version. I can check the exact version number when I get home for you.</p>
]]></description><link>https://forum.magicmirror.builders/post/10869</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10869</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Wed, 11 Jan 2017 10:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Wed, 11 Jan 2017 05:35:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bungee09" aria-label="Profile: bungee09">@<bdi>bungee09</bdi></a> Did your rebuild work successfuly? I got an error saying that i needed to have the latest versions of node.js and npm installed.</p>
<p dir="auto">I believe I have node version 6.9.4. Is that what you were using?</p>
<p dir="auto">After all this, i thought maybe i jacked up something, so i cleared out and reformatted the micro SD card. I reinstalled NOOBS and then got the Magic Mirror. Created the config.js file and ran the mirror without issue. Immediately after that, i cloned the PIR module and tried to run an “npm install” which failed, and so did the rebuild :(</p>
]]></description><link>https://forum.magicmirror.builders/post/10866</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10866</guid><dc:creator><![CDATA[Them Russians]]></dc:creator><pubDate>Wed, 11 Jan 2017 05:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Tue, 10 Jan 2017 16:17:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> - I feel your frustration! I spent a good few hours debugging this after installing and testing my PIR sensor. This is what eventually worked for me:</p>
<p dir="auto">I ran all the commands in the MMM-PIR-Sensor Directory.</p>
<pre><code> cd ~/MagicMirror/modules/MMM-PIR-Sensor
 npm list
</code></pre>
<p dir="auto">I found the electron version number to be “1.4.3” so updated target to 1.4.3. Also, updated abi to 50 in the following command as this was the expected value from the error message in pm2 logs.</p>
<pre><code> npm rebuild --runtime=electron --target=1.4.3 --disturl=https://atom.io/download/atom-shell --abi=50
</code></pre>
<p dir="auto">As soon as the rebuild was complete…</p>
<pre><code> cd
 pm2 restart mm
</code></pre>
<p dir="auto">… to restart MagicMirror in pm2.</p>
<p dir="auto">I also found this <a href="https://github.com/electron-userland/electron-builder/issues/453" target="_blank" rel="noopener noreferrer nofollow ugc">link</a> which described the same fix.</p>
<p dir="auto">Good luck!</p>
]]></description><link>https://forum.magicmirror.builders/post/10816</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10816</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Tue, 10 Jan 2017 16:17:16 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Thu, 12 Jan 2017 22:22:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bungee09" aria-label="Profile: bungee09">@<bdi>bungee09</bdi></a> Did you get the <code>npm install</code> to work on the “MMM-PIR-Sensor” directory? Or did you just run the <code>npm list</code> to get the version of electron and then run <code>npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=50</code> with the right version?</p>
<p dir="auto">Which directory were you in when you ran the rebuild?</p>
<p dir="auto">Sorry - i’m at work now, so dont have the Pi with me, but have been having issues with this for a week now, so i’m really hoping that this works for me :)</p>
]]></description><link>https://forum.magicmirror.builders/post/10813</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10813</guid><dc:creator><![CDATA[Them Russians]]></dc:creator><pubDate>Thu, 12 Jan 2017 22:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Tue, 10 Jan 2017 15:57:32 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><br />
Works a treat. Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/10812</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10812</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Tue, 10 Jan 2017 15:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Tue, 10 Jan 2017 05:09:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bungee09" aria-label="Profile: bungee09">@<bdi>bungee09</bdi></a><br />
<code>npm list</code> and look for electron to find the right version. Then rerun the rebuild command with replaced version number</p>
]]></description><link>https://forum.magicmirror.builders/post/10784</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10784</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Tue, 10 Jan 2017 05:09:45 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Mon, 09 Jan 2017 21:11:43 GMT]]></title><description><![CDATA[<p dir="auto">Similar problem to <a class="plugin-mentions-user plugin-mentions-a" href="/user/them-russians" aria-label="Profile: Them-Russians">@<bdi>Them-Russians</bdi></a> when running npm install. Then after starting MM using pm2 I get a white screen. Checking the pm2 error logs I see the following error with a module version mismatch: “Expected 50, got 49”.</p>
<pre><code> 0|mm       | App threw an error during load
 0|mm       | Error: Module version mismatch. Expected 50, got 49.
 0|mm       |     at Error (native)
 0|mm       |     at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
 0|mm       |     at Object.Module._extensions..node (module.js:583:18)
 0|mm       |     at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
 0|mm       |     at Module.load (module.js:473:32)
 0|mm       |     at tryModuleLoad (module.js:432:12)
 0|mm       |     at Function.Module._load (module.js:424:3)
 0|mm       |     at Module.require (module.js:483:17)
 0|mm       |     at require (internal/module.js:20:19)
 0|mm       |     at bindings (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/bindings/bindings.js:76:44)
</code></pre>
<p dir="auto">Tried <a class="plugin-mentions-user plugin-mentions-a" href="/user/james" aria-label="Profile: James">@<bdi>James</bdi></a> solution using npm rebuild but changed the version parameter to 50. Still no luck.</p>
<pre><code>  npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=50
</code></pre>
<p dir="auto">Any help would be much appreciated before I reformat my sd card and start from scratch.</p>
]]></description><link>https://forum.magicmirror.builders/post/10755</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10755</guid><dc:creator><![CDATA[bungee09]]></dc:creator><pubDate>Mon, 09 Jan 2017 21:11:43 GMT</pubDate></item><item><title><![CDATA[Reply to MMM-PIR-Sensor - White Screen on Thu, 12 Jan 2017 22:22:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zichao92" aria-label="Profile: zichao92">@<bdi>zichao92</bdi></a></p>
<p dir="auto">Random question for you:</p>
<p dir="auto">when i try to do an “npm install” in the “MMM-PIR-Sensor” folder, i get the following error:</p>
<pre><code>Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall /home/pi/MagicMirror/modules/MMM-PIR-Sensor
electron-rebuild -e …/…/node_modules/electron-prebuilt
An unhandled error occurred inside electron-rebuild
Unable to find electron-prebuilt’s version number, either install it or specify an explicit version
Error: Unable to find electron-prebuilt’s version number, either install it or specify an explicit version
at _callee$ (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/cli.js:74:17)
at tryCatch (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/regenerator-runtime/runtime.js:63:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/regenerator-runtime/runtime.js:337:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/regenerator-runtime/runtime.js:96:21)
at GeneratorFunctionPrototype.tryCatcher (/home/pi/node_modules/bluebird/js/release/util.js:16:23)
at PromiseSpawn._promiseFulfilled (/home/pi/node_modules/bluebird/js/release/generators.js:97:49)
at /home/pi/node_modules/bluebird/js/release/generators.js:201:15
at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/cli.js:197:4)
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)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
npm ERR! Linux 4.4.38-v7+
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” "install"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
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 255
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.logv
</code></pre>
<p dir="auto">Any idea what could cause this? I suspect my white screen is because the install failed.</p>
<p dir="auto">I have tried removing the “MMM-PIR-Folder” from my directory and running the clone command from github again to start fresh, but still face this issue.</p>
<hr />
<p dir="auto"><strong>Note from admin:</strong> Please use <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code" target="_blank" rel="noopener noreferrer nofollow ugc">Markdown</a> on code snippets for easier reading!</p>
]]></description><link>https://forum.magicmirror.builders/post/10722</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/10722</guid><dc:creator><![CDATA[Them Russians]]></dc:creator><pubDate>Thu, 12 Jan 2017 22:22:23 GMT</pubDate></item></channel></rss>