I am trying to write data to influx from Fibaro using the v2 API. With 1.8 version of Influxdb the connection can work but with v2 not.
I still want to resolve in v2 rather than downgrade. But maybe later give up and ending in 1.8:)
As far as I know user and password not enough since the organization and token concept has been introduced in v2 API. Hence I rewrote the url and now it is: [DEBUG] 18:24:19: 192.168.1.124:8086/api/v2/write?org=fibaro&bucket=fibaro3&precisions=s
And the token is also provided as a parameter in the header: – [“Authorization”] = "Authothorization: Token " … deviceToken,
Still having issue and I think this is not because of theauthentication (yet) When the function called “sendDataToInflux(body)” then I get
[DEBUG] 18:26:14: 2021-04-26 18:26:14.191664 [ fatal] Unknown exception: std::runtime_error: ‘Invalid argument’
My body also looks ok:
[DEBUG] 18:26:14: Body: fibaro,sectionName=Outside,deviceID=105,roomName=Outside,deviceName=WindSpeed\ (km/h) value=2.5678057167419 1.619454374e+18
Any suggestion what argument can cause the problem? I created a brand new bucket (fibaro3) in influx to feed tha data to.