From d6530324811d5af8905905e09b2880a5a09b18a1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 16 Mar 2025 14:29:09 -0500 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 7649419f..88afb493 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -751,7 +751,7 @@ BATT AMPS: ${BATTA_disp}" else [ $(expr `date +%s` - $(stat -c %Y ${PW_LOGPOWER})) -ge 300 ] && echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${INPUTACV}'volts / ${BATTVOLT}'volts - Power OFF or LOW" >> ${PW_LOGPOWER} if [ -f ${PW_TMPFOLDER}/power.ac.start ]; then - SENDNOTICE "POWER Startup - POWER OFF/LOW!!" "Service Startup + SENDNOTICE "POWER Startup - POWER OFF/LOW -${PW_DISCHARGE}- !!" "Service Startup Power off or low voltage detected GRID VOLTAGE: ${INPUTACV}'volts BATT VOLTAGE: `IDS_NUMBER_FORMAT ${BATTVOLT}`'volts ~ (`IDS_NUMBER_FORMAT ${BATTLIFE}`% @ ${BATT_FULL}'V) @@ -764,7 +764,7 @@ BATT AMPS: ${BATTA_disp}" 1 elif [ -f ${PW_TMPFOLDER}/power.ac.good ]; then if (( $(bc <<<"${INPUTACV} < ${min_acvolt}") )); then echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${INPUTACV}'volts / ${BATTVOLT}'volts - Power OFF or LOW voltage detected" >> ${PW_LOGPOWER} - SENDNOTICE "POWER ALERT - POWER OFF/LOW -${PW_DISCHARGE}-!!" "Power off or low voltage detected + SENDNOTICE "POWER ALERT - POWER OFF/LOW" "Power off or low voltage detected GRID VOLTAGE: ${INPUTACV}'volts BATT VOLTAGE: `IDS_NUMBER_FORMAT ${BATTVOLT}`'volts ~ (`IDS_NUMBER_FORMAT ${BATTLIFE}`% @ ${BATT_FULL}'V) BATT AMPS: ${BATTA_disp}" 1