示例#1
0
def shutdown():
    dict = getPlugInfo()
    shutdownAll(dict)
    return redirect(url_for('home'))
示例#2
0
def activate():
    dict = getPlugInfo()
    activateAll(dict)
    return redirect(url_for('home'))
示例#3
0
def devices(input):
    return render_template('devices.html',
                           content=getPlugInfo(),
                           alias=[input])
示例#4
0
def switch(input):
    dict = getPlugInfo()
    switchState(input, dict)
    return redirect(url_for('home'))
示例#5
0
def home():
    dict = getPlugInfo()
    return render_template('index.html', content=dict)