Update offsite-power-check.sh

This commit is contained in:
2023-11-08 19:32:00 -06:00
parent 656aef8003
commit 3076e6abf4

View File

@@ -73,7 +73,7 @@ $(date)"
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'volts - ${OFFSITE_BATT_CAP}% Battery - Charging Complete" >> ${PW_LOGFILE}
SENDNOTICE "OFFSITE POWER" "Batteries are fully recharged"
rm -f ${PW_TMPFOLDER}/power.offsite.charging
elif [ ! -f ${PW_TMPFOLDER}/power.offsite.charging ]; then
elif [ ${OFFSITE_BATT_CAP%.*} -lt 100 ] && [ ! -f ${PW_TMPFOLDER}/power.offsite.charging ]; then
touch ${PW_TMPFOLDER}/power.offsite.charging
fi
if [ -f ${PW_TMPFOLDER}/power.offsite.ac.low ]; then