Multiple readings in 1 message via UDP > InfluxDB

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Prutsium
Normal user
Posts: 39
Joined: 29 Mar 2018, 15:39
Location: Germany / Netherlands

Multiple readings in 1 message via UDP > InfluxDB

#1 Post by Prutsium » 29 Mar 2018, 15:49

Hi all,

I have various ESP's running with ESPEasy for tem reading but also for various domotica and this works great.
The current situation is like:
-ESP sends via UDP values to InfluxDB
-ESP Switches via IDX to Domoticz pusht
-HA Bridge the switches from Domoticz pushed to Alexa
- Grafana creates visuals like the link below.

Now i want to calculate the deltaT from 2 sensors (A-B=dT) and since Grafana cant do calculations over multiple queries it expects to see the values A & B in 1 string.

At this moment i write to Influx over UDP like:
Image

The values coming from:
Image

No i would require to have both values from 2 different sensors into 1 message to get the names and values of 2 different tasks.
I could create a second controller with UDP Push but what would be required to be able to create this string.
Below you see what values i would require.
Image

Hope its a bit clear what i want to do and of course this is how it now looks like in Grafana
https://snapshot.raintank.io/dashboard/ ... 0A1i3LsIbu

Thanks,
Jerome

kimot
Normal user
Posts: 190
Joined: 12 Oct 2017, 20:46

Re: Multiple readings in 1 message via UDP > InfluxDB

#2 Post by kimot » 31 Mar 2018, 16:21

Create dummy variable dT
Calculate this dT via rules from both others sensors and send dT to Influx?

Post Reply

Who is online

Users browsing this forum: No registered users and 127 guests