<?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[Black screen with MMM Pir sensor after update]]></title><description><![CDATA[<p dir="auto">With the Pir sensor module, I have a black screen after starting. Have tried the following so far:<br />
cd ~ / MagicMirror<br />
npm install electron rebuild<br />
node_modules / .bin / electron-rebuild</p>
<p dir="auto">And then:<br />
npm rebuild or npm install<br />
for the pir sensor</p>
<p dir="auto">The mistake remains anyway, someone an idea?</p>
<p dir="auto">Greetings Jörg</p>
]]></description><link>https://forum.magicmirror.builders/topic/12471/black-screen-with-mmm-pir-sensor-after-update</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 18:07:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12471.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Apr 2020 08:27:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Sun, 12 Apr 2020 04:04:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uatuba" aria-label="Profile: uatuba">@<bdi>uatuba</bdi></a> this is a tricky module, very sensitive to the runtime environment… breaks every update…</p>
<p dir="auto">other have had success  with doing a fresh git clone and npm install.<br />
I am not the module author, so I don’t know exactly whats going on</p>
]]></description><link>https://forum.magicmirror.builders/post/72510</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72510</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 12 Apr 2020 04:04:41 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Sun, 12 Apr 2020 03:40:03 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> This does not work for me. I run npm install, and I get:</p>
<pre><code>&gt; Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall /home/pi/MagicMirror/modules/MMM-PIR-Sensor
&gt; electron-rebuild -e ../../node_modules/electron

✖ Rebuild Failed

An unhandled error occurred inside electron-rebuild
make: Entering directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'
  CXX(target) Release/obj.target/epoll/src/epoll.o
../src/epoll.cc: In static member function ‘static void Epoll::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/epoll.cc:163:39: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
   constructor.Reset(ctor-&gt;GetFunction());
                                       ^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal&lt;v8::Function&gt; v8::FunctionTemplate::GetFunction(v8::Local&lt;v8::Context&gt;)
   V8_WARN_UNUSED_RESULT MaybeLocal&lt;Function&gt; GetFunction(
                                              ^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
../src/epoll.cc:165:23: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
     ctor-&gt;GetFunction());
                       ^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal&lt;v8::Function&gt; v8::FunctionTemplate::GetFunction(v8::Local&lt;v8::Context&gt;)
   V8_WARN_UNUSED_RESULT MaybeLocal&lt;Function&gt; GetFunction(
                                              ^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
epoll.target.mk:109: recipe for target 'Release/obj.target/epoll/src/epoll.o' failed
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'
make: *** [Release/obj.target/epoll/src/epoll.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.7" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
gyp ERR! node -v v10.18.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1

Error: make: Entering directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'
  CXX(target) Release/obj.target/epoll/src/epoll.o
../src/epoll.cc: In static member function ‘static void Epoll::Init(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’:
../src/epoll.cc:163:39: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
   constructor.Reset(ctor-&gt;GetFunction());
                                       ^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal&lt;v8::Function&gt; v8::FunctionTemplate::GetFunction(v8::Local&lt;v8::Context&gt;)
   V8_WARN_UNUSED_RESULT MaybeLocal&lt;Function&gt; GetFunction(
                                              ^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
../src/epoll.cc:165:23: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
     ctor-&gt;GetFunction());
                       ^
In file included from ../src/epoll.cc:11:0:
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note: candidate: v8::MaybeLocal&lt;v8::Function&gt; v8::FunctionTemplate::GetFunction(v8::Local&lt;v8::Context&gt;)
   V8_WARN_UNUSED_RESULT MaybeLocal&lt;Function&gt; GetFunction(
                                              ^~~~~~~~~~~
/home/pi/.electron-gyp/6.1.7/include/node/v8.h:5891:46: note:   candidate expects 1 argument, 0 provided
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-cast-function-type’
epoll.target.mk:109: recipe for target 'Release/obj.target/epoll/src/epoll.o' failed
make: Leaving directory '/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll/build'
make: *** [Release/obj.target/epoll/src/epoll.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/bin/node" "/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/.bin/node-gyp" "rebuild" "--target=6.1.7" "--arch=arm" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/epoll
gyp ERR! node -v v10.18.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok 

Failed with exit code: 1
    at SafeSubscriber._error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/spawn-rx/lib/src/index.js:267:84)
    at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
    at SafeSubscriber.error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:156:26)
    at Subscriber._error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
    at Subscriber.error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
    at MapSubscriber.Subscriber._error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:92:26)
    at MapSubscriber.Subscriber.error (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:72:18)
    at SafeSubscriber._next (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/spawn-rx/lib/src/index.js:242:65)
    at SafeSubscriber.__tryOrUnsub (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:205:16)
    at SafeSubscriber.next (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/rxjs/internal/Subscriber.js:143:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: `electron-rebuild -e ../../node_modules/electron`
npm ERR! Exit status 255
npm ERR! 
npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-04-12T03_38_34_229Z-debug.log 

</code></pre>
<p dir="auto">Obviously rebuild does the same. I’ve deleted the module and reinstalled it. Any ideas?</p>
]]></description><link>https://forum.magicmirror.builders/post/72509</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72509</guid><dc:creator><![CDATA[uatuba]]></dc:creator><pubDate>Sun, 12 Apr 2020 03:40:03 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Wed, 08 Apr 2020 04:08:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rabbit83ka" aria-label="Profile: rabbit83ka">@<bdi>rabbit83ka</bdi></a> Thank’s that worked for me too.</p>
]]></description><link>https://forum.magicmirror.builders/post/72174</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72174</guid><dc:creator><![CDATA[satsatt]]></dc:creator><pubDate>Wed, 08 Apr 2020 04:08:37 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Sat, 04 Apr 2020 18:03:54 GMT]]></title><description><![CDATA[<p dir="auto">Hey,</p>
<p dir="auto">had the same problem with my pir sensor module and I could fix it with the help from you guys BUT now i loaded module but the monitor doesn’t shut down. Commands over ssh works fine. I did a fresh install only for the pir sensor module to get it working.</p>
]]></description><link>https://forum.magicmirror.builders/post/71924</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71924</guid><dc:creator><![CDATA[Snake16547]]></dc:creator><pubDate>Sat, 04 Apr 2020 18:03:54 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 20:07:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rabbit83ka" aria-label="Profile: rabbit83ka">@<bdi>rabbit83ka</bdi></a> cool. thx for feedback</p>
<p dir="auto">so, npm install after clone works…</p>
<p dir="auto">must be the package-lock.json file (it recorded what it did last time)</p>
]]></description><link>https://forum.magicmirror.builders/post/71709</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71709</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 02 Apr 2020 20:07:14 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 20:04:03 GMT]]></title><description><![CDATA[<p dir="auto"><s><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Hi Sam, I deleted the package-lock.json, after that npm install still fails with the same error message. npm install electron rebuild also doesn’t help…</s></p>
<p dir="auto">I wiped the module folder and reinstalled it from github, now it works.</p>
]]></description><link>https://forum.magicmirror.builders/post/71705</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71705</guid><dc:creator><![CDATA[rabbit83ka]]></dc:creator><pubDate>Thu, 02 Apr 2020 20:04:03 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 15:21:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joefranz" aria-label="Profile: JoeFranz">@<bdi>JoeFranz</bdi></a> thanks</p>
]]></description><link>https://forum.magicmirror.builders/post/71689</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71689</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 02 Apr 2020 15:21:15 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 15:20:54 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> yes</p>
]]></description><link>https://forum.magicmirror.builders/post/71688</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71688</guid><dc:creator><![CDATA[JoeFranz]]></dc:creator><pubDate>Thu, 02 Apr 2020 15:20:54 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 14:34:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joefranz" aria-label="Profile: JoeFranz">@<bdi>JoeFranz</bdi></a> did u have to electron-rebuild?</p>
]]></description><link>https://forum.magicmirror.builders/post/71681</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71681</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 02 Apr 2020 14:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 14:31:32 GMT]]></title><description><![CDATA[<p dir="auto">It works! Thank you :grinning_face:</p>
]]></description><link>https://forum.magicmirror.builders/post/71680</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71680</guid><dc:creator><![CDATA[JoeFranz]]></dc:creator><pubDate>Thu, 02 Apr 2020 14:31:32 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 11:51:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rabbit83ka" aria-label="Profile: rabbit83ka">@<bdi>rabbit83ka</bdi></a> said in <a href="/post/71647">Black screen with MMM Pir sensor after update</a>:</p>
<blockquote>
<p dir="auto">Updating “node-abi” might help solve this issue</p>
</blockquote>
<p dir="auto">delete package-lock.json in the MMM-Pir-Sensor folder,<br />
run npm install there<br />
then maybe also have to do electron-rebuild again</p>
]]></description><link>https://forum.magicmirror.builders/post/71660</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71660</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 02 Apr 2020 11:51:30 GMT</pubDate></item><item><title><![CDATA[Reply to Black screen with MMM Pir sensor after update on Thu, 02 Apr 2020 08:33:05 GMT]]></title><description><![CDATA[<p dir="auto">I have the same error. Atteached the console output. Logfile can be found <a href="https://pastebin.com/2Ts0qVTr" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<pre><code>An unhandled error occurred inside electron-rebuild
Could not detect abi for version 6.1.7 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Error: Could not detect abi for version 6.1.7 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/node-abi/index.js:30:9)
    at new Rebuilder (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:122:28)
    at rebuildWithOptions (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:393:23)
    at Object.doRebuild [as rebuild] (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/rebuild.js:400:16)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:115:33)
    at Generator.next (&lt;anonymous&gt;)
    at fulfilled (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/electron-rebuild/lib/src/cli.js:5:58)
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall: `electron-rebuild -e ../../node_modules/electron`
npm ERR! Exit status 255
npm ERR! 
npm ERR! Failed at the Magic-Mirror-Module-PIR-Sensor@1.1.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-04-02T08_25_32_202Z-debug.log
processing complete for module MMM-PIR-Sensor

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/71647</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/71647</guid><dc:creator><![CDATA[rabbit83ka]]></dc:creator><pubDate>Thu, 02 Apr 2020 08:33:05 GMT</pubDate></item></channel></rss>