Files
Flipdot-display/src/esp32/web/web_ui.h
T

22 lines
1.1 KiB
C
Raw Normal View History

2026-10-13 01:52:34 +02:00
#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();