remived gui

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-06-28 18:07:59 +02:00
parent c46ff17401
commit 0d9e360468
1 changed files with 6 additions and 3 deletions

View File

@ -58,7 +58,10 @@ def setColor(strip, color, wait_ms=10):
if __name__ == '__main__':
app = Flask(__name__)
@app.route('/')
#api
@app.route('/api/')
def index():
return '''
<!DOCTYPE html>
@ -106,7 +109,7 @@ if __name__ == '__main__':
</html>
'''
@app.route('/mode', methods=['GET'])
@app.route('/api/mode', methods=['GET'])
def mode():
global mode
global r
@ -133,7 +136,7 @@ if __name__ == '__main__':
mode = 1
return 'Color: '+str(r)+','+str(g)+','+str(b)
@app.route('/power', methods=['GET'])
@app.route('/api/power', methods=['GET'])
def power():
global power
power = request.args.get('power')