serve_ui

Run the board’s web interface on the PC, against Home Assistant.

uv run tools/serve_ui.py [–port 8080] [–tiles /tmp/tiles.json]

Uses the same handlers and page as the board; saved tiles go to the given file instead of the board’s flash. Open http://localhost:8080/.

Attributes

Functions

http_post(url, headers, payload)

Urllib implementation of the http_post HomeAssistantSource expects.

main()

Run the command line tool.

Module Contents

serve_ui.ROOT
serve_ui.http_post(url, headers, payload)

Urllib implementation of the http_post HomeAssistantSource expects.

serve_ui.main()

Run the command line tool.