This commit is contained in:
2024-12-01 21:33:54 -06:00
parent 1a0f7f33f3
commit a8e9a2a4c0
2 changed files with 9 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.8.13-12012024'
VERS='2.8.14-12012024'
noheader=' update service dailytemp confsync -r -report test '

View File

@@ -13,11 +13,12 @@ GET_HOST_FANSPEED(){
echo ${FanSpeed} > ${PW_TMPFOLDER}/.local.fanspeed.${PW_ESXI_HOST_NAMES[${1}]}.${2}
}
START_POWERWALL_FAN(){
pwmconfig &
PWCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${PW_REMOTE_SENSORS['Powerwall-FAN']}"
${PWCMD} pwmconfig &
sleep 4s
killall pwmconfig >/dev/null 2>&1
if [ -f ${PW_FANINPUT} ]; then
temp_c=$(cat ${PW_FANINPUT})
${PWCMD} killall pwmconfig >/dev/null 2>&1
if ${PWCMD} [ -f ${PW_FANINPUT} ]; then
temp_c=$(${PWCMD} cat ${PW_FANINPUT})
if [ ${temp_c} -gt 0 ]; then
fs=$(IDS_NUMBER_FORMAT ${temp_c})
SENDNOTICE "Starting up the ${SENSOR}" "Startup confirmed, the fan is now reading: ${fs}'RPM
@@ -974,6 +975,9 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
fi
elif [[ "${SENSOR}" = *"FAN"* ]]; then
if ! temp_c=$(ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${PW_REMOTE_SENSORS[${SENSOR}]} cat ${PW_FANINPUT}) ; then TIMEOUT=1; fi
if [ "${SENSOR}" == "Powerwall-FAN" ] && [ ${temp_c} -lt 1500 ]; then
START_POWERWALL_FAN >/dev/null 2>&1 &
fi
fi
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then