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(); -} -); +});