paviro / MMM-PIR-Sensor

This module can monitor a PIR motion sensor and put your mirror to sleep.
216 stars 94 forks source link

MagicMirror doesn't start with this module #44

Open delema98 opened 6 years ago

delema98 commented 6 years ago

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

tung256 commented 6 years ago

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.

flyingchipmunk commented 6 years ago

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

Bonathan commented 3 years ago

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.