Update powerwall.sh

This commit is contained in:
2022-09-03 09:13:41 -05:00
parent 66aa7d7bcc
commit 17b2c5bafe

View File

@@ -18,7 +18,7 @@ GETTEMP(){
echo $payload | cut -d':' -f 7 | cut -d',' -f 1 | read temp_c echo $payload | cut -d':' -f 7 | cut -d',' -f 1 | read temp_c
temp_f=`echo "scale=2; $temp*1.8 + 32" | bc` 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 if [ ${action-x} ]; then
case $action in case $action in
gettemp) echo GETTEMP ${2};; gettemp) GETTEMP ${2};;
esac esac
fi fi