Update powerwall.sh

This commit is contained in:
2022-09-11 16:53:44 -05:00
parent 3672b7f962
commit 0c1d50b3c5

View File

@@ -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..."