Scenes & schedules
List scenes
GET
/api/scenesOpen. Open to everyone who can reach Tempolight.
Your scenes. New installs start with party, chill, movie, focus and relax.
Responses
200OKapplication/json
object[]
idstringrequirednamestringrequiredshowobjectThe show fields this scene sets (see Show).
brightnessnumber0 to 1Request
curl 'http://localhost:8080/api/scenes'const res = await fetch("http://localhost:8080/api/scenes");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/scenes",
)
print(res.json())Response
[
{
"id": "party",
"name": "Party mode",
"show": {
"mode": "auto",
"style": "party",
"palette": "auto"
},
"brightness": 1
}
]