From f84997128c2738852c7a19936459ac039280e31d Mon Sep 17 00:00:00 2001 From: ohwenyi Date: Tue, 31 Mar 2026 23:58:12 +1100 Subject: [PATCH 1/2] Connect sensor dashboard to live MQTT payload --- .../HMI/ui/public/admin/sensor-health.html | 204 +++++----- .../ui/public/admin/sensor_health/script.js | 253 +++++++------ src/Components/HMI/ui/routes/map.routes.js | 354 ++++++++++++------ 3 files changed, 487 insertions(+), 324 deletions(-) diff --git a/src/Components/HMI/ui/public/admin/sensor-health.html b/src/Components/HMI/ui/public/admin/sensor-health.html index a98f161eb..8fdc55cd4 100644 --- a/src/Components/HMI/ui/public/admin/sensor-health.html +++ b/src/Components/HMI/ui/public/admin/sensor-health.html @@ -22,138 +22,122 @@
- +
-
+
- -
-

Project echo

-

wildlife sound monitoring & sensor management

- -
- - -
-
- - - - -
-
-

ACTIVE PROJECTS

-

7

-
- -
-

REGISTERED ECOLOGISTS

-

69

-
- -
-

SENSORS DEPLOYED

-

420

-
-
- - - - -
-

Active Projects

-

Overview of ongoing conservation deployments

- -
- -
-

Rainforest A

-

- Amazon Basin — Zone A1
- 32 active sensors -

- ACTIVE + +
+
+

SENSOR MONITORING

+

Live

- -
-

Savannah Trial

-

- Serengeti — West Ridge
- 18 active sensors -

- ACTIVE + +
+

DATA SOURCE

+

MQTT

- -
-

Wetlands 2025

-

- New Plymouth — Zone Delta
- 12 sensors in queue -

- PLANNING + +
+

AUTO REFRESH

+

15s

+
-
-
- - - - - - -
-
-
- + +
+

Sensor Overview

+

+ This table displays the latest live sensor information received from the MQTT broker. +

+ +
+
+ + +
+ +
+
+ + + + + + + + + + + + + + + + + + +
Sensor IDStatusCPURAMDiskUptimeGPSLast Audio
Loading sensor data...
+
+
+ +
+

Live Data Notes

+

+ The current dashboard is connected to real-time MQTT-fed sensor data supplied by the IoT team. +

+ +
+
+

Current Available Fields

+

+ The live payload currently includes CPU usage, RAM usage, disk usage, uptime, GPS coordinates, and the most recent saved audio file. +

+
+ +
+

Future Extensions

+

+ Additional sensor fields such as ambient light, temperature, battery, connectivity, or other health indicators can be added later as the IoT pipeline expands. +

+
+
+
+
+
+ + + + +