update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
VERS='2.5.126-01092024'
|
VERS='2.5.128-01092024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report '
|
noheader=' update service dailytemp confsync -r -report '
|
||||||
|
|
||||||
|
|||||||
@@ -16,9 +16,13 @@ START_POWERWALL_FAN(){
|
|||||||
pwmconfig &
|
pwmconfig &
|
||||||
sleep 4s
|
sleep 4s
|
||||||
killall pwmconfig
|
killall pwmconfig
|
||||||
sleep 5s
|
sleep 1s
|
||||||
temp_c=$(cat /sys/class/hwmon/hwmon2/fan1_input)
|
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(){
|
CHECKTEMP(){
|
||||||
start=`date +%s`
|
start=`date +%s`
|
||||||
@@ -440,7 +444,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
|
|||||||
temp_c=$(cat /sys/class/hwmon/hwmon2/fan1_input)
|
temp_c=$(cat /sys/class/hwmon/hwmon2/fan1_input)
|
||||||
temp_h=''
|
temp_h=''
|
||||||
if [ "${SENSOR}" == "Powerwall-FAN" ] && [ "${temp_c}" == "0" ]; then
|
if [ "${SENSOR}" == "Powerwall-FAN" ] && [ "${temp_c}" == "0" ]; then
|
||||||
START_POWERWALL_FAN &
|
START_POWERWALL_FAN >/dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user