Read the statement by Michael Teeuw here.
Issue with PIR Sensor after upgrade to 2.19
-
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!