Update powerwall.sh

This commit is contained in:
2023-05-15 09:01:37 -05:00
parent 2a07c7d85e
commit 85963cd758

View File

@@ -90,7 +90,7 @@ CHECKTEMP_SERVICE(){
fi
datetime=`date +'%Y-%m-%d %H:%M:%S'`
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
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`