Flow – Send command

Posted on Updated on

A couple of commands example.

 [{"id":"9d317c9d.94ec4","type":"inject","z":"95dd8c1e.9f45b8","name":"shutdown!","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":254,"y":105,"wires":[["47b1920.62f3bf"]]},{"id":"47b1920.62f3bf","type":"exec","z":"95dd8c1e.9f45b8","command":"sudo poweroff #","append":"","useSpawn":"","name":"turn off Pi","x":428,"y":104,"wires":[[],[],[]]},{"id":"28150e2f.21a1ea","type":"inject","z":"95dd8c1e.9f45b8","name":"reboot!","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":255,"y":188,"wires":[["f211e72e.571f78"]]},{"id":"f211e72e.571f78","type":"exec","z":"95dd8c1e.9f45b8","command":"sudo reboot #","addpay":false,"append":"","useSpawn":"","timer":"","name":"Reboot Pi","x":430,"y":193,"wires":[[],[],[]]},{"id":"9fdf1eef.cd09f","type":"inject","z":"95dd8c1e.9f45b8","name":"video off","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":248,"y":277,"wires":[["d5a598dc.db0b9"]]},{"id":"d5a598dc.db0b9","type":"exec","z":"95dd8c1e.9f45b8","command":"vcgencmd display_power 0","addpay":false,"append":"","useSpawn":"","timer":"","name":"Video Off","x":431,"y":279,"wires":[[],[],[]]}]

screen-shot-2016-11-05-at-7-21-04-am

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s