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