mqtt-influxdb-bridge

command module
v0.0.0-...-e80c842 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2020 License: Unlicense Imports: 14 Imported by: 0

README

MQTT-InfluxDB-bridge

Application listens for MQTT-broker and stores messages to InfluxDB.

value = 25
topic = home/room1/temperature

is sent to InfluxDB with values

database   = home
serie      = temperature
value      = 25
tag:source = room1

Running

To run program needs two arguments

  • broker - connection string to MQTT-broker
  • db - connection string to InfluxDB

Arguments can be provided as command line flags, for example:

./mqtt-influx-bridge -broker=tcp:/localhost:1883 -db=http://localhost:8086

or environment variables:

BROKER=tcp://localhost:1883 DB=http://localhost:8086 ./mqtt-influx-bridge

Running with Docker

docker run -e BROKER="tcp://mqtt-broker:1883" -e DB="http://influxdb:8086" reap/mqtt-influxdb-bridge

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL