Remove commented out code and update graph in main.js
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user