- {{ graph("power") }}
- {{ graph("chutil") }}
+
+ - Power
+ - {{ graph("power") }}
+
+
+ - ChUtil
+ - {{ graph("chutil") }}
+
- {{ graph("temperature") }}
- {{ graph("humidity") }}
- {{ graph("wind_speed") }}
- {{ graph("wind_direction") }}
+
+ - Temperature
+ - {{ graph("temperature") }}
+
+
+ - Humidity
+ - {{ graph("humidity") }}
+
+
+ - Pressure
+ - {{ graph("pressure") }}
+
+
+ - Indoor Air Quality
+ - {{ graph("iaq") }}
+
+
+ - Wind Speed
+ - {{ graph("wind_speed") }}
+
+
+ - Wind Direction
+ - {{ graph("wind_direction") }}
+
{{ graph("power_metrics") }}
diff --git a/meshview/templates/packet_list.html b/meshview/templates/packet_list.html
index 42d1757..f90c58f 100644
--- a/meshview/templates/packet_list.html
+++ b/meshview/templates/packet_list.html
@@ -1,4 +1,4 @@
-
+
{% for packet in packets %}
{% include 'packet.html' %}
{% else %}
diff --git a/meshview/web.py b/meshview/web.py
index 10d9862..87d31e9 100644
--- a/meshview/web.py
+++ b/meshview/web.py
@@ -654,6 +654,31 @@ async def graph_humidity(request):
],
)
+@routes.get("/graph/pressure/{node_id}")
+async def graph_pressure(request):
+ return await graph_telemetry(
+ int(request.match_info['node_id']),
+ 'environment_metrics',
+ [
+ {
+ 'label': 'barometric pressure',
+ 'fields': ['barometric_pressure'],
+ },
+ ],
+ )
+
+@routes.get("/graph/iaq/{node_id}")
+async def graph_pressure(request):
+ return await graph_telemetry(
+ int(request.match_info['node_id']),
+ 'environment_metrics',
+ [
+ {
+ 'label': 'IAQ',
+ 'fields': ['iaq'],
+ },
+ ],
+ )
@routes.get("/graph/power_metrics/{node_id}")
async def graph_power_metrics(request):
diff --git a/requirements.txt b/requirements.txt
index d27bc6a..e064e6a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -11,4 +11,3 @@ asyncpg
seaborn
pydot
plotly
-graphviz