Update offsite-power-check.sh
This commit is contained in:
@@ -20,7 +20,7 @@ WAIT_TO_POWER_SERVERS=5 #minutes
|
||||
LOG_INTERVAL_NORMAL=60 #minutes
|
||||
LOG_INTERVAL_ABNORMAL=30 #seconds
|
||||
LOG_INTERVAL_CHARGING=120 #seconds
|
||||
RENOTIFY_LOWPOWER=10 #minutes
|
||||
RENOTIFY_LOWPOWER=5 #minutes
|
||||
|
||||
PW_OFFSITEHOSTS="10.2.1.11"
|
||||
# PW_OFFSITEHOSTS="10.2.1.11 10.2.1.12"
|
||||
@@ -59,7 +59,7 @@ BATTERY CHARGE: ${OFFSITE_BATT_CAP}'%25
|
||||
BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins
|
||||
AC VOLTAGE: ${OFFSITE_VOLTIN}'volts
|
||||
|
||||
$(date +%Y-%m-%d-%H-%M-%S)"
|
||||
$(date '+%Y-%m-%d %H:%M:%S')"
|
||||
if [ "${3}" = "1" ]; then PRIORITY="${3}"; MSGSOUND=siren; elif [ "${3}" != "" ]; then PRIORITY=${3}; else PRIORITY=0; fi
|
||||
curl -sd "token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${1}&priority=${PRIORITY}&sound=cosmic" https://api.pushover.net/1/messages.json >/dev/null 2>&1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user