Scenes & schedules

Apply a scene

POST/api/scenes/{id}/apply
Guest area “scenes”. Open unless a PIN lock is set and guests aren't allowed this area (settings.guest.scenes); then it needs an unlock token.

Applies the scene and turns the lights on. Answers the show.

Path parameters

idstringrequired

A scene id, for example party.

Responses

200OKapplication/json
powerboolean

The lights are on.

modestring

auto picks effects from the music; manual keeps effect.

One of "auto" "manual"
effectstring

The effect shown in manual mode.

stylestring

auto or a style id (party, chill, …).

palettestring

auto or a palette id (sunset, ocean, …).

everyBeatsinteger

Automatic mode changes effect at most every this many beats, 1 to 64.

1 to 64
speednumber

0.1 to 4.

0.1 to 4
paramsmap of object

Per-effect settings, by effect id.

layerobject | null
403Locked, or not allowed.application/json
errorstringrequired

What went wrong, in a sentence for people.

404No such id.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl -X POST 'http://localhost:8080/api/scenes/party/apply'
Response
{
  "power": true,
  "mode": "auto",
  "effect": "shock",
  "style": "auto",
  "palette": "auto",
  "everyBeats": 8,
  "speed": 1,
  "params": {},
  "layer": null
}
Edit on GitHub