def command(msg): app.data.logger.resetIdler() retval = app.data.actions.processAction(msg) if retval == "Shutdown": print("Shutting Down") socketio.stop() print("Shutdown")
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')
def shutdown_server(): spotify.logout() socketio.stop()