From 920a8391979db7dc2c00435147d0f7469800418c Mon Sep 17 00:00:00 2001 From: grigo Date: Wed, 17 Jun 2026 11:12:33 +0300 Subject: [PATCH] added gistogramm --- server/fastapi_app.py | 2 +- server/static/index.html | 213 ++++++++++++++++++++++++++++++++++- server/static/quality-viz.js | 182 ++++++++++++++++++++++++++++++ 3 files changed, 390 insertions(+), 7 deletions(-) create mode 100644 server/static/quality-viz.js diff --git a/server/fastapi_app.py b/server/fastapi_app.py index 71cb91e..66060de 100644 --- a/server/fastapi_app.py +++ b/server/fastapi_app.py @@ -379,7 +379,7 @@ def health(): return { "ok": status["db_ok"], "ts": time.time(), - "api_build": "2026-06-16g", + "api_build": "2026-06-16h", **status, **elevation_status(), } diff --git a/server/static/index.html b/server/static/index.html index 887da72..b16ac79 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -45,7 +45,22 @@ } #elevationStatus { font-size: 0.7rem; color: #aaa; font-weight: 400; } #elevationCanvas { width: 100%; height: 130px; display: block; background: #0a0a14; border-radius: 4px; } + #elevationCanvas.elev-probe { cursor: crosshair; } .elev-legend { font-size: 0.7rem; } + #qualityVizPanel { + display: none; margin-top: 8px; gap: 8px; + grid-template-columns: 140px 1fr; align-items: start; + } + #qualityVizPanel.visible { display: grid; } + @media (max-width: 700px) { + #qualityVizPanel.visible { grid-template-columns: 1fr; } + } + .quality-viz-box { + background: #0f3460; border: 1px solid #444; border-radius: 6px; padding: 6px; + } + .quality-viz-title { font-size: 0.7rem; color: #aaa; margin-bottom: 4px; } + #qualityRoseCanvas { width: 100%; height: 140px; display: block; background: #0a0a14; border-radius: 4px; } + #qualityDistCanvas { width: 100%; height: 140px; display: block; background: #0a0a14; border-radius: 4px; } #timelineStatsPanel { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid #333; } @@ -320,6 +335,16 @@ +
+
+
Качество по направлению TX→RX
+ +
+
+
RX Quality vs расстояние
+ +
+
@@ -332,6 +357,7 @@ +