This enables you to cleanly shutdown a Raspberry Pi without having to ssh in to run sudo poweroff. Use with some care, as it gives anyone with access to the Node-RED GUI the ability to shut the machine down!
-
-
Save andysc/4ce5459d098cd9245b8c to your computer and use it in GitHub Desktop.
flow to shut down a Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"ab01bcd1.c410e","type":"inject","name":"shutdown!","topic":"","payload":"","repeat":"","crontab":"","once":false,"x":493,"y":479,"z":"a7da7b08.56417","wires":[["8f9f1fe.3f891e"]]},{"id":"8f9f1fe.3f891e","type":"exec","command":"sudo poweroff #","append":"","useSpawn":"","name":"turn off Pi","x":667,"y":478,"z":"a7da7b08.56417","wires":[[],[],[]]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment