its a string
This commit is contained in:
@@ -8,12 +8,12 @@ import time
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
FAN_PIN = getenv(RPI_FAN_PIN, 21) # BCM pin used to drive transistor's base
|
FAN_PIN = getenv("RPI_FAN_PIN", 21) # BCM pin used to drive transistor's base
|
||||||
WAIT_TIME = getenv(RPI_FAN_WAITTIME, 5) # [s] Time to wait between each refresh
|
WAIT_TIME = getenv("RPI_FAN_WAITTIME", 5) # [s] Time to wait between each refresh
|
||||||
FAN_MIN = getenv(RPI_FAN_MIN, 60) # [%] Fan minimum speed.
|
FAN_MIN = getenv("RPI_FAN_MIN", 60) # [%] Fan minimum speed.
|
||||||
PWM_FREQ = getenv(RPI_FAN_PWMFREW, 50000) # [Hz] Change this value if fan has strange behavior
|
PWM_FREQ = getenv("RPI_FAN_PWMFREQ", 50000) # [Hz] Change this value if fan has strange behavior
|
||||||
# Fan speed will change only of the difference of temperature is higher than hysteresis
|
# Fan speed will change only of the difference of temperature is higher than hysteresis
|
||||||
hyst = getenv(RPI_FAN_HYST, 5)
|
hyst = getenv("RPI_FAN_HYST", 5)
|
||||||
|
|
||||||
# Configurable temperature and fan speed steps
|
# Configurable temperature and fan speed steps
|
||||||
tempSteps = [50, 55, 57, 60, 68, 70] # [°C]
|
tempSteps = [50, 55, 57, 60, 68, 70] # [°C]
|
||||||
|
|||||||
Reference in New Issue
Block a user