Update powerwall.sh
This commit is contained in:
@@ -115,9 +115,7 @@ CHECKACV_SERVICE(){
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
INPUTACV=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .inV')
|
INPUTACV=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .inV')
|
||||||
datetime="${temp_d} ${temp_t}"
|
datetime=`date +'%Y-%m-%d %H:%M:%S'`
|
||||||
datetime=$(TZ=UTC0 date -d "${datetime}" +%s)
|
|
||||||
datetime=`date -d @${datetime} +'%Y-%m-%d %H:%M:%S'`
|
|
||||||
if [ ${INPUTACV%.*} -gt 105 ]; then
|
if [ ${INPUTACV%.*} -gt 105 ]; then
|
||||||
echo "($datetime) normal voltage: ${INPUTACV}V"
|
echo "($datetime) normal voltage: ${INPUTACV}V"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user