aurora

command
v0.0.0-...-2387267 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 3 Imported by: 0

README

modules.aurora

Available on port 4004 This controller can communicate with Nanoleaf Aurora devices

Usage

Lookup device details

Definition

GET /devices/<id>

Response

  • 404: device not found
  • 200: success
{
    "id": "lightpanels",
    "name": "Desk Lamp",
    "type": "lamp-color",
    "controller": "modules.aurora",
    "state": {
        "brightness": {
            "value": 50,
            "max": 100,
            "min": 0
        },
        "color_mode": "hs",
        "temperature": {
            "value": 4000,
            "max": 6500,
            "min": 1200
        },
        "hue": {
            "value": 123,
            "max": 360,
            "min": 0
        },
        "power": true,
        "saturation": {
            "value": 100,
            "max": 100,
            "min": 0
        }
    }
}
Lookup device details

Definition

PATCH /devices/<id>

Arguments

  • "power":boolean the power state of the device
  • "brightness":int the brightness of the device
  • "saturation":int the saturation of the device
  • "temperature":int the color temperature of the device
  • "hue":int the hue of the device

Response

  • 404: device not found
  • 204: success

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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