Update liveGraphs to include temperature, humidity, eCO2, and TVOC data

This commit is contained in:
sietse jonker
2024-03-07 12:57:54 +01:00
parent 6070ba7480
commit 2e394f3d45

View File

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