adding nummer5 tools
This commit is contained in:
10
nummer5/nummer5-host-powercycle.sh
Executable file
10
nummer5/nummer5-host-powercycle.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
host=$1
|
||||
echo "${host} turning it off"
|
||||
mosquitto_pub -h mqtt.wks -t switch_cloud/switch/${host}/command -m OFF
|
||||
sleep 2
|
||||
echo "${host} turning it on"
|
||||
mosquitto_pub -h mqtt.wks -t switch_cloud/switch/${host}/command -m ON
|
||||
|
||||
ping -W 1 ${host}
|
||||
Reference in New Issue
Block a user