Example #1
0
def setFurnace():
    temp, humidity = tempControl.getIndoor()
    target = tempControl.getTarget()
    if target > temp:
        On = True
    else:
        On = False
        
    callRelay(3, On)
Example #2
0
def getIndoor(lcd):
    global topUIidx
    temp, humidity = tempControl.getIndoor()
    target = tempControl.getTarget()
    if topUIidx == 2:
        lcd.clear()
        lcd.message("Inside temp: %iF\nSet to:      %iF" % (int(round(temp,0)), target))  
        
        update = threading.Timer(300, getIndoor, (lcd,))
        update.start()