How to access to Nano leaf panels through HTTP ?

Started by aznelite89
0cf42d02f6a7d36f678efd111193855e?s=128&d=mm

aznelite89

I had checked the documentation but unable to find a way to access to Nanoleaf, what I got is the JSON structure on documentation , anyone could point out the way for access to Nanoleaf light panels , eg: 192.188.x.x/…/api/v1/… is there any standard link ?

9163947fc9f14ca9dfc3145e9d4a4440?s=128&d=mm

csuchland

You can access the API using anything that can make HTTP calls. A great way to get started is using a tool like Postman (https://www.getpostman.com/).

The first thing you need to do is generate an authorization token (section 6 of the Open API documentation) by holding the on-off button for 5-7 seconds, and then sending a POST request like this (substituting the IP address for your Aurora controller):

http:192.188.x.x/api/vi/new

The result returned will be an 32-character authorization token that you will use in all of your subsequent calls. For example, to retrieve the panel layout, you'd send a HTTP GET request like this (inserting your authorization token):

 http:192.188.x.x/api/v1/<auth_token>/panelLayout/layout

I hope this helps you get started.