Fix GET /api/color return (#3)
Reviewed-on: #3
This commit was merged in pull request #3.
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