Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshpirihi/meshtastic-mqtt
A python script to translate Meshtastic packets into a plain format. Currently sends positions to a Traccar instance, and publishes battery % and environmental plugin data to its own topic (eg for Grafana)
https://github.com/joshpirihi/meshtastic-mqtt
meshtastic mqtt
Last synced: about 4 hours ago
JSON representation
A python script to translate Meshtastic packets into a plain format. Currently sends positions to a Traccar instance, and publishes battery % and environmental plugin data to its own topic (eg for Grafana)
- Host: GitHub
- URL: https://github.com/joshpirihi/meshtastic-mqtt
- Owner: joshpirihi
- Created: 2021-09-11T02:48:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T17:21:56.000Z (almost 2 years ago)
- Last Synced: 2024-12-14T04:47:43.191Z (about 1 month ago)
- Topics: meshtastic, mqtt
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 34
- Watchers: 2
- Forks: 9
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Note: only functions with old v1.2 meshtastic device firmware
The newer version 2 of the device firmware supports JSON MQTT packets natively, so there is no need for this script.# meshtastic-mqtt
A python script to translate Meshtastic MQTT location messages into a plain format that other systems can easily understand. Currently takes position data and submits it to a Traccar instance, also publishes user info packets, battery levels and environmental plugin temperatures and humidity readings to mqtt as raw values.The latest build of Meshtastic-device has support for publishing decrypted payloads, which you'll need in order to use this script.
There's a few config definitions at the top of meshtastic-mqtt.py that you'll need to change for your MQTT server.
# Installation
Clone the repo
`git clone https://github.com/joshpirihi/meshtastic-mqtt`
`cd meshtastic-mqtt`Edit the main script and enter your broker and/or traccar host details
`nano meshtastic_mqtt/meshtastic_mqtt.py`Install to your systen with pip
`pip install .`Run
`meshtastic-mqtt`There are some comments in meshtastic-mqtt.py that detail the tweaks needed to make this run under AppDaemon in Home Assistant.