Skip to content

Commit

Permalink
style: Now logs settings at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Dec 22, 2023
1 parent 8753f49 commit d1bc358
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,21 @@ def calculate_temperature_band( # pylint: disable=too-many-branches,too-many-st
return new_band


# At startup always start the fan for the highest band
logging.info("Running...")

logging.info("MEASUREMENT_INTERVAL_S=%s seconds", MEASUREMENT_INTERVAL_S)
logging.info("HYSTERESIS=%s%sC", HYSTERESIS, DEGREE_SIGN)
logging.info("TEMPERATURE_POINT_1=%s%sC", TEMPERATURE_POINT_1, DEGREE_SIGN)
logging.info("TEMPERATURE_POINT_2=%s%sC", TEMPERATURE_POINT_2, DEGREE_SIGN)
logging.info("TEMPERATURE_POINT_3=%s%sC", TEMPERATURE_POINT_3, DEGREE_SIGN)
logging.info("TEMPERATURE_POINT_4=%s%sC", TEMPERATURE_POINT_4, DEGREE_SIGN)
logging.info("BAND_0_SPEED=%s%%", BAND_SPEED[0])
logging.info("BAND_1_SPEED=%s%%", BAND_SPEED[1])
logging.info("BAND_2_SPEED=%s%%", BAND_SPEED[2])
logging.info("BAND_3_SPEED=%s%%", BAND_SPEED[3])
logging.info("BAND_4_SPEED=%s%%", BAND_SPEED[4])

# At startup always start the fan for the highest band
set_fan_speed(HIGHEST_BAND)

# Now periodically monitor the temperature
Expand Down

0 comments on commit d1bc358

Please sign in to comment.