Update powerwall.sh

This commit is contained in:
2023-05-14 17:20:13 -05:00
parent 223c828429
commit 840eb435f7

View File

@@ -26,11 +26,12 @@ CHECKTEMP(){
echo "${SENSOR}${spc}: ${reading}"
done
fi
echo
}
CHECKTEMPSENSOR(){
mqtt_message=`${mqtt_conn} -t tele/${1}/SENSOR -C 1`
echo $mqtt_message | cut -d':' -f 6 | cut -d',' -f 1 | read temp_c
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
#echo "$temp_c -> $temp_f"