From 17b2c5bafe3c17259f7f6c68cf398f2c781c00ea Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Sep 2022 09:13:41 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index f4db23da..db9f7fec 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -18,7 +18,7 @@ GETTEMP(){ echo $payload | cut -d':' -f 7 | cut -d',' -f 1 | read temp_c temp_f=`echo "scale=2; $temp*1.8 + 32" | bc` - return temp_f + echo "$temp_c -> $tempf" } @@ -26,7 +26,7 @@ GETTEMP(){ if [ ${action-x} ]; then case $action in - gettemp) echo GETTEMP ${2};; + gettemp) GETTEMP ${2};; esac fi