mboskamp / MMM-PIR

This MagicMirror module monitors a PIR sensor and turns on/off your display. You can even run custom scripts and control it via Telegram.
16 stars 6 forks source link

Execute script when User is detected ? #8

Open essare opened 5 years ago

essare commented 5 years ago

Thank you for this awesome module. I would like to know if its possible to run custom scripts when user is active ? I want to play random music when user is detected and stop it when he's inactive.

mboskamp commented 5 years ago

Hi @Ess-Soft, this is not possible 'out-of-the-box' and is not within the scope of this module. However, what you can do is write a module that hooks into the 'USER_PRESENCE' notification and then plays some nice music.