From b363056f91d7e5c26bcaedfc55590414aa149bbe Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 30 Nov 2023 17:33:57 -0600 Subject: [PATCH] Update offsite-power-check.sh --- offsite-power-check.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/offsite-power-check.sh b/offsite-power-check.sh index 97ee83b3..588efaa5 100755 --- a/offsite-power-check.sh +++ b/offsite-power-check.sh @@ -59,9 +59,8 @@ BATTERY CHARGE: ${OFFSITE_BATT_CAP}%25 BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'mins AC VOLTAGE: ${OFFSITE_VOLTIN}'volts" 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 + 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 } - SENDNOTICE "TEST" "Testies 123" if [ "${startup}" == "true" ]; then echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'volts - ${OFFSITE_WATTS}'watts - ${OFFSITE_BATT_CAP}% Battery - ${OFFSITE_BATT_RUNTIME}'mins - Service startup" >> ${PW_LOGPOWER} echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'volts - ${OFFSITE_BATT_CAP}% Battery - Service startup" >> ${PW_LOGFILE}