adding nummer5 tools

This commit is contained in:
2022-09-14 19:41:27 +02:00
parent 8cc8efd81b
commit 31274f3825
3 changed files with 20 additions and 0 deletions

View 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}