Devices & room

Get the room

GET/api/room
Open. Open to everyone who can reach Tempolight.

The room's name, shapes and zones.

Responses

200OKapplication/json
namestring
shapesobject[]
zonesobject[]
Request
curl 'http://localhost:8080/api/room'
Response
{
  "name": "My room",
  "shapes": [
    {
      "type": "line",
      "name": "Desk strip",
      "count": 120,
      "dev": "d4k2x9",
      "rot": 0,
      "start": 0,
      "rev": false,
      "from": null,
      "zone": null,
      "pts": [
        [
          1.5,
          6
        ],
        [
          14.5,
          6
        ]
      ]
    }
  ],
  "zones": []
}
Edit on GitHub