From a80307e0550061c7199342a56129f6d49d0b386c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 14:45:00 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index 8597c6d4..bc4dad55 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -47,7 +47,7 @@ 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)) + temp_f=$((${temp_f%.*} + 1)) #echo "$temp_c -> $temp_f"