From 0c1d50b3c543b747f15955d780700ae659adb90d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 11 Sep 2022 16:53:44 -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 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..."