Fix GET /api/color return
This commit is contained in:
@@ -234,8 +234,9 @@ async def getBlink(request):
|
||||
|
||||
@app.get('/api/color')
|
||||
async def getColor(request):
|
||||
r, g, b = neoPixelStrip.__getitem__(0)
|
||||
return {'color': {'r': r, 'g': g, 'b': b}}
|
||||
# r, g, b = neoPixelStrip.__getitem__(0)
|
||||
r, g, b = blColor
|
||||
return {'r': r, 'g': g, 'b': b, 'brightness': blBrightness}
|
||||
|
||||
@app.get('/api/status')
|
||||
async def getStatus(request):
|
||||
|
||||
Reference in New Issue
Block a user