For mine, to publish to influxdb v1 it would look like:
python3 listen.py --influxdb --influxdb_host=influxdb --influxdb_port=8086 --influxdb_db=testdb -M
The ‘-M’ option there is the important option, meaning ‘support multiple sensors’. That constructs a value with the serial number of the detected sensor, so it can support any number of sensors and even multiple hubs since it’s just picking the UDP broadcasts off the wire(less).
So it would publish a Tempest obs_st record to sensors/ST-00001234/wf/obs_st
within influxdb and you could pick the elements out of it in grafana by grabbing the individual fields from the observation (ie, ‘temperature’).
No configuration is needed to say which sensor(s) might be there. The app just listens and if a new sensor appears it puts its measurements into the db with the key including the serial number of the sensor, so it’s easy to tell the measurements from each sensor apart.
There is a user-provided pull request associated with the github repo to support v2 influxdb, but I haven’t merged it into my stuff yet as I don’t have any WF gear any more so I can’t really test functionality additions too well.
Sorry to hijack your thread a little, but I wanted to explain a bit.
Nice to see more third-party integrations !!!