Update offsite-power-check.sh

This commit is contained in:
2023-11-05 14:29:59 -06:00
parent 8cd0365752
commit 4d0666531f

View File

@@ -1,5 +1,11 @@
#!/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}
SENDNOTICE2(){
TITLE=${1}