diff --git a/offsite-power-check.sh b/offsite-power-check.sh index e3da8985..0ab7e9a5 100755 --- a/offsite-power-check.sh +++ b/offsite-power-check.sh @@ -1,12 +1,13 @@ #!/usr/bin/env sh -PW_FOLDER='/opt/idssys/powerwall' -PW_LOGFOLDER=${PW_FOLDER}/logs -PW_LOGFILE=${PW_LOGFOLDER}/logfile -PW_LOGPOWER=${PW_LOGFOLDER}/log-power -[ ! -f ${PW_LOGFILE} ] && touch ${PW_LOGFILE} -[ ! -f ${PW_LOGPOWER} ] && touch ${PW_LOGPOWER} +# PW_FOLDER='/opt/idssys/powerwall' +# PW_LOGFOLDER=${PW_FOLDER}/logs +# PW_LOGFILE=${PW_LOGFOLDER}/logfile +# PW_LOGPOWER=${PW_LOGFOLDER}/log-power +# [ ! -f ${PW_LOGFILE} ] && touch ${PW_LOGFILE} +# [ ! -f ${PW_LOGPOWER} ] && touch ${PW_LOGPOWER} +. /opt/idssys/powerwall/defaults.inc . /opt/idssys/powerwall/settings.conf @@ -32,8 +33,6 @@ $(date)" 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 } -SENDNOTICE2 "TEST" "Testing 321" - while true; do upsinfo=$(upsc CP1500PFCLCD) if [ "${upsinfo}" != "" ]; then