This commit is contained in:
2024-01-09 22:35:56 -06:00
parent 0bb99c832b
commit e2439a3450
2 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
VERS='2.5.126-01092024'
VERS='2.5.128-01092024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -16,9 +16,13 @@ START_POWERWALL_FAN(){
pwmconfig &
sleep 4s
killall pwmconfig
sleep 5s
sleep 1s
temp_c=$(cat /sys/class/hwmon/hwmon2/fan1_input)
SENDNOTICE "Starting up the ${SENSOR}" "${SENSOR} is now reading: ${temp_c}"
if [ ${temp_c} -gt 0 ]; then
SENDNOTICE "Starting up the ${SENSOR}" "Startup confirmed, the fan is now reading: ${temp_c}"
else
SENDNOTICE "FAILED to start ${SENSOR}" "Cannot start the fan, ERROR WILL ROBINSON!!!"
fi
}
CHECKTEMP(){
start=`date +%s`
@@ -440,7 +444,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
temp_c=$(cat /sys/class/hwmon/hwmon2/fan1_input)
temp_h=''
if [ "${SENSOR}" == "Powerwall-FAN" ] && [ "${temp_c}" == "0" ]; then
START_POWERWALL_FAN &
START_POWERWALL_FAN >/dev/null 2>&1 &
fi
fi