EXT-Pir is a plugins for control your screen with a PIR Sensor.
This module an Extented plugin of
EXT-Screen
It can't work by itself without this plugin
This module can display any errors with
EXT-Alert
plugin
Clone the module into your MagicMirror module folder and execute npm intall
in the modules directory.
cd ~/MagicMirror/modules
git clone https://github.com/bugsounet/EXT-Pir
cd EXT-Pir
npm install
insert your configuration in the config.js file of MagicMirror.
{
module: 'EXT-Pir',
config: {
debug: false,
gpio: 21,
mode: 0
}
},
Option Description Type Default debug enable or not debug mode Boolean false gpio BCM-number of the sensor pin Number 21 mode Detection mode (see bellow) Number 0
pir_mode: 0
- use onoff
library (For Raspberry Pi 3b+ and 4)pir_mode: 1
- use python script with RPI.GPIO
library (For Raspberry Pi 3b+ and 4)pir_mode: 2
- use python script with gpiozero
library (For Raspberry Pi 5, not tested on other Raspberry Pi)EXT_SCREEN-WAKEUP
notification for wake up your screenFor updating this plugin try this command:
cd ~/MagicMirror/modules/EXT-Pir
npm run update
New forum and support for all @bugsounet modules is now localized there !