Update powerwall.sh
This commit is contained in:
@@ -90,7 +90,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
fi
|
fi
|
||||||
datetime=`date +'%Y-%m-%d %H:%M:%S'`
|
datetime=`date +'%Y-%m-%d %H:%M:%S'`
|
||||||
errtime=$(expr `date +%s` - $(stat -c %Y ${logtemp}))
|
errtime=$(expr `date +%s` - $(stat -c %Y ${logtemp}))
|
||||||
[ $errtime -ge 20 ] && relog=1 || relog=0
|
[ $errtime -ge 10 ] && relog=1 || relog=0
|
||||||
|
|
||||||
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
|
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
|
||||||
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
|
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
|
||||||
|
|||||||
Reference in New Issue
Block a user