graph works now
This commit is contained in:
@@ -66,6 +66,7 @@ async function handleIncomingData(data) {
|
||||
sensorData[data.node].updateGauge(2, humidity);
|
||||
sensorData[data.node].updateGauge(3, CO2);
|
||||
sensorData[data.node].updateGauge(4, TVOC);
|
||||
sensorData[data.node].graph.updateGraph(temperature, humidity, CO2, TVOC);
|
||||
} else {
|
||||
console.error('No sensor data for node:', nodeName);
|
||||
}
|
||||
@@ -102,7 +103,6 @@ async function nodeAdressHandler(node, dataTypes) {
|
||||
sensorData[node] = gaugeGroup;
|
||||
gaugeGroup.graph.makeGraph();
|
||||
sensorData[node] = gaugeGroup;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -190,4 +190,6 @@ body {
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
width: 20vw;
|
||||
z-index: -0;
|
||||
height: -;
|
||||
}
|
Reference in New Issue
Block a user