# Send string data to influxdb v2 running in Portainer

**URL:** https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812
**Category:** General
**Tags:** function-node
**Created:** [8 May 2024 16:31 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812 "2024-05-08T16:31:30Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![telescopio](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@telescopio](https://discourse.nodered.org/u/telescopio)
#### Post date: [8 May 2024 16:31 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/1 "2024-05-08T16:31:30Z")

</div>

Influxdb v2 running in Portainer

I create a Bucket name Red, under Organization name is OBS, already create a Token and is running in localhost;8086

I have this data from my sensor as a string from a HTTP Get node  
dataGMTTime=2024/04/17 00:00:55  
cwinfo=Serial: 2387, FW: 5.88  
clouds=9.380000  
temp=30.730000  
wind=-1  
gust=-1  
rain=2443  
lightmpsas=-10.69  
switch=0  
safe=0  
hum=69  
dewp=24.390000  
rawir=19.660000  
abspress=1008.250000  
relpress=1009.386999

II need to send this data to inlfuxdb, I try GPT, YOU TUBE you name it no luck. Can some one guide on what i need to do.

thanks in ADVANCE

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [9 May 2024 22:18 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/2 "2024-05-09T22:18:55Z")

</div>

Install [https://flows.nodered.org/node/node-red-contrib-influxdb](https://flows.nodered.org/node/node-red-contrib-influxdb) or similar and take a look at the examples.

This node looks like may be easier for you to get started with, although I haven't used it myself.

> **[@wz2b/node-red-influxdb-line-protocol](https://flows.nodered.org/node/@wz2b/node-red-influxdb-line-protocol)**
>
> Parses InfluxDB Line Protocol to JSON and vice versa.

You will also find many topics in this forum relating to influxdb.

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [10 May 2024 05:31 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/3 "2024-05-10T05:31:53Z")

</div>

OK so you have Influx running in a docker container - is Node Red also running in a Docker container (on the same machine) or on a different machine ?

Show us your docker compose file for the Portainer container so we can see how the networking is setup for the container

Craig

---

<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: [10 May 2024 07:34 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/4 "2024-05-10T07:34:23Z")

</div>

Have you succeeded in sending test data to the database from node-red?

---

<div class="post-metadata">

### Author: ![telescopio](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@telescopio](https://discourse.nodered.org/u/telescopio)
#### Post date: [10 May 2024 16:41 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/5 "2024-05-10T16:41:30Z")

</div>

Everything in one PI4 B. I haven't been able send the data. I am trying with GPT some logics but I haven't been able to see values on Influx. I try to get the Compose file in var/lib/docker/portainer/compose and it say access denied ,SInce I am new in raspberry I am loss to change the privilage

---

<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: [10 May 2024 17:22 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/6 "2024-05-10T17:22:54Z")

</div>

Do you have to use Docker? Unless you have a good reason to do so then don't.

---

<div class="post-metadata">

### Author: ![telescopio](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@telescopio](https://discourse.nodered.org/u/telescopio)
#### Post date: [10 May 2024 17:37 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/7 "2024-05-10T17:37:26Z")

</div>

Yes, I will go with out, I already have Node red stand alone so I am going to add the Influx and Grafana. But I still have the problem with the data. New to find out the best flow to accomplish it. If some one know and help me that will makit Thanks

---

<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: [10 May 2024 18:15 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/8 "2024-05-10T18:15:31Z")

</div>

Start by adding some test data to a test bucket using node-red-contrib-influxdb. Read the help text for the node to see how. Then you will know you are accessing the database ok.

---

<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: [9 July 2024 18:16 UTC](https://discourse.nodered.org/t/send-string-data-to-influxdb-v2-running-in-portainer/87812/9 "2024-07-09T18:16:08Z")

</div>

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