コード例 #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)