Update offsite-power-check.sh

This commit is contained in:
2023-11-05 22:12:17 -06:00
parent c0a694ed9f
commit 800b294c27

View File

@@ -49,6 +49,7 @@ PWO_START(){
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
}
if [ "${startup}" == "true" ]; then
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'Volts - ${OFFSITE_BATT_CAP}% Battery - Service startup" >> ${PW_LOGPOWER}
SENDNOTICE "OFFSITE POWER MONITOR" "Service starting"
startup=false
fi