Hi,
I’m used to SQL type of databases and new to influxdb. I’m using influxdb to store data from ioBroker, primarily from energy sensors.
The InfluxDB adapter of ioBroker (at least on Raspberry PI) stores data in influxdb in a predefined way which cannot be changed:
- name: modbus.0.inputRegisters.30013_Leistung_Aktuell
- time ack from q value
-
- 1588523648283000000 true system.adapter.modbus.0 0 84.31
- 1588523707890000000 true system.adapter.modbus.0 0 84.04
This format makes sense because the sensor data can represent differnt measurement quantities.
For the analysis of e.g. power consumption it would be useful to store e.g. power readings in a common “Power” measurement and add discrimination between sensor channels by using tags.
I’ve added a measurement for power:
- name: P_el
’ time channel value -
- 1588518552498114332 P2_K1 2.34
My question is:
How can I transform the iobroker measurement data into the new “P_el” measurement and add tags?
I manage to inject data via “Select Into” but the “channel” tag will remain empty.
Optimimum solution would be to create “a job” running e.g. hourly and copying info from original format into new measurement.
I would be grateful for any advice!
Best regards
TimTom