Exemple #1
0
def command(msg):
    app.data.logger.resetIdler()
    retval = app.data.actions.processAction(msg)
    if retval == "Shutdown":
        print("Shutting Down")
        socketio.stop()
        print("Shutdown")
Exemple #2
0
def command(msg):
    app.data.logger.resetIdler()
    retval = app.data.actions.processAction(msg)
    if retval == "Shutdown":
        print("Shutting Down")
        socketio.stop()
        print("Shutdown")
    if (retval == "TurnOffRPI"):
        print("Turning off RPI")
        os.system('sudo poweroff')
Exemple #3
0
def shutdown_server():
    spotify.logout()
    socketio.stop()