Skip to content

Instantly share code, notes, and snippets.

@andysc

andysc/README.md Secret

Created March 6, 2014 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andysc/4ce5459d098cd9245b8c to your computer and use it in GitHub Desktop.
Save andysc/4ce5459d098cd9245b8c to your computer and use it in GitHub Desktop.
flow to shut down a Raspberry Pi

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!

[{"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