# Sending data to InfluxDB

**URL:** <https://discourse.nodered.org/t/sending-data-to-influxdb/72505>\
**Category:** General\
**Created:** [21 December 2022 03:45 UTC](https://discourse.nodered.org/t/sending-data-to-influxdb/72505 "2022-12-21T03:45:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weinsberg](https://avatars.discourse-cdn.com/v4/letter/w/35a633/32.png) [@Weinsberg](https://discourse.nodered.org/u/Weinsberg)\
**Post date:** [21 December 2022 03:45 UTC](https://discourse.nodered.org/t/sending-data-to-influxdb/72505/1 "2022-12-21T03:45:14Z")

</div>

Hey there, I'm not getting forward on my project, here shortly:

- sensors geathering data and send via LoRaWAN to the house
- raspberry pi get these data from serial port and stores it in influxDB-1.x
- grafana should visualize the data for a good overview

right now I use node red _(with node-red-contrib-influxdb)_ to store the data in influxDB  
here comes the problem.  
If I take the data as it comes as 'string' I get an error: 'No measurment specefied'

 ![Node Red - Error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/44d72e86c19f764df1e93ef0dfcb3504a234a810.jpeg)

Here the data I'm trying to send:

```auto
sensorA,ta=22.44,tb=22.80,lf=53.00,bf=1582 ri=113

```

...because I don't no what to, I tryed a different way instead of solving the problem:  
so I deleted the name of the measurment 'sensorA,'

 ![Node Red - deleting name of measurment](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/b/4bc34b452f684cb19a9bf9668426ad93cc75ec79.jpeg)

and put the name of the measurment in the _node-red-contrib-influxdb_.

 ![node-red-contrib-influxdb](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/67ccc985cca7c66982d20fa6cd2be6b9549b9e62.jpeg)

now I didn't get an error, but the result was not good.  
when I checked whats in the database, I just got a time stamp with a value.

 ![Terminal - sensorA](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/0050fb64e4b20f3115a9506b80532b51c2dce55c.jpeg)

when I manually write the same data per insert into the database it works fine:

 ![Terminal - manualy per insert](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/b/bb5374416ebdafabe5f59af165be863bfa444350.jpeg)

Maybe a problem with the type of the data? (string)  
I don't know any programmer who could help me and I'm sure this question has be answerd before, maybe allready in the forum. I looked at a lot of influx topics, but I struggle with understanding everything (my programming knowlage is +-0).  
I guess the hardest part of solving this, is to explain it to me 🫠  
I'm happy for evey answer.

Greetings Jonathan

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [21 December 2022 07:03 UTC](https://discourse.nodered.org/t/sending-data-to-influxdb/72505/2 "2022-12-21T07:03:09Z")

</div>

Please go [through the documentation](https://flows.nodered.org/node/node-red-contrib-influxdb) of the node. It will explain how to send messages to the influx node. It includes various sample flows.

---

<div class="post-metadata">

**Author:** ![Weinsberg](https://avatars.discourse-cdn.com/v4/letter/w/35a633/32.png) [@Weinsberg](https://discourse.nodered.org/u/Weinsberg)\
**Post date:** [21 December 2022 19:39 UTC](https://discourse.nodered.org/t/sending-data-to-influxdb/72505/3 "2022-12-21T19:39:13Z")

</div>

Thanks Bakman2, thats some good information.

---

<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:** [17 January 2023 17:56 UTC](https://discourse.nodered.org/t/sending-data-to-influxdb/72505/4 "2023-01-17T17:56:18Z")

</div>

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