From c9c2a3d08cfcd10d513edf3f6d8c0fd6e01be2f4 Mon Sep 17 00:00:00 2001 From: "J.P. Stewart" Date: Sun, 5 Oct 2025 13:37:55 -0700 Subject: [PATCH] Added index.html handler to support connection from MeshSense App More information about meshsense here: https://affirmatech.com/meshsense --- main.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/main.py b/main.py index a00eb19..448e033 100644 --- a/main.py +++ b/main.py @@ -92,3 +92,19 @@ async def fromradio(all: TFStr="false"): elif len(bufs) > 0: content = bufs.pop(0) return Response(content=content, media_type="application/x-protobuf") + +@app.get("/index.html") +async def index(): + html_content = """ + + + + Meshtastic HTTP Proxy + + +

Welcome to the Meshtastic HTTP Proxy

+

More information is available here: https://github.com/ianmcorvidae/meshtastic-http-proxy

+ + + """ + return HTMLResponse(content=html_content, status_code=200)