From 167e425c8fc601861e967071a5a3f30dbffaa234 Mon Sep 17 00:00:00 2001 From: grigo Date: Tue, 23 Jun 2026 15:47:14 +0300 Subject: [PATCH] fix proxy --- server/static/index.html | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/server/static/index.html b/server/static/index.html index 76fe653..325a39d 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -313,8 +313,8 @@
surface/препятствия луч TX→RX - 60% Fresnel - 100% Fresnel + границы 60% Fresnel + границы 100% Fresnel нарушения
Нет расчёта.
@@ -2315,19 +2315,35 @@ series.push({ color: '#ffd54f', profile: apiDebugSurfaceProfile, - label: '60% Fresnel', + label: '60% Fresnel ниж.', valueKey: 'fresnel_lower_60pct_m', dash: [6, 4], lineWidth: 1.5 }); + series.push({ + color: '#ffd54f', + profile: apiDebugSurfaceProfile, + label: '60% Fresnel верх.', + valueKey: 'fresnel_upper_60pct_m', + dash: [6, 4], + lineWidth: 1.5 + }); series.push({ color: '#ba68c8', profile: apiDebugSurfaceProfile, - label: '100% Fresnel', + label: '100% Fresnel ниж.', valueKey: 'fresnel_lower_100pct_m', dash: [3, 4], lineWidth: 1.3 }); + series.push({ + color: '#ba68c8', + profile: apiDebugSurfaceProfile, + label: '100% Fresnel верх.', + valueKey: 'fresnel_upper_100pct_m', + dash: [3, 4], + lineWidth: 1.3 + }); } series.push({ color: '#00ff88', @@ -2367,6 +2383,8 @@ }).addTo(map); const surface = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'surface_m'); const path = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'path_height_m'); + const fresnelUpper60 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_upper_60pct_m'); + const fresnelUpper100 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_upper_100pct_m'); const fresnel60 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_lower_60pct_m'); const fresnel100 = profileValueAtDist(apiDebugSurfaceProfile, apiDebugCursorDist, 'fresnel_lower_100pct_m'); const clearance = path != null && surface != null ? path - surface : null; @@ -2377,8 +2395,9 @@ `${apiDebugBaseSummaryHtml}
` + `Точка на графике: ${fmtNum(apiDebugCursorDist, 0, ' m')} от TX
` + `Координаты: ${fmtNum(pt.lat, 6)}, ${fmtNum(pt.lon, 6)}
` + - `Surface: ${fmtNum(surface, 1, ' m')} · луч: ${fmtNum(path, 1, ' m')} · ` + - `нижняя 60%: ${fmtNum(fresnel60, 1, ' m')} · нижняя 100%: ${fmtNum(fresnel100, 1, ' m')}
` + + `Surface: ${fmtNum(surface, 1, ' m')} · луч: ${fmtNum(path, 1, ' m')}
` + + `60% Fresnel: ${fmtNum(fresnel60, 1, ' m')} .. ${fmtNum(fresnelUpper60, 1, ' m')} · ` + + `100%: ${fmtNum(fresnel100, 1, ' m')} .. ${fmtNum(fresnelUpper100, 1, ' m')}
` + `Clearance над surface: ${fmtNum(clearance, 1, ' m')}` ); drawApiDebugChart(); @@ -2658,6 +2677,8 @@ lon: p.lon != null ? Number(p.lon) : null, surface_m: p.surface_m != null ? Number(p.surface_m) : null, path_height_m: p.path_height_m != null ? Number(p.path_height_m) : null, + fresnel_upper_60pct_m: p.fresnel_upper_60pct_m != null ? Number(p.fresnel_upper_60pct_m) : null, + fresnel_upper_100pct_m: p.fresnel_upper_100pct_m != null ? Number(p.fresnel_upper_100pct_m) : null, fresnel_lower_60pct_m: p.fresnel_lower_60pct_m != null ? Number(p.fresnel_lower_60pct_m) : null, fresnel_lower_100pct_m: p.fresnel_lower_100pct_m != null ? Number(p.fresnel_lower_100pct_m) : null, clearance_m: p.clearance_m != null ? Number(p.clearance_m) : null,