From bb5dba23d0ac0d80514a515cdeface2858b95741 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Fri, 12 Sep 2025 12:15:10 -0700 Subject: [PATCH] New charts added to stats as we have access not to nodes via API --- meshview/templates/stats.html | 513 ++++++++++++++++++---------------- 1 file changed, 279 insertions(+), 234 deletions(-) diff --git a/meshview/templates/stats.html b/meshview/templates/stats.html index d544073..b246d11 100644 --- a/meshview/templates/stats.html +++ b/meshview/templates/stats.html @@ -1,330 +1,375 @@ {% extends "base.html" %} {% block css %} - #packet_details { - height: 95vh; - overflow: auto; - } +#packet_details { + height: 95vh; + overflow: auto; +} - .main-container, .container { - max-width: 900px; - margin: 0 auto; - text-align: center; - } +.main-container, .container { + max-width: 900px; + margin: 0 auto; + text-align: center; +} - .card-section { - background-color: #272b2f; - border: 1px solid #474b4e; - padding: 15px 20px; - margin-bottom: 20px; - border-radius: 10px; - transition: background-color 0.2s ease; - } +.card-section { + background-color: #272b2f; + border: 1px solid #474b4e; + padding: 15px 20px; + margin-bottom: 20px; + border-radius: 10px; + transition: background-color 0.2s ease; +} - .card-section:hover { - background-color: #2f3338; - } +.card-section:hover { + background-color: #2f3338; +} - .section-header { - font-size: 16px; - margin: 0 0 6px 0; - font-weight: 500; - color: #fff; - } +.section-header { + font-size: 16px; + margin: 0 0 6px 0; + font-weight: 500; + color: #fff; +} - .main-header { - font-size: 22px; - margin-bottom: 20px; - font-weight: 600; - } +.main-header { + font-size: 22px; + margin-bottom: 20px; + font-weight: 600; +} - .chart { - height: 400px; - margin-top: 10px; - } +.chart { + height: 400px; + margin-top: 10px; +} - .total-count { - color: #ccc; - font-size: 14px; - margin-bottom: 8px; - } +.total-count { + color: #ccc; + font-size: 14px; + margin-bottom: 8px; +} + +.expand-btn, .export-btn { + margin-bottom: 8px; + padding: 4px 8px; + cursor: pointer; + background-color: #444; + color: #fff; + border: none; + border-radius: 4px; + font-size: 12px; +} + +.expand-btn:hover { background-color: #666; } +.export-btn:hover { background-color: #777; } {% endblock %} {% block head %} - + {% endblock %} {% block body %}

Mesh Statistics - Hourly Packet Counts (Last 24 Hours)

- + {# Daily Charts #}

Packets per Day - All Ports (Last 14 Days)

Total: 0
+ +
-

Packets per Day - Text Messages (Port 1, Last 14 Days)

Total: 0
+ +
- + {# Hourly Charts #}

Packets per Hour - All Ports

Total: 0
+ +
-

Packets per Hour - Text Messages (Port 1)

Total: 0
+ +

Packets per Hour - Position (Port 3)

Total: 0
+ +

Packets per Hour - Node Info (Port 4)

Total: 0
+ +

Packets per Hour - Telemetry (Port 67)

Total: 0
+ +

Packets per Hour - Traceroute (Port 70)

Total: 0
+ +

Packets per Hour - Neighbor Info (Port 71)

Total: 0
+ +
- + {# Node breakdown charts #}

Hardware Breakdown

+ +
-

Role Breakdown

+ +
-

Channel Breakdown

+ +
+{# Modal for expanded charts #} + + {% endblock %}