Update offsite-power-check.sh

This commit is contained in:
2023-11-05 21:57:06 -06:00
parent 46dd4d25f3
commit db214c401a

View File

@@ -35,13 +35,7 @@ PWO_START(){
OFFSITE_BATT_CAP=$(echo "${upsinfo}" | grep 'battery.charge:' | sed 's/.*: //')
SENDNOTICE(){
TITLE=${1}
MESSAGE="${2}
BATTERY CHARGE: ${OFFSITE_BATT_CAP}%25
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'Mins
AC VOLTAGE: ${OFFSITE_VOLTIN}'Volts
$(date)"
MESSAGE="${2}\n\nBATTERY CHARGE: ${OFFSITE_BATT_CAP}%25\nBATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'Mins\nAC VOLTAGE: ${OFFSITE_VOLTIN}'Volts\n\n$(date)"
MSGSOUND=Cosmic
if [ "${3}" = "1" ]; then PRIORITY="${3}"; MSGSOUND=siren
elif [ "${3}" != "" ]; then PRIORITY=${3}; else PRIORITY=0; fi