Ga naar inhoud

Lay-outs

Verlichtingsresources werken met het canvas en de momenteel afgespeelde effecten. Hier kunt u het huidige effect bekijken, het wijzigen, de preset ervan wijzigen of door alle momenteel geïnstalleerde effecten van de gebruiker bladeren.

MethodeEindpunt
GETscenes/current_layout
PATCHscenes/current_layout
GETscenes/layouts

Haalt informatie op over de huidige lay-out.

Terminal window
curl http://localhost:16038/api/v1/scenes/current_layout
{
"api_version": "1.0",
"data": {
"current_layout": {
"id": "My Layout 1",
"type": "layout"
}
},
"id": 10,
"method": "/api/v1/scenes/current_layout",
"params": {},
"status": "ok"
}

Stelt de momenteel actieve lay-out in.

Terminal window
curl -X PATCH -d "{\"layout\":\"My Layout 1\"}" http://localhost:16038/api/v1/scenes/current_layout
{
"api_version": "1.0",
"data": {
"current_layout": {
"id": "My Layout 1",
"type": "layout"
}
},
"id": 3,
"method": "/api/v1/scenes/current_layout",
"params": {
"body": {
"layout": "My Layout 1"
}
},
"status": "ok"
}

Haalt een lijst op van alle beschikbare lay-outs van de gebruiker.

Terminal window
curl http://localhost:16038/api/v1/scenes/layouts
{
"api_version": "1.0",
"data": {
"items": [
{
"id": "My Layout 1",
"type": "layout"
},
{
"id": "My Layout 2",
"type": "layout"
}
],
"type": "layouts"
},
"id": 11,
"method": "/api/v1/scenes/layouts",
"params": {},
"status": "ok"
}