This commit is contained in:
2023-05-15 22:04:29 -05:00
parent ec1b91cc2b
commit 03407d44e2
2 changed files with 49 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.142-05152023'
VERS='2.143-05152023'
noheader=' update '
@@ -18,8 +18,8 @@ FOLDER='/opt/idssys/powerwall'
LOGFOLDER=${FOLDER}/logs
[ ! -d ${LOGFOLDER} ] && mkdir ${LOGFOLDER}
logfile=${LOGFOLDER}/logfile
logacv=${LOGFOLDER}/log-acv
[ ! -f ${logacv} ] && touch ${logacv}
logpower=${LOGFOLDER}/log-acv
[ ! -f ${logpower} ] && touch ${logpower}
declare -A TEMP_THRESHOLDS
@@ -37,8 +37,8 @@ SENSOR_ID['ServerRoomTH']='2'
SENSOR_ID['RaspberryPI-CPU']='6'
declare -A POWERWALL_SERVICES
POWERWALL_SERVICES['Temp']='monitor-temp'
POWERWALL_SERVICES['ACV']='monitor-acv'
POWERWALL_SERVICES['temp']='monitor-temp'
POWERWALL_SERVICES['power']='monitor-power'
POWERWALL_SERVICES['powerlogger']='monitor-powerlogger'
declare -A ESXI_HOST_NAMES