# Read data from InfluxDB

**URL:** https://discourse.nodered.org/t/read-data-from-influxdb/21337
**Category:** General
**Created:** [6 February 2020 08:28 UTC](https://discourse.nodered.org/t/read-data-from-influxdb/21337 "2020-02-06T08:28:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mhechthz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhechthz/32/20144_2.png) [@mhechthz](https://discourse.nodered.org/u/mhechthz)
#### Post date: [6 February 2020 08:28 UTC](https://discourse.nodered.org/t/read-data-from-influxdb/21337/1 "2020-02-06T08:28:56Z")

</div>

Hi,

I'm rather new to Node Red and have a probably simple question.

I want to read data from an InfluxDB, so added a node for "influxdb in" and a "msg.payload". Than I connected the InfluxDB node and added a valid select. If I deploy the workflow nothing happens. I also can add data to the InfluxDB but nothing happens.

Do I have to trigger the reading in any way? Especially because there is an ingoing connector on the nodes icon.

Thanks in advance

Michael

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [6 February 2020 09:49 UTC](https://discourse.nodered.org/t/read-data-from-influxdb/21337/2 "2020-02-06T09:49:48Z")

</div>

Hi, welcome to the forum. Posting your flow here will enable members to be able to help.

---

<div class="post-metadata">

### Author: ![mhechthz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhechthz/32/20144_2.png) [@mhechthz](https://discourse.nodered.org/u/mhechthz)
#### Post date: [6 February 2020 09:52 UTC](https://discourse.nodered.org/t/read-data-from-influxdb/21337/3 "2020-02-06T09:52:56Z")

</div>

It's quite basic:

[{"id":"47849e67.1dce4","type":"tab","label":"MyFirstFlow\_HW","disabled":false,"info":""},{"id":"b6d59706.4d4688","type":"influxdb in","z":"47849e67.1dce4","influxdb":"9fbf2890.9bddd","name":"Query","query":"SELECT \* FROM nkktable.autogen.NKK WHERE time \> now() - 1d GROUP BY position","rawOutput":false,"precision":"ms","retentionPolicy":"","x":370,"y":200,"wires":[["4dcc4f59.05bcf8"]]},{"id":"4dcc4f59.05bcf8","type":"debug","z":"47849e67.1dce4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":570,"y":200,"wires":},{"id":"9fbf2890.9bddd","type":"influxdb","z":"","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"nkktable","name":"NKK-influx","usetls":false,"tls":""}]

---

<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: [6 February 2020 15:56 UTC](https://discourse.nodered.org/t/read-data-from-influxdb/21337/4 "2020-02-06T15:56:42Z")

</div>

Please see [this post](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) for how to share a flow here. You can edit your previous post accordingly rather than posting it again.  
However, to answer your question, yes you have to send the node a message to get it to run the query. Often the message will contain data that can modify the query (as described in the info panel for the node), but if the configuration contains a fixed query then any message will do. For testing you can just connect an Inject node to it.

---

<div class="post-metadata">

### Author: ![mhechthz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhechthz/32/20144_2.png) [@mhechthz](https://discourse.nodered.org/u/mhechthz)
#### Post date: [7 February 2020 10:40 UTC](https://discourse.nodered.org/t/read-data-from-influxdb/21337/5 "2020-02-07T10:40:39Z")

</div>

Ok, the inject-node did the job.

Thank you.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [21 February 2020 10:40 UTC](https://discourse.nodered.org/t/read-data-from-influxdb/21337/6 "2020-02-21T10:40:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
