Update powerwall.sh

This commit is contained in:
2022-09-03 09:27:35 -05:00
parent 365aa8f1a6
commit ee3fe574ea

View File

@@ -18,8 +18,8 @@ GETTEMP(){
mqtt_message=`mosquitto_sub -h 10.10.1.180 -t tasmota/discovery/${SENSOR_MQTTID[$1]}/sensors -u homeassistant -P 12home34assistant56 -C 1`
echo $mqtt_message
echo $mqtt_message | cut -d':' -f 7 | cut -d',' -f 1 | read temp_c
if [ "$team_c" != "null" ]; then
temp_f=`echo "scale=2; $temp*1.8 + 32" | bc`
if [ "$temp_c" != "null" ]; then
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
echo "$temp_c -> $temp_f"
else
echo "No temperature"