Update liveGraphs to include temperature, humidity, eCO2, and TVOC data
This commit is contained in:
@@ -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();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user