From dc41fbc77f32196183197d8a28b5d7c122e57105 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 26 Feb 2020 00:44:43 +0000 Subject: [PATCH] 'Bash/Pinger/BTPing.sh.examp' updaten --- Bash/Pinger/BTPing.sh.examp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bash/Pinger/BTPing.sh.examp b/Bash/Pinger/BTPing.sh.examp index 1e36942..c4a93c8 100644 --- a/Bash/Pinger/BTPing.sh.examp +++ b/Bash/Pinger/BTPing.sh.examp @@ -44,14 +44,14 @@ domoticzstatus=$(curl -s "http://"$domoticzserverip"/json.htm?type=devices&rid=" CurTime=$(date '+%d/%m/%Y %H:%M'); # Compare ping result to Domoticz device status if [ "$device" = "$domoticzstatus" ] ; then -echo "$CurTime | Device: $Name | Status: $technology" +echo "$CurTime | Device: $Name | Domo: Synced | Status: $technology" else #echo "Status desynchronized, resynchronizing..." if [ "$device" = On ] ; then -echo "$CurTime | Device: $Name | Sync: Online" +echo "$CurTime | Device: $Name | Domo: Desynced | Status: $technology" curl -s "http://"$domoticzserverip"/json.htm?type=command¶m=switchlight&idx="$IDX"&switchcmd=On" 2>/dev/null 1>/dev/null else -echo "$CurTime | Device: $Name | Sync: Offline" +echo "$CurTime | Device: $Name | Domo: Desynced | Status: $technology" curl -s "http://"$domoticzserverip"/json.htm?type=command¶m=switchlight&idx="$IDX"&switchcmd=Off" 2>/dev/null 1>/dev/null fi fi