Пример #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)