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