save temperature, humidity and pressure to nodes table
This commit is contained in:
parent
b2321a7268
commit
d71b03f0d8
3 changed files with 13 additions and 0 deletions
|
|
@ -666,6 +666,11 @@ client.on("message", async (topic, message) => {
|
|||
const current = telemetry.environmentMetrics.current !== 0 ? telemetry.environmentMetrics.current : null;
|
||||
const iaq = telemetry.environmentMetrics.iaq !== 0 ? telemetry.environmentMetrics.iaq : null;
|
||||
|
||||
// set metrics to update on node table
|
||||
data.temperature = temperature;
|
||||
data.relative_humidity = relativeHumidity;
|
||||
data.barometric_pressure = barometricPressure;
|
||||
|
||||
// create environment metric
|
||||
try {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue