bugfix in string parser for humidity values

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1697 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
magenbrot 2012-07-06 10:00:13 +00:00
parent 92eae47fbf
commit 48e19e7bea

View File

@ -108,7 +108,7 @@ fi
fhem=`echo -e "getstate ${DEVICE}\nquit" | ${NC} $HOST $PORT`
temp=`echo $fhem | awk '{split($0,a,"temperature:"); split(a[2],b," "); print b[1]}'`
actuator=`echo $fhem | awk '{split($0,a,"actuator:"); split(a[2],b," "); print b[1]}'`
actuator=`echo $fhem | awk '{split($0,a,"actuator:"); split(a[2],b," "); print b[1]}' | tr -d "%"`
daytemp=`echo $fhem | awk '{split($0,a,"day-temp:"); split(a[2],b," "); print b[1]}'`
desiredtemp=`echo $fhem | awk '{split($0,a,"desired-temp:"); split(a[2],b," "); print b[1]}'`
nighttemp=`echo $fhem | awk '{split($0,a,"night-temp:"); split(a[2],b," "); print b[1]}'`