State
Health check
GET
/api/healthOpen. Open to everyone who can reach Tempolight.
A small answer for monitoring: the version, seconds running, frames a second and LEDs.
Responses
200OKapplication/json
okbooleanrequiredversionstringuptimenumberfpsintegerledsintegerRequest
curl 'http://localhost:8080/api/health'const res = await fetch("http://localhost:8080/api/health");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/health",
)
print(res.json())Response
{
"ok": true,
"version": "0.3.0",
"uptime": 3600,
"fps": 60,
"leds": 240
}