State
Get the activity log
GET
/api/logOpen. Open to everyone who can reach Tempolight.
The last 100 activity messages.
Responses
200OKapplication/json
object[]
tnumberlevelstringOne of
"info" "warn" "error"msgstringRequest
curl 'http://localhost:8080/api/log'const res = await fetch("http://localhost:8080/api/log");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/log",
)
print(res.json())Response
[
{
"t": 1762200000000,
"level": "info",
"msg": "Scene: Party mode"
}
]