diff --git a/powerwall.sh b/powerwall.sh index 3317a09d..7e4cf21e 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -116,7 +116,7 @@ CHECKACV_SERVICE(){ do INPUTACV=$(curl -s "http://10.10.0.61/stats.json" | jq '.inputs .inV') datetime=`date +'%Y-%m-%d %H:%M:%S'` - if [ ${INPUTACV%.*} -ge 124 ]; then + if [ ${INPUTACV%.*} -ge ${min_volt} ]; then echo "($datetime) normal voltage: ${INPUTACV}V" else echo "($datetime) LOW voltage: ${INPUTACV}V"