A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Motion sensor activates a sound file
-
You can do something like:
if (motion is detected) { var sound = new Audio(); sound.src = 'modules/MMM-PIR-Sensor/sounds/YOUR SOUND.mp3'; sound.play(); }
-
thank ´you for the fast reply. It doenst work for now, but it was a nice advice :) trying it to fix it soon !
-
Have the motion sensor module send a notification when motion is detected. Have another module receive that notification to trigger the sound file. That should work.
-
Finally it works with crontab, shells and python :D thank u anyway :)
-
There’s more than one way to skin a cat. :-)