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