From fb25a37803c3105937f6367ddbd03cce6ecdc59c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 11 Sep 2022 14:27:20 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 2cc59a15..fccdf527 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -115,9 +115,7 @@ CHECKACV_SERVICE(){ while true do INPUTACV=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .inV') - datetime="${temp_d} ${temp_t}" - datetime=$(TZ=UTC0 date -d "${datetime}" +%s) - datetime=`date -d @${datetime} +'%Y-%m-%d %H:%M:%S'` + datetime=`date +'%Y-%m-%d %H:%M:%S'` if [ ${INPUTACV%.*} -gt 105 ]; then echo "($datetime) normal voltage: ${INPUTACV}V" fi