'Bash/Pinger/Dual-IF-Ping.sh.example' updaten
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
#Trigger form Cron
|
||||
# Set Parameters
|
||||
domoticzserverip='127.0.0.1:8080'
|
||||
if1='<IP of first if>'
|
||||
@@ -92,8 +93,4 @@ curl -s "http://"$domoticzserverip"/json.htm?type=command¶m=switchlight&idx=
|
||||
else
|
||||
curl -s "http://"$domoticzserverip"/json.htm?type=command¶m=switchlight&idx="$IDX2"&switchcmd=Off" 2>/dev/null 1>/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
sleep 300
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user