Bridger is a Meshtastic MQTT to InfluxDB metrics bridge. It listens to MQTT for protobuf messages and uses those to push metrics to InfluxDB.
You will need InfluxDB and a MQTT broker running or available already.
Copy the the .env.default
file to .env
and view for the environment variables that can be set. The following are required:
- MQTT_TOPIC
- MQTT_BROKER
- MQTT_USER
- MQTT_PASS
- INFLUXDB_V2_BUCKET
- INFLUXDB_V2_ORG
- INFLUXDB_V2_TOKEN
- INFLUXDB_V2_URL
Then install the required packages in a Python virtual environment:
pip install -r requirements.txt
And run the script:
python -m bridger
To get your Meshtastic node to send metrics to the MQTT broker you will need to set the following settings:
MQTT Module:
- Enabled:
Checked
- MQTT Server Address:
mqtt.austinmesh.org
- MQTT Username: <created_per_user>
- MQTT Password: <created_per_user>
- Encryption Enabled:
Unchecked
- JSON Enabled:
Unchecked
- TLS Enabled:
Unchecked
- Root topic:
egr/home
Primary Channel:
- Uplink Enabled:
Checked