Update powerwall.sh
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user