was this solved?
i just installed everything from this tutorial: https://howchoo.com/g/ntcymzbimjv/how-to-install-magic-mirror-on-your-raspberry-pi
everything works EXCEPT this pir module. once i remove the module, off course everything is back to “normal”
but if i add the module back in with
{ module: 'MMM-PIR-Sensor', config: { sensorPIN: 4, powerSavingDelay: 25, } },i get nothing but a mouse cursor and a totally black screen. it doesnt turn off or on via the PIR either.
never mind…
i got it now. i reinstalled everything again.
cd ~/MagicMirror/modules
git clone https://github.com/paviro/MMM-PIR-Sensor.git
cd MMM-PIR-Sensor
npm install
sudo usermod -a -G gpio pi
sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt
to allow turning on/off the hdmi output.
sudo reboot
sudo nano ~/MagicMirror/config/config.js
{ module: 'MMM-PIR-Sensor', config: { sensorPIN: "4", powerSavingDelay: "25", } },