Read the statement by Michael Teeuw here.
Issue with PIR Sensor after upgrade to 2.19
-
@OliWer ok, 2 more steps.
ok, we are executing electron rebuild from the module folderm, it can’t find the important info about electron in the base folder… SO
cd ~/MagicMirror npm install electron-rebuild --save
then cd to the module folder again and then
~/MagicMirror/node_modules/.bin/electron-rebuild
-
@karsten13 yeh, he just said he wasn’t gonna fix his tool…
-
@sdetweil AFAIS someone got it running https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more/32?page=4# but don’t know if it works
-
@karsten13 magicmirror-rebuild does not work for this module…and won’t be fixed
(as the module is ‘archived’) -
yes, MMM-PIR-Sensor is deprecated so its better to use another module which is still maintained.
I got MMM-PIR-Sensor installed with this workaround:
Change dependencies section in
package.json
to"dependencies": { "onoff": "latest", "magicmirror-rebuild": "latest" }
Run
npm install
which will fail.Edit
node_modules/epoll/binding.gyp
and insert the following in line 2 (after the first{
):"variables": { "openssl_fips" : "0" },
Run
npm install
again. -
Thanks for your help =)
I was not able to get MMM-PIR-Sensor running, even with your steps listed above. As it is deprecated I did what @karsten13 suggested and used another PIR (MMM-PIR). It had the same issue first, but using magicmirror-rebuild from https://forum.magicmirror.builders/topic/16074/electron-rebuild-and-magicmirror-v2-18-and-more?page=1 I was able to got the PIR working again.
So again: Thanks for trying to help and your suggestions!