Help, I'm not able to send data from device to influxDBv2

Hello, my friends. I’m a software engineer and I’m struggling to get data from my iotawatt w14 v5.1 sensor to my InfluxDBv2 instance. I’m able to put data into influx using a curl command, but I have absolutely no clue about why I’m not able to send data from my sensor. Can somebody help me in any way? Thanks in advance!

This is the command that I’m using to input data.
curl -i -XPOST 'http://<my-instance-ip>:8086/api/v2/write?org=<my-org>&bucket=<my-bucket>&precision=s' --header "Authorization: Token <my-token>" --data-raw 'testmeasurement,tag1=value1 field1=30'

HTTP/1.1 204 No Content
X-Influxdb-Build: OSS
X-Influxdb-Version: 2.1.1
Date: Thu, 08 Aug 2024 09:51:15 GMT

I don’t see where you have added any measurements to upload.

I’m an absolute beginner in this topic. What do I do? I’m just trying to get something running in my webserver to start building some software around this.


Screenshot 2024-08-08 153424
Screenshot 2024-08-08 153437

Docs.iotawatt.com

I’ve been there before, but thanks.

Hi Jef, just hit the “add” button below ‘measurements’ in your Influx DB config as you show in your original post!

1 Like

That’s what I was needing. It is working now. Thank you very much!! :smiley:

To help others in the same situation in the future, pay atention that the Organization ID and the Authorization token needs to be the hexadecimals, provided in the InfluxDB interface. I was trying to fill them with strings, so the connection was not working.

1 Like

Thanks for helping the knowledge base grow!

1 Like