Your own effects
List your effects
GET
/api/custom-effectsOpen. Open to everyone who can reach Tempolight.
The effects you made.
Responses
200OKapplication/json
object[]
idstringrequiredu-…
namestringUp to 40 characters
patternstringrequiredOne of
"wave" "chase" "pulse" "sparkle" "fill" "breathe" "gradient"axisstringOne of
"along" "x" "y" "around" "centre"Default
"along"drivestringWhat moves it.
One of
"beat" "kick" "bass" "loud" "time"Default
"beat"tagstringOne of
"calm" "build" "drop" "home"Default
"drop"colors"palette" | string[]palette, or two colours.
speednumberDefault
10.1 to 8widthnumberDefault
0.150.01 to 1cyclesnumberDefault
10.25 to 8bgnumberBackground glow.
Default
0.050 to 0.5Request
curl 'http://localhost:8080/api/custom-effects'const res = await fetch("http://localhost:8080/api/custom-effects");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/custom-effects",
)
print(res.json())Response
[
{
"id": "u-k3j9q2",
"name": "Pink chase",
"tag": "drop",
"pattern": "chase",
"axis": "along",
"drive": "kick",
"colors": [
"#ff0066",
"#00ccff"
],
"speed": 2,
"width": 0.1,
"bg": 0.05,
"cycles": 1
}
]