I want to use the API to write data from a datalogger (IOT) to the InfluxDB Cloud… I have only limited rights at the logger, so I can’t install at this edge the telegraf. But I got a description how to write the data with the API directly to the InfluxDB. The problem is that the description is assuming to write the the data to a raspberry pi with InfluxDB OSS. But I want to have the data send to the InfluxDB cloud and got a failure message.
I used this code to write (as described on the documentation)
curl -XPOST “https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/write?org=YOURORG&bucket=YOURBUCKET&precision=s” --header “Authorization: Token YOURTOKEN” --data-raw “temperture_in_room, room=kitchen temp=19.5”
I got following failure message…
curl: (60) server certificate verification failed. CAfile: none CRLfile: none
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Does anyone had similar failue and know a solution?