Does anybody know how to pass a payload, topic or flow variable into the InfluxdB Out node, as the measurement name/field?
Usually {{payload}} or {{msg.topic}} works in order to insert the payload/topic into another node. But clearly that doesn’t work for an ‘influx out node’ in node-red.
Here is what my InfluxDB Out node settings look like:
and here is the function node that formats the data just before this node, where I am feeding two fields & field values (temperature and millivolts), each with the tag “Meastype” and tag value “actual”. In another flow, I am grabbing the setpoint value and defining that as the tag value, so that in InfluxDB I can compare actual vs setpoint.