parent
186eed295b
commit
a58565324c
4
main.py
4
main.py
|
@ -1,6 +1,8 @@
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
from requests import request
|
||||||
try:
|
try:
|
||||||
from rpi_ws281x import *
|
from rpi_ws281x import *
|
||||||
import RPi.GPIO as GPIO
|
import RPi.GPIO as GPIO
|
||||||
|
@ -115,7 +117,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
@app.route('/mode', methods=['GET'])
|
@app.route('/mode', methods=['GET'])
|
||||||
def mode():
|
def mode():
|
||||||
args = request.args
|
args = request.args()
|
||||||
mode = args.get('mode')
|
mode = args.get('mode')
|
||||||
r = args.get('r')
|
r = args.get('r')
|
||||||
g = args.get('g')
|
g = args.get('g')
|
||||||
|
|
Loading…
Reference in New Issue