From dfb4b72056c9fe3d45661b7b60dd79a524a43519 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Wed, 21 May 2025 11:18:36 -0700 Subject: [PATCH] Modified all graphs to eliminate the errors and use eCharts --- meshview/templates/node_graphs.html | 317 +++++++++++++--------------- meshview/web.py | 120 +++++++++++ 2 files changed, 268 insertions(+), 169 deletions(-) diff --git a/meshview/templates/node_graphs.html b/meshview/templates/node_graphs.html index 2de94ed..90cbbe8 100644 --- a/meshview/templates/node_graphs.html +++ b/meshview/templates/node_graphs.html @@ -1,88 +1,38 @@ {% macro graph(name) %} - - {{ name }} graph - +
{% endmacro %} - - -
-
-
-
Battery
-
{{ graph("power") }}
-
-
-
ChUtil
-
{{ graph("chutil") }}
-
-
- -
-
-
Neighbor SNR
-
- - -
-
-
- -
- -
-
-
Temperature
-
{{ graph("temperature") }}
-
-
-
Humidity
-
{{ graph("humidity") }}
-
-
-
Pressure
-
{{ graph("pressure") }}
-
-
-
Indoor Air Quality
-
{{ graph("iaq") }}
-
-
-
Wind Speed
-
{{ graph("wind_speed") }}
-
-
-
Wind Direction
-
{{ graph("wind_direction") }}
-
-
- -
-
-
Power Metrics
-
{{ graph("power_metrics") }}
-
-
+ +
+ +
- + + + + +
+ {% for name in [ + "power", "chutil", "temperature", "humidity", "pressure", + "iaq", "wind_speed", "wind_direction", "power_metrics", "neighbors" + ] %} +
+ {{ graph(name) | safe }} +
+ {% endfor %} +
+ +