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";
|
document.getElementById("TVOCStatus").textContent = "Connected";
|
||||||
|
|
||||||
// Update the graph
|
// Update the graph
|
||||||
liveGraphs[node - 1].updateData();
|
liveGraphs[node - 1].updateData(temperature, humidity, eCO2, TVOC);
|
||||||
liveGraphs[node - 1].updateGraph();
|
liveGraphs[node - 1].updateGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,6 +203,5 @@ liveGraphs.push(new liveGraph(1));
|
|||||||
// make the graphs
|
// make the graphs
|
||||||
liveGraphs.forEach((graph) => {
|
liveGraphs.forEach((graph) => {
|
||||||
graph.makeGraph();
|
graph.makeGraph();
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user