Hi AxLED,
may I ask you for help please?
I did connect a PIR to my Rpi to PIN 40 / BCM 21
git clone https://github.com/mboskamp/MMM-PIR.git
cd MMM-PIR
npm install
Added the the config in the verry first line within the modules chapter
{
module: 'MMM-PIR',
position: 'top_center',
config: {
sensorPin: 21,
delay: 10000,
turnOffDisplay: true,
showCountdown: true,
// callbackScripts: ["callback.py"
}
},
Nothing happen. No countdown starts. No Disply turn off.
Wiring was inslalled already:
pi@MagicMirror:~ $ gpio -v
gpio version: 2.50
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty
Raspberry Pi Details:
Type: Pi 3, Revision: 02, Memory: 1024MB, Maker: Sony
* Device tree is enabled.
*--> Raspberry Pi 3 Model B Rev 1.2
* This Raspberry Pi supports user-level GPIO access.
And I tried this command an a reboot:
sudo usermod -a -G gpio pi
Have you got any hints for me please?