MMM-PIR-Sensor icon indicating copy to clipboard operation
MMM-PIR-Sensor copied to clipboard

MagicMirror doesn't start with this module

Open delema98 opened this issue 6 years ago • 3 comments

Hi, i'm totally new to the MagicMirror. When I added this module, there's always this error:

WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'onoff'.

I installed wiring-pi in the MagicMirror Folder with "npm install wiring-pi".

Has anybody an idea?

thanks

delema98 avatar May 03 '18 20:05 delema98

i just installed MagicMirror from this guide: https://howchoo.com/g/ntcymzbimjv/how-to-install-magic-mirror-on-your-raspberry-pi

everything is working BUT this pir motion module. if i remove the module from MagicMirror/config/config.js, i am back to normal again. if i add the MMM-PIR-Sensor, i get mouse and black screen. someone pls help us.

tung256 avatar May 18 '18 13:05 tung256

What does the output of "pm2 log MagicMirror" look like?

flyingchipmunk avatar Jun 20 '18 20:06 flyingchipmunk

I had the same problem. I navigated to the MMM-PIR-Sensor module folder ( cd ./MagicMirror/modules/MMM-PIR-Sensor) and executed "npm install". After that, the MagicMirror started working again. But watch out, the "powerSaving" function caused my Mirror to become unresponsive once electron started. Just be aware of this and if you're not using the PIR-Sensor right now just remember that.

Bonathan avatar Aug 04 '20 09:08 Bonathan