Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API invalid? #15

Open
btuysser opened this issue Jan 26, 2019 · 2 comments
Open

API invalid? #15

btuysser opened this issue Jan 26, 2019 · 2 comments

Comments

@btuysser
Copy link

Hi, I'm looking at http://forum.nanoleaf.me/docs/openapi and according to 5.3.2 Brightness

Endpoint | /api/v1/<auth_token>/state/brightness
Request | GET
Request Body | none
Response | 200 OK
Response Body | {"value" : 100, "max" : 100, "min" : 0}

However the code assumes that the endpoint is /api/v1/<auth_token>/state/brightness/value and returns the actual value instead of the json response body.

Do you have any plans to update nanoleaf to conform with the openapi?

@Ennodia
Copy link

Ennodia commented Feb 15, 2019

I'm also wondering :)

@Oro
Copy link

Oro commented Feb 28, 2019

According to the dev forums at nanoleaf this is a bug and fixed in the next canvas release. Unfortunately this wrapper also uses a no-longer documented on/off payload which will not be fixed in a firmware release ( see https://forum.nanoleaf.me/forum/aurora-open-api/difference-between-canvas-and-aurora-api , needs a nanoleaf dev login )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants