Example #1
0
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
Example #2
0
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
Example #3
0
 def get(self):
     return round(ds18b20.readtemperature(), 1)