https://github.com/tobymurray/meshtastic-mqtt-harvester
https://github.com/tobymurray/meshtastic-mqtt-harvester
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tobymurray/meshtastic-mqtt-harvester
- Owner: tobymurray
- Created: 2023-07-19T23:00:09.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T13:54:16.000Z (about 1 year ago)
- Last Synced: 2025-03-27T15:21:25.350Z (2 months ago)
- Language: Rust
- Size: 224 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# meshtastic-mqtt-harvester
This program runs continuously to populate a database of publicly broadcast Meshtastic node positions. It does this by:
1. subscribing to the `msh/2/c/LongFast/#` topic on MQTT mqtt.meshtastic.org
2. decoding any messages that are coming from nodes publicly sharing their location
3. store the location (plus some other information) in the databaseThis is ultimately building the database to serve https://github.com/tobymurray/meshtastic-populator
Takes configuration from a `.env` file that looks like:
```
MQTT_HOST=mqtt.meshtastic.org
MQTT_PORT=1883
MQTT_USER=tr-development
MQTT_TOPIC=msh/2/c/LongFast/#POSTGRES_DATABASE=meshtastic
POSTGRES_HOST=localhost
POSTGRES_PASSWORD=reallysecretpassword
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_TABLE=positions
```