State
List effects
GET
/api/effectsOpen. Open to everyone who can reach Tempolight.
Every effect, built-in and your own.
Responses
200OKapplication/json
object[]
idstringrequirednamestringrequiredtagstringWhen automatic mode uses it.
One of
"calm" "build" "drop" "home"custombooleanOne of your own effects.
Request
curl 'http://localhost:8080/api/effects'const res = await fetch("http://localhost:8080/api/effects");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/effects",
)
print(res.json())Response
[
{
"id": "shock",
"name": "Shock",
"tag": "drop"
},
{
"id": "u-k3j9q2",
"name": "Pink chase",
"tag": "drop",
"custom": true
}
]