Update offsite-power-check.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user