From 924d223866da8fb1db50fbd81cf3490564a30cd0 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Sat, 3 Jan 2026 18:13:57 -0800 Subject: [PATCH] Modify node.html to add statistics --- meshview/lang/en.json | 6 +- meshview/lang/es.json | 6 +- meshview/templates/node.html | 185 ++++++++++++++++++++++++++++------- 3 files changed, 159 insertions(+), 38 deletions(-) diff --git a/meshview/lang/en.json b/meshview/lang/en.json index b063000..0c0c2ac 100644 --- a/meshview/lang/en.json +++ b/meshview/lang/en.json @@ -179,7 +179,11 @@ "to": "To", "port": "Port", "direct_to_mqtt": "Direct to MQTT", - "all_broadcast": "All" + "all_broadcast": "All", + "statistics": "Statistics", + "last_24h": "24h", + "packets_sent": "Packets sent", + "times_seen": "Times seen" }, "packet": { "loading": "Loading packet information...", diff --git a/meshview/lang/es.json b/meshview/lang/es.json index 0469c69..e6aee9f 100644 --- a/meshview/lang/es.json +++ b/meshview/lang/es.json @@ -164,7 +164,11 @@ "to": "A", "port": "Puerto", "direct_to_mqtt": "Directo a MQTT", - "all_broadcast": "Todos" + "all_broadcast": "Todos", + "statistics": "Estadísticas", + "last_24h": "24h", + "packets_sent": "Paquetes enviados", + "times_seen": "Veces visto" }, "packet": { diff --git a/meshview/templates/node.html b/meshview/templates/node.html index ed95e97..7947cae 100644 --- a/meshview/templates/node.html +++ b/meshview/templates/node.html @@ -159,9 +159,13 @@
Last Update:
Statistics: - +
+ @@ -216,6 +220,19 @@
+ +
+
+ 📊 Packets per Day (Last 7 Days) +
+ + +
+
+
+
+ + @@ -246,6 +263,42 @@