Update powerwall.sh

This commit is contained in:
2022-09-11 14:22:25 -05:00
parent 792331c6c4
commit e597448202

View File

@@ -110,6 +110,18 @@ CHECKTEMP_SERVICE(){
done # &
}
CHECKACV_SERVICE(){
last_temp=0
while true
do
INPUTACV=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .inV')
if [ ${INPUTACV%.*} -gt 105 ]; then
fi
sleep 30
done # &
}
UPDATE(){
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
echo ""
@@ -185,10 +197,20 @@ if [ ${action-x} ]; then
#/usr/bin/killall bash
else
UPDATE
CHECKTEMP_SERVICE ${2}
fi
;;
checktacv_service)
if [ "${2}" = "stop" ]; then
service_pid=`systemctl show --property MainPID --value ${SERVICE_NAME[${3}]}`
/bin/kill -9 $service_pid
/bin/systemctl stop $srvcname
#/usr/bin/killall bash
else
CHECKACV_SERVICE ${2}
fi
;;
esac
fi