Ejemplo n.º 1
0
    render = web.template.render("/var/www/templates/")

    app = web.application(urls, globals()) 
    
    GPIO.setmode(GPIO.BOARD)

    
    hlt_param = Value(param)
    mlt_param = Value(param)
    kettle_param = Value(param)

    if hlt_enabled == 1:
              
        hlt_param.gpio = hlt_gpio
        hlt_param.probe = hlt_probe
        hlt_param.name = "hlt"
    else:
        hlt_param.probe = 0
        hlt_param.gpio = -1
        

    if mlt_enabled == 1:
        mlt_param.gpio = mlt_gpio
        mlt_param.probe = mlt_probe
        mlt_param.name = "mlt"
    else:
        mlt_param.probe = 0
        mlt_param.gpio = -1

    if kettle_enabled == 1: