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