Implements full MeshDD-Bot with TCP connection to Meshtastic devices, SQLite storage for nodes/messages, aiohttp web dashboard with WebSocket live updates, and Leaflet.js map view with color-coded node markers. Includes bot commands (!ping, !nodes, !info, !help, !weather, !stats, !uptime) and automatic version bumping via pre-commit hook. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
345 B
Python
12 lines
345 B
Python
import os
|
|
|
|
MESHTASTIC_HOST = os.environ.get("MESHTASTIC_HOST", "localhost")
|
|
MESHTASTIC_PORT = int(os.environ.get("MESHTASTIC_PORT", "4403"))
|
|
|
|
WEB_HOST = os.environ.get("WEB_HOST", "0.0.0.0")
|
|
WEB_PORT = int(os.environ.get("WEB_PORT", "8080"))
|
|
|
|
DB_PATH = os.environ.get("DB_PATH", "meshdd.db")
|
|
|
|
BOT_NAME = os.environ.get("BOT_NAME", "MeshDD-Bot")
|