https://github.com/zefer/mqtt-to-influx
https://github.com/zefer/mqtt-to-influx
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zefer/mqtt-to-influx
- Owner: zefer
- Created: 2022-10-04T17:05:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T17:05:54.000Z (over 3 years ago)
- Last Synced: 2025-01-11T11:36:04.898Z (over 1 year ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTT to InfluxDB Listener
This listens to MQTT topics from [atmos](https://github.com/zefer/atmos) and
sends them to an InfluxDB database, so they can be plotted on a Grafana
dashboard.
## TODO
Consider moving this to the atmos repo, unless it becomes a more generic MQTT
to InfluxDB service.
## Links
- [atmos](https://github.com/zefer/atmos)
- [InfluxDB](https://influxdata.com/time-series-platform/influxdb/)
- [influxdb-ruby](https://github.com/influxdata/influxdb-ruby)
- [Grafana](https://grafana.com/)
## Docker
Included is sample Docker usage based on how I'm running this at home.
```sh
# Build the docker image.
docker build -t mqtt-to-influx .
# Run it, configuring the target InfluxDB.
docker run -it --env INFLUXDB_URL=$INFLUXDB_URL --env MQTT_HOST=$MQTT_HOST --name mqtt-to-influx mqtt-to-influx
# Save the docker image to a local file, for distribution.
docker save mqtt-to-influx > mqtt-to-influx.tar
```