From 2e394f3d4510f691aa9c3efc92da2da5fd36ce20 Mon Sep 17 00:00:00 2001 From: sietse jonker Date: Thu, 7 Mar 2024 12:57:54 +0100 Subject: [PATCH] Update liveGraphs to include temperature, humidity, eCO2, and TVOC data --- web/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/main.js b/web/main.js index 3aeb144..7c39a74 100644 --- a/web/main.js +++ b/web/main.js @@ -187,7 +187,7 @@ function updateNodeData(node, temperature, humidity, eCO2, TVOC) { document.getElementById("TVOCStatus").textContent = "Connected"; // Update the graph - liveGraphs[node - 1].updateData(); + liveGraphs[node - 1].updateData(temperature, humidity, eCO2, TVOC); liveGraphs[node - 1].updateGraph(); } @@ -203,6 +203,5 @@ liveGraphs.push(new liveGraph(1)); // make the graphs liveGraphs.forEach((graph) => { graph.makeGraph(); -} -); +});