Remove commented out code and update graph in main.js

This commit is contained in:
Sietse Jonker
2024-03-06 17:38:09 +01:00
parent 63be84e287
commit c14c18deb0
2 changed files with 1 additions and 33 deletions

View File

@@ -198,12 +198,9 @@ function updateNodeData(node, temperature, humidity, eCO2, TVOC) {
document.getElementById("CO2Status").textContent = "Connected";
document.getElementById("TVOCStatus").textContent = "Connected";
// Update the graph
// Update the graph`
graphNode1.updateData(temperature, humidity, eCO2, TVOC);
graphNode1.updateGraph();
graphNode2.updateData(temperature, humidity, eCO2, TVOC);
graphNode2.updateGraph();
}
// Call the function to create the HTML structure