config

command
v0.0.0-...-04a8046 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 8 Imported by: 0

README

Config example

This example shows how to configure the Nanoleaf; creating or deleting API keys and retrieving state. An example way to run this command would be to execute:

$ go run main.go --host=<IP of your Nanoleaf> --apiKey=<API key of the Nanoleaf>

It is possible to use the --discovery=true argument to this tool in order to discover where the panel is located via UPnP. The type to look for is nanoleaf_aurora, and the location field will have both the IP address and port to supply for subsequent operations.

Creating an API key will be allowed by the panel by first pressing and holding the Power button for ~5 seconds - the 2 status LEDs on the controller will begin flashing in an alternating pattern, at this point the CreateAPIKey call will succeed.

If necessary, it is possible to get both the IP by following the documentation here.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL