Public Access
22 lines
1.1 KiB
C
22 lines
1.1 KiB
C
#pragma once
|
|||
|
|
|
||
|
|
// Web UI of the clock firmware on port 80 (http://<ESP32 IP>/): live view of the display,
|
||
|
|
// choosing the page, bitmaps (upload, draw, store), live mode, settings and Home
|
||
|
|
// Assistant. The page itself is in web/web_page.h.
|
||
|
|
//
|
||
|
|
// JSON API (bitmaps are 418 hex digits, see logic/bitmap_format.h):
|
||
|
|
// GET /api/status time, WiFi, firmware, Home Assistant, storage
|
||
|
|
// GET /api/screen what the dots show now {on, live, data}
|
||
|
|
// GET /api/bitmaps all bitmaps with data {storage, bitmaps:[{name, builtin, data}]}
|
||
|
|
// GET /api/bitmap?name= one bitmap {name, data}
|
||
|
|
// POST /api/bitmap store {name, data}
|
||
|
|
// POST /api/bitmap/delete {name}
|
||
|
|
// POST /api/page {page: "clock" or a bitmap name}
|
||
|
|
// POST /api/live show now {data}
|
||
|
|
// POST /api/live/stop
|
||
|
|
// GET /api/settings (the MQTT password is never sent, only password_set)
|
||
|
|
// POST /api/settings changed fields; {settings, restart}
|
||
|
|
// POST /api/restart
|
||
|
|
// POST /api/recovery
|
||
|
|
void webUiBegin();
|
||
|
|
void webUiLoop();
|