Hearing
Get the hearing panel
GET
/api/hearingOpen. Open to everyone who can reach Tempolight.
The platform, the recommended way to hear music, the checklist, server capture and the sound output.
Responses
200OKapplication/json
platformstringmethodstringproblemany | nullrecommendedstringOne of
"computer" "mic" "pi"computerobjectpiobjectcaptureobjectServer capture.
outputanyThe sound output playing now.
Request
curl 'http://localhost:8080/api/hearing'const res = await fetch("http://localhost:8080/api/hearing");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/hearing",
)
print(res.json())Response
{
"platform": "string",
"method": "string",
"problem": null,
"recommended": "computer",
"computer": {
"kind": "string",
"source": "string",
"why": "string",
"on": true,
"running": true,
"steps": [
{
"id": "string",
"label": "string",
"state": "ok"
}
]
},
"pi": {
"available": true,
"source": "string",
"label": "string",
"on": true
},
"capture": {},
"output": null
}