Store MQTT messages into InfluxDB v2, a MQTT-InfluxDB-Bridge.
- Python 3.7+
- pipenv
- MQTT server, e.g., Mosquitto
- InfluxDB server, Version 2.x
- Set up MQTT and InfluxDB v2 servers.
- For testing purposes you can use the Docker-Compose script:
cd ./scripts/docker-mqtt-influxdb/ && docker-compose up -d
.
- For testing purposes you can use the Docker-Compose script:
pipenv sync
- Create local dotenv configuraiton or setup environment variables.
cp env.template .env && chmod go-rwx .env
- Adjust configuration in
.env
file.
pipenv run python mqtt_influxdb2.py
- (Install as systemd-service, see
./scripts/systemd/
)