Page 1 of 1

Write to influxdb

Posted: Sat Mar 23, 2019 6:47 pm
by pacsabi
I'm collecting all my home IoT data in influxdb. Is there any method to export sensor data from meteobridge to a local influxdb?
Like this: curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'

Re: Write to influxdb

Posted: Sun Mar 24, 2019 11:56 am
by admin
curl is not available on Meteobridge. I would recommend to install a web server on your data base server that is fed via Meteobridge by HTTP get requests with the data as URL parameter. The so triggered script then does the magic on your server to bring data into your database.

Re: Write to influxdb

Posted: Sun Mar 24, 2019 5:41 pm
by pacsabi
Great idea, many thanks!