Update powerwall.sh

This commit is contained in:
2022-09-03 14:44:15 -05:00
parent acc909db3f
commit 086b214d54

View File

@@ -47,6 +47,8 @@ CHECKTEMP_SERVICE(){
echo $mqtt_message | cut -d'T' -f 3 | cut -d"\"" -f 1 | read temp_t
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
temp_f=$(($temp_f +1))
#echo "$temp_c -> $temp_f"
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn