i created a application in ttn console and have 10 Sensors inside this applicaiton.
Using telegraf and the mqtt plugin like describe here:
This is the plugin configuration:
servers = [“tcp://eu.thethings.network:1883”]
qos = 0
connection_timeout = “30s”
topics = [ “+/devices/+/up” ]
client_id = “”
username = “username"
password = “password"
data_format = “json”
i am able to push the data sucessfully into the influxdb.
But i am facing two problems:
i would like to create a new measurement for every device inside my influxdb
At the moments all uplinks are saved in the one measurement mqtt_consumer.
Only the TAG Topic allows to distinguish between the sensors.
Do you have any idea how to adjust the plugin, so that every sensor will be saved in its own measurement. Or is there any best practice on how to work with multiple sensors and how to save data of them in influxdb ?
I also would like to insert metadata inside these measurements.
The payload decoder inside TTN allows me to describe variables calculated from the payload, but i also need to store information like rssi and SF.
Any help would be highly appreciated, also if you know any best practices how to manage best multiple sensors in one applicaiton.
Thank you a lot for your help!