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