diff --git a/offsite-power-check.sh b/offsite-power-check.sh index 88fa3c67..d171bc4b 100755 --- a/offsite-power-check.sh +++ b/offsite-power-check.sh @@ -40,6 +40,14 @@ PWO_START(){ if [ "${3}" = "1" ]; then PRIORITY="${3}"; MSGSOUND=siren elif [ "${3}" != "" ]; then PRIORITY=${3}; else PRIORITY=0; fi curl -d "token=${PUSHOVER_APP_TOKEN}&user=${PUSHOVER_USER_TOKEN}&message=${MESSAGE}&title=${TITLE}&priority=${PRIORITY}&sound=${MSGSOUND}" https://api.pushover.net/1/messages.json >/dev/null 2>&1 + curl -s --form-string "token=${PUSHOVER_APP_TOKEN}" --form-string "user=${PUSHOVER_USER_TOKEN}" \ + --form-string "message=${2} + + BATTERY CHARGE: ${OFFSITE_BATT_CAP}%25 + BATT RUNTIME: ${OFFSITE_BATT_RUNTIME}'Mins + AC VOLTAGE: ${OFFSITE_VOLTIN}'Volts + + $(date)" https://api.pushover.net/1/messages.json } if [ "${startup}" == "true" ]; then SENDNOTICE "OFFSITE POWER MONITOR" "Service starting"