A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Shell scripts through mirror
-
Hi.
I am trying to implement a way to turn my lights on and off. I have managed to write 2 very simple shell scripts in my rpi, one that turns lights on and one turns lights off.
What is the easiest way to run these scripts through the magic mirror? I am also intending to run this by voice control, so a suggestion on how to do this is also appreciated.
-
@trmst the way I’m calling the turn off monitor cmd in my voice module you can execute your shell script.
https://github.com/fewieden/MMM-voice/blob/master/node_helper.js#L348
official documentation https://nodejs.org/dist/latest-v8.x/docs/api/child_process.html#child_process_child_process_exec_command_options_callback