Index: tests/dg_heat_disinfect_test.py =================================================================== diff -u -r363867c876456821000c189f86fbb55b4d583c50 -rcc425128f399de5414b0aee1942986653ca42c92 --- tests/dg_heat_disinfect_test.py (.../dg_heat_disinfect_test.py) (revision 363867c876456821000c189f86fbb55b4d583c50) +++ tests/dg_heat_disinfect_test.py (.../dg_heat_disinfect_test.py) (revision cc425128f399de5414b0aee1942986653ca42c92) @@ -8,20 +8,25 @@ from dialin.dg.drain_pump import DrainPumpStates from dialin.dg.thermistors import Thermistors from dialin.dg.uv_reactors import ReactorsStates +from dialin.dg.thermistors import ThermistorsNames from time import sleep - if __name__ == "__main__": dg = DG(log_level='DEBUG') dg.cmd_log_in_to_dg() - dg.uv_reactors.cmd_start_stop_inlet_uv_reactor(state=ReactorsStates.UV_REACTOR_STATE_ON.name) + #dg.uv_reactors.cmd_start_stop_inlet_uv_reactor(state=ReactorsStates.UV_REACTOR_STATE_ON.name) + #sleep(1) + dg.thermistors.cmd_thermistors_value_override(52.2, ThermistorsNames.THERMISTOR_ONBOARD_NTC.value, reset=1) + sleep(2) while True: - sleep(1) - print(dg.thermistors.onboard_temperature) + print(dg.thermistors.thermistors[ThermistorsNames.THERMISTOR_ONBOARD_NTC.name], + dg.fans.target_duty_cycle, dg.fans.inlet_1_rpm, dg.fans.inlet_2_rpm) + sleep(0.5) + f = open("Heat_disinfection.txt", "w") #dg.drain_pump.cmd_drain_pump_speed_set_point_override(2800)