Description
Enable MagicMirror sleep from external (camera) sources
If you are running the MM on a non PI device, or want to control sleep/wake without having to wire up another device, this module will take external info and signal MM to sleep or wake up.
I use a Webcam camera for the motion detection, driven by the github Motion project.
That project allows for a script to be run when motion starts and ends. I provide a script that
creates a file for both events, and the module detects those files.
the module supports sleep and wake 3 different ways… On PI using the tvservice command, or the exec dpms command if not using HDMI, or hiding all modules if using an energystar monitor (like my tv)
I have submitted changes to MMM-voice and HelloLucy to allow our modules to know about the others processing… so voice Go To Sleep and motion wakeup work… if using the Hide method, modules already hidden at sleep will remain hidden on wakeup.
Download:
[card:sdetweil/MMM-SleepWake]