update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.8.13-12012024'
|
VERS='2.8.14-12012024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report test '
|
noheader=' update service dailytemp confsync -r -report test '
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,12 @@ GET_HOST_FANSPEED(){
|
|||||||
echo ${FanSpeed} > ${PW_TMPFOLDER}/.local.fanspeed.${PW_ESXI_HOST_NAMES[${1}]}.${2}
|
echo ${FanSpeed} > ${PW_TMPFOLDER}/.local.fanspeed.${PW_ESXI_HOST_NAMES[${1}]}.${2}
|
||||||
}
|
}
|
||||||
START_POWERWALL_FAN(){
|
START_POWERWALL_FAN(){
|
||||||
pwmconfig &
|
PWCMD="ssh -q -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${PW_REMOTE_SENSORS['Powerwall-FAN']}"
|
||||||
|
${PWCMD} pwmconfig &
|
||||||
sleep 4s
|
sleep 4s
|
||||||
killall pwmconfig >/dev/null 2>&1
|
${PWCMD} killall pwmconfig >/dev/null 2>&1
|
||||||
if [ -f ${PW_FANINPUT} ]; then
|
if ${PWCMD} [ -f ${PW_FANINPUT} ]; then
|
||||||
temp_c=$(cat ${PW_FANINPUT})
|
temp_c=$(${PWCMD} cat ${PW_FANINPUT})
|
||||||
if [ ${temp_c} -gt 0 ]; then
|
if [ ${temp_c} -gt 0 ]; then
|
||||||
fs=$(IDS_NUMBER_FORMAT ${temp_c})
|
fs=$(IDS_NUMBER_FORMAT ${temp_c})
|
||||||
SENDNOTICE "Starting up the ${SENSOR}" "Startup confirmed, the fan is now reading: ${fs}'RPM
|
SENDNOTICE "Starting up the ${SENSOR}" "Startup confirmed, the fan is now reading: ${fs}'RPM
|
||||||
@@ -974,6 +975,9 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
|
|||||||
fi
|
fi
|
||||||
elif [[ "${SENSOR}" = *"FAN"* ]]; then
|
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 ! 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
|
fi
|
||||||
|
|
||||||
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
|
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "esxi" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user