Wi-Fi
Get Wi-Fi setup
GET
/api/wifiOpen. Open to everyone who can reach Tempolight.
{available: false} except on the Raspberry Pi image, where it says what the Wi-Fi setup service is doing.
Responses
200OKapplication/json
availablebooleanrequiredmodestringOne of
"watch" "hotspot" "connecting" "retry"ssidstring | nullhotspotanyThe setup hotspot.
lastResultanyHow the last connection went.
Request
curl 'http://localhost:8080/api/wifi'const res = await fetch("http://localhost:8080/api/wifi");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/wifi",
)
print(res.json())Response
{
"available": false
}