The problem is, that InfluxDB doesn’t accept json anymore. It has its own line protocol syntax.
I managed that the event value is the whole string in the single quotes after --data-binary. I tried to put the method as POST, the url as http://myIPaddress:8086/write?db=mydb and the query parameter “data.binary”. This failed because Particel transfer everything as json and a parsing error appears.
I find it’s easiest to write a python script that receives the stream of particle events via server side events (SSE) and then posts to InfluxDB via the InfluxDB python module.
So I should configure the webhook to send the events to a python script on my server (for example running on a flask webserver)? Then this python script transform the data and stream it to the python interface of InfluxDB.
Or what do you mean with SSE? Is there are smarter way than the way described above?