def run(): target = gettargettemperature() temp = ds18b20.readtemperature() history.log(temp, target, temp < target) if target > 0: hal.initialize() hal.commandheater(heatersockets(), temp < target) print("engine run") return True
def get(self): return round(ds18b20.readtemperature(), 1)