Write to influxdb

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
pacsabi
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Sat Mar 23, 2019 6:40 pm

Write to influxdb

Post by pacsabi » Sat Mar 23, 2019 6:47 pm

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'

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5829
Joined: Mon Oct 01, 2007 10:51 pm

Re: Write to influxdb

Post by admin » Sun Mar 24, 2019 11:56 am

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.

pacsabi
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Sat Mar 23, 2019 6:40 pm

Re: Write to influxdb

Post by pacsabi » Sun Mar 24, 2019 5:41 pm

Great idea, many thanks!

Post Reply