# Some help needed Influx DB

**URL:** https://discourse.nodered.org/t/some-help-needed-influx-db/11247
**Category:** General
**Created:** [17 May 2019 14:50 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247 "2019-05-17T14:50:24Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![TimTist](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TimTist](https://discourse.nodered.org/u/TimTist)
#### Post date: [17 May 2019 14:50 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/1 "2019-05-17T14:50:24Z")

</div>

Hello all.

Just created an Influx database called "test" and I want to do some tests from a simple flow. I'm new with Influx so I wonder if someone can guide me how to write the value "123" to the database. As far as I know Infux adds a timestamp. Copied from the debug frame the path is "payload" and the value is "123". Below the flow export and the relevant part of the screen.

 ![nr](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/269d32a6fd62b437ee4904786c1edc6bae00a4ea.png)

```auto
[{"id":"c42bf290.cdbc1","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"bdc59a12.a6afb8","type":"inject","z":"c42bf290.cdbc1","name":"","topic":"","payload":"123","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":790,"y":120,"wires":[["bb2566cc.032158"]]},{"id":"bb2566cc.032158","type":"debug","z":"c42bf290.cdbc1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":990,"y":120,"wires":[]}]

```

---

<div class="post-metadata">

### Author: ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)
#### Post date: [17 May 2019 15:31 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/2 "2019-05-17T15:31:45Z")

</div>

Your code snippet isn't importable. please re-paste and wrap it in ``` at the start and end. Also, so far as the influx input node goes, be sure you're specifying a measurement in the node config.

---

<div class="post-metadata">

### Author: ![TimTist](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TimTist](https://discourse.nodered.org/u/TimTist)
#### Post date: [17 May 2019 15:39 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/3 "2019-05-17T15:39:01Z")

</div>

Hope the code below is okay now, I have added it with the preformatted text button \</\> from the forum which adds ``` automatic.

The value "123" in my test will later be replaced with the value of the measurement which is an integer between 100 and 500. Do you have enough info?

```auto
[{"id":"c42bf290.cdbc1","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"bdc59a12.a6afb8","type":"inject","z":"c42bf290.cdbc1","name":"","topic":"","payload":"123","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":790,"y":120,"wires":[["bb2566cc.032158"]]},{"id":"bb2566cc.032158","type":"debug","z":"c42bf290.cdbc1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":990,"y":120,"wires":[]}]

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [17 May 2019 15:47 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/4 "2019-05-17T15:47:07Z")

</div>

You can use node-red-contrib-influxdb.

---

<div class="post-metadata">

### Author: ![TimTist](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TimTist](https://discourse.nodered.org/u/TimTist)
#### Post date: [17 May 2019 15:50 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/5 "2019-05-17T15:50:08Z")

</div>

I know Colin, but no idea how to fill in the fields (except the database) 🙄

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [17 May 2019 15:54 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/6 "2019-05-17T15:54:15Z")

</div>

> [@TimTist](#):
>
> no idea how to fill in the fields

Possibly you could have said that in the original question.  
Do you understand about Measurements, Tags and Fields in Influx? If not then start here:

> **[InfluxDB key concepts | InfluxDB OSS v1 Documentation](https://docs.influxdata.com/influxdb/v1/concepts/key_concepts/)**
>
> Covers key concepts to learn about InfluxDB.

---

<div class="post-metadata">

### Author: ![TimTist](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@TimTist](https://discourse.nodered.org/u/TimTist)
#### Post date: [17 May 2019 15:56 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/7 "2019-05-17T15:56:33Z")

</div>

Thanks Colin.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [17 May 2019 23:02 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/8 "2019-05-17T23:02:59Z")

</div>

If you can work out the line syntax, you can simply use the http-request node to send the data. The InfluxDB node simply tries to let you send a more structured object whereas using the request node means you have to form the query string yourself - not at all hard and in some ways easier than using the node.

---

<div class="post-metadata">

### Author: ![mtoko](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mtoko/32/138_2.png) [@mtoko](https://discourse.nodered.org/u/mtoko)
#### Post date: [18 May 2019 14:15 UTC](https://discourse.nodered.org/t/some-help-needed-influx-db/11247/9 "2019-05-18T14:15:24Z")

</div>

Have a look at this You tube video
