From 032fb608ab3d3e47041c0305dafe7b3ca04d3ebf Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 1 Jan 2024 23:29:33 -0600 Subject: [PATCH] Update offsite-power-check.sh --- offsite-power-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offsite-power-check.sh b/offsite-power-check.sh index 447d6bc7..b52db5ff 100755 --- a/offsite-power-check.sh +++ b/offsite-power-check.sh @@ -50,7 +50,7 @@ AC VOLTAGE: ${OFFSITE_VOLTIN}'volts $(date)" if [ "${3}" = "1" ]; then PRIORITY="${3}"; MSGSOUND=siren; elif [ "${3}" != "" ]; then PRIORITY=${3}; else PRIORITY=0; fi - curl -m 3 -sd "token=${PW_PUSHOVER_APP_TOKEN}&user=${PW_PUSHOVER_USER_TOKEN}&message=${MESSAGE//\%/\%25}&title=${1}&priority=${PRIORITY}&sound=cosmic" https://api.pushover.net/1/messages.json ####>/dev/null 2>&1 + curl -m 3 -sd "token=${PW_PUSHOVER_APP_TOKEN}&user=${PW_PUSHOVER_USER_TOKEN}&message=$(echo $MESSAGE | sed -e "s/%/%25/g")&title=${1}&priority=${PRIORITY}&sound=cosmic" https://api.pushover.net/1/messages.json >/dev/null 2>&1 } 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}