Update powerwall.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user