# Msg.payload to influxdb

**URL:** https://discourse.nodered.org/t/msg-payload-to-influxdb/9066
**Category:** General
**Created:** [16 March 2019 19:59 UTC](https://discourse.nodered.org/t/msg-payload-to-influxdb/9066 "2019-03-16T19:59:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![stibra](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@stibra](https://discourse.nodered.org/u/stibra)
#### Post date: [16 March 2019 19:59 UTC](https://discourse.nodered.org/t/msg-payload-to-influxdb/9066/1 "2019-03-16T19:59:32Z")

</div>

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).

 ![weather](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f137d4659fe38642de98bfd6afa22f936e9bec3d.png)

br  
Stian

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [16 March 2019 20:59 UTC](https://discourse.nodered.org/t/msg-payload-to-influxdb/9066/2 "2019-03-16T20:59:26Z")

</div>

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;

```auto
[{"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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f582b4b244a03898892366304655f38ea8a0e04d.png)

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](https://flows.nodered.org/node/node-red-contrib-influxdb), and feed the change node into it.

---

<div class="post-metadata">

### Author: ![stibra](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@stibra](https://discourse.nodered.org/u/stibra)
#### Post date: [17 March 2019 17:06 UTC](https://discourse.nodered.org/t/msg-payload-to-influxdb/9066/3 "2019-03-17T17:06:31Z")

</div>

Excellent Thanks !
