diff --git a/main.py b/main.py index f402d39..4a6eace 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,8 @@ import time import os from datetime import datetime + +from requests import request try: from rpi_ws281x import * import RPi.GPIO as GPIO @@ -115,7 +117,7 @@ if __name__ == '__main__': @app.route('/mode', methods=['GET']) def mode(): - args = request.args + args = request.args() mode = args.get('mode') r = args.get('r') g = args.get('g')