diff --git a/powerwall.sh b/powerwall.sh index b8886d7b..3e26333f 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -139,7 +139,7 @@ CHECKACV_SERVICE(){ last_battvolt=$BATTVOLT fi voltstatus=3 - BATTVOLT=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs ..battV') + BATTVOLT=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .battV') if [ ${BATTVOLT%.*} -lt ${min_battvolt} ] && [ ${BATTVOLT%.*} -gt ${min_battvolt_sys} ]; then [ $VERBOSE = true ] && echo "($datetime) LOW BATTERY voltage: ${BATTVOLT}V" [ $VERBOSE = true ] && echo "($datetime) Shutting down main servers..."