TUI von direkten Service-Importen auf httpx API-Calls umgestellt. Neue tui/api_client.py als schlanker async HTTP-Client. Background- Worker pollt API alle 5s für Echtzeit-Updates. Neuer tui_standalone.py Entry-Point für 'textual serve --port 8001 tui_standalone.py'.
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
# MCM – MultiCustomerMessenger Konfiguration
|
||
# Datei kopieren: cp .env.example .env
|
||
|
||
# ── API ────────────────────────────────────────────────────
|
||
API_KEY=changeme-secret-key
|
||
HOST=0.0.0.0
|
||
PORT=8000
|
||
DEBUG=false
|
||
|
||
# ── Telegram ───────────────────────────────────────────────
|
||
TELEGRAM_TOKEN=
|
||
|
||
# ── WhatsApp (Green API) ───────────────────────────────────
|
||
# Konto anlegen unter: https://console.green-api.com
|
||
WHATSAPP_ID_INSTANCE=
|
||
WHATSAPP_API_TOKEN=
|
||
|
||
# ── SMS / USB-Modem ────────────────────────────────────────
|
||
SMS_PORT=/dev/ttyUSB0
|
||
SMS_BAUD_RATE=115200
|
||
SMS_ENABLED=false
|
||
|
||
# ── Datenbank ──────────────────────────────────────────────
|
||
DATABASE_URL=sqlite:///./mcm.db
|
||
|
||
# ── TUI Web-Modus (textual serve) ──────────────────────────
|
||
# Starten: .venv/bin/python -m textual serve --host 0.0.0.0 --port $WEB_PORT tui_standalone.py
|
||
WEB_PORT=8001
|