Update powerwall.sh

This commit is contained in:
2023-05-12 22:33:12 -05:00
parent c7aca3c950
commit 99cdfde6f7

View File

@@ -144,7 +144,7 @@ CHECKACV_SERVICE(){
battstatus=0
else
errtime=$(expr `date +%s` - $(stat -c %Y ${logacv}))
[ $errtime -ge 60 ] && echo "($datetime) normal voltage: ${INPUTACV}V" >> ${logacv}
[ $errtime -ge 3600 ] && echo "($datetime) normal voltage: ${INPUTACV}V" >> ${logacv}
if [ $voltstatus -eq 0 ]; then
echo -e "($datetime) Service Startup\nNormal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
echo "($datetime) Service Startup - Normal voltage detected VOLTAGE: ${INPUTACV}V" >> ${logacv}