feat: add waveform viewer endpoint and enhance UI with new tabs for history, units, monitor log, and sessions

This commit is contained in:
2026-04-13 22:34:28 -04:00
parent 27db663579
commit e8bef1ac7c
3 changed files with 570 additions and 3 deletions
+6
View File
@@ -402,6 +402,12 @@ def webapp():
return str(Path(__file__).parent / "sfm_webapp.html")
@app.get("/waveform", response_class=FileResponse)
def waveform_viewer():
"""Serve the standalone waveform viewer."""
return str(Path(__file__).parent / "waveform_viewer.html")
@app.get("/device/info")
def device_info(
port: Optional[str] = Query(None, description="Serial port (e.g. COM5, /dev/ttyUSB0)"),