Update powerwall.sh
This commit is contained in:
1 parent
d02f64fe4d
commit
c0d1a5ef1f
1 file changed
+5
-6
+5
-6
@@ -131,12 +131,11 @@ CHECKPOWER(){
|
||||
}
|
||||
|
||||
CHECKACV_SERVICE(){
|
||||
voltstatus=0
|
||||
battstatus=0
|
||||
while true
|
||||
do
|
||||
INPUTACV=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .inV')
|
||||
BATTVOLT=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .battV')
|
||||
voltstatus=0
|
||||
battstatus=0
|
||||
while true; do
|
||||
INPUTACV=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .inV')
|
||||
BATTVOLT=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .battV')
|
||||
datetime=`date +'%Y-%m-%d %H:%M:%S'`
|
||||
if [ ${INPUTACV} -ge ${min_acvolt} ]; then
|
||||
if [ $voltstatus -eq 3 ]; then
|
||||
|
||||
Reference in new issue
Block a user