diff --git a/offsite-power-check.sh b/offsite-power-check.sh index 732adb87..d81f5c37 100755 --- a/offsite-power-check.sh +++ b/offsite-power-check.sh @@ -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 }