This repository enables a Large Language Model (LLM) to communicate over a private, encrypted Meshtastic mesh network via Wi-Fi or USB serial. It supports OpenAI's ChatGPT API and local Ollama models, maintains thread memory, and can initiate scheduled emergency nets.
- Dual Connectivity: Supports both Wi-Fi (TCP) and USB serial connections to Meshtastic devices.
- AI Memory: Remembers ongoing conversations and tracks the connection mode.
- Automated Emergency Nets: Schedules and runs practice emergency procedures for friend groups.
- Custom AI Prompts: Generates scenario-based training drills and interacts dynamically.
- Contact Tracking: Logs participants and can ping missing members.
- Clone this repo or extract the ZIP contents into your GitHub repo folder.
- Install dependencies:
pip install -r requirements.txt - Copy
config.example.yamltoconfig.yamland configure. - Run with:
python llm_meshtastic_bridge.py
Modify config.yaml to set your LLM provider, API keys, Meshtastic connection mode, and emergency drill preferences.