You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Syfaro 91f2de11a6 Make spacing more consistent. 10 months ago
README.md Fix README.md formatting. 10 months ago
requirements.txt Initial commit. 10 months ago
rgbd-web.py Make spacing more consistent. 10 months ago

README.md

RGBd-web

Web API for RGBD.

Configuration

Environment variables that should be set:

  • RGBD_AUTH_ENABLED - Set to a truthy value to enable authentication
  • RGBD_AUTH_TOKEN - Token that must be present to authorize a request

Requests are authenticated by checking the Authorization header against the token provided in the configuration.

Usage

POST /brightness

Set brightness of strip.

{
    "brightness": 255
}

POST /pixel

Set single pixel color.

{
    "zone": "name",
    "pos": 0,
    "color": "#ff00ff"
}

POST /reload

Reloads configuration.

POST /deliver

Sends arbitrary data to zone.

{
    "zone": "name",
    "deliver": {
        "your": "data"
    }
}