This is an extension for the MagicMirror. It uses the USER_PRESENCE notification of MMM-PIR-Sensor to display the compliments module for a specified time. This module is simplified version of https://github.com/semox/MMM-NearCompliments
- Navigate into your MagicMirror's
modules
folder and executegit clone https://github.com/QB4-dev/MMM-PIR-Compliments
. - Configure config/config.js with documentation below.
- Reboot your MagicMirror.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-PIR-Compliments',
config: {
animationSpeed: 200,
delay: 10
}
}
]
The following properties can be configured:
Option | Description |
---|---|
animationSpeed |
Animation speed in ms to show/hide compliments module.
Possible values: int
Default value: 200
|
delay |
Delay defined in seconds to show compliments module.
Possible values: int
Default value: 30
|