Msg.payload to influxdb

Hi,

My first node red flow here and a newbie question:

I am using openweathermap to get weather data in node red. How do I parse the payload.tempc including a timestamp to InfluxDB (Already created DB).

br
Stian

If you click the icon shown in my screenshot, it will copy the path to the value.
Paste that into a change node, and it will parse the value in your flow.
Something like this;

[{"id":"64e7a938.0aab58","type":"change","z":"a444a9ff.e7a408","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.humidity","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":170,"y":1150,"wires":[["335337e4.8fc348"]]}]

value

You don't necessarily need a timestamp as influx will add one itself, as it's a time series database.

You then need to setup your influx output node, take a look at the examples in the influx contrib node, and feed the change node into it.

1 Like

Excellent Thanks !