Syfaro 91f2de11a6 Make spacing more consistent. 8 months ago
README.md Fix README.md formatting. 8 months ago
requirements.txt Initial commit. 8 months ago
rgbd-web.py Make spacing more consistent. 8 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"
    }
}