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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login