Commit graph

27 commits

Author SHA1 Message Date
ppfeiffer 30960a194d fix(bot): Nachrichten ohne ACK-Anforderung senden (wantAck=False)
sendText() verwendet jetzt wantAck=False – keine Retry-Logik,
keine ACK-Pakete im Mesh. Sinnvoll für Broadcasts und periodische
Status-Meldungen. Closes #14.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 14:25:54 +01:00
ppfeiffer 087cccd35c refactor(version): Versionsformat auf 2-stellige Minor- und Patch-Level umgestellt
Alle eigenen Projektversionsnummern wurden auf das neue Format umgeschrieben:
0.X.Y → 0.XX.YY (z.B. 0.8.11 → 0.08.11, 0.6.7 → 0.06.07)
Betrifft 130 Zeilen in 9 Dateien; externe Bibliotheksversionen unverändert.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 14:00:49 +01:00
ppfeiffer a6988fbb1f fix(stats): eigene Telemetrie aus Pakettypen-Diagramm ausschließen
get_stats() filtert TELEMETRY_APP-Pakete des eigenen Nodes wenn my_node_id
übergeben wird – konsistent mit isSuppressed() im Paket-Log-Frontend.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 06:31:07 +01:00
ppfeiffer edfe73b8ca fix(bot): connection.established race condition mit threading.Event (fixes #2)
TCPInterface-Konstruktor kehrt zurück bevor das Event aus dem Bibliotheks-Thread
feuert. _conn_event.wait(timeout=10s) wartet sauber auf _on_connection statt
sofort den Fallback auszulösen.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-19 17:30:36 +01:00
ppfeiffer cc392a125a fix(packets): informativer Payload + eigene Telemetrie unterdrücken (fixes #3)
- bot.py: vollständige Payload-Daten für Position, Telemetry (Device+Env),
  NodeInfo (hw_model), Routing (error), Traceroute (hops), Neighborinfo (count)
- packets.js: fmtPayload() zeigt alle Felder; TELEMETRY_APP vom eigenen Node
  (my_node_id / short_name FTLW) wird unterdrückt und nicht gezählt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-19 17:20:35 +01:00
ppfeiffer 6187bb4419 feat: v0.6.10 - Paket-Log-Seite und größeres Node-Modal
- Neue öffentliche Seite /packets: Echtzeit-Tabelle aller empfangenen
  Meshtastic-Pakete via WebSocket mit Typ-Filter, Pause und Clear
- DB: packets-Tabelle + insert_packet / get_recent_packets
- bot.py: alle Pakete loggen + WS-Broadcast (public)
- webserver.py: /packets Route + /api/packets + initial_packets im WS
- Sidebar: Eintrag 'Pakete' (öffentlich)
- Node-Modal: modal-xl + scrollable, Kartenhöhe 250→300px

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-18 17:17:14 +01:00
ppfeiffer 6bb04ec828 fix: v0.6.9 - _on_node_updated fehlende interface-Parameter
meshtastic.node.updated sendet (node, interface), _on_node_updated
akzeptierte nur (node) -> SenderUnknownMsgDataError beim Empfang
von Node-Updates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-18 16:09:55 +01:00
ppfeiffer 0b68c0417d fix: v0.6.8 - Bugfixes: Node-Sync, Modal, Badge, CSS
- bot.py: pub.subscribe vor TCPInterface verschoben; Nodes beim Start
  wurden nicht geladen da connection.established/node.updated Events
  verpasst wurden. Fallback-Sync nach Konstruktor ergaenzt.
- HTML: tabler.min.js -> bootstrap.bundle.min.js; Tabler exportiert
  bootstrap nicht global, new bootstrap.Modal() schlug fehl.
- dashboard.js: badge-pill -> rounded-pill (Bootstrap 4 -> 5)
- style.css: --tblr-bg-body Typo -> --tblr-body-bg

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-18 16:01:49 +01:00
ppfeiffer f2c6ba8e62 feat: v0.6.7 - Dashboard-Upgrade: Tabler-Theme, Charts, Kanalfilter, Node-Suche
- Tabler 1.4.0 als Admin-Theme: Bootstrap CSS/JS in allen 6 HTML-Seiten ersetzt
- style.css komplett ueberarbeitet: Inter-Font, Tabler CSS-Variablen, Schatten,
  verfeinerte Sidebar (Rounded Active-Links), Hover-Animation auf Info-Boxen,
  pulsierender Status-Dot
- app.js als shared Modul: Duplikation in allen JS-Dateien eliminiert (initPage,
  applyTheme, escapeHtml, Sidebar-Injektion)
- WebSocket Auth-Fix: Nachrichten nur noch an eingeloggte Clients (auth_clients)
- Bot-Uptime + Meshtastic-Verbindungsstatus in Dashboard und Stats-API
- Dark Mode Kartentiles: CartoDB Dark Matter fuer Karte + Node-Modal
- 3 Charts: Kanal-Anfragen (Doughnut), Hop-Verteilung (Bar), Hardware Top 5
- Nodes-Tabelle: Suchfeld, Online-Filter, sortierbare Spalten
- Nachrichten Kanalfilter: Filter-Buttons im Nachrichten-Card-Header

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-17 22:43:35 +01:00
ppfeiffer 1d768c6921 feat: v0.5.7 - Anfragen pro Kanal mit Kanalnamen im Dashboard
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 16:24:26 +01:00
ppfeiffer f6bbca3fe0 chore: v0.3.15 - Remove debug logging from _send_text
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 18:13:12 +01:00
ppfeiffer cd4e31c63b feat: v0.3.14 - Change prefix to ?, wider channel select, send logging
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 18:09:25 +01:00
ppfeiffer 248ebbbc43 fix: v0.3.13 - Store and broadcast sent messages before radio send
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 18:00:42 +01:00
ppfeiffer 9b47e5202c fix: v0.3.12 - Filter own message echoes, fix sent message display
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 17:55:26 +01:00
ppfeiffer 16465eb8f6 feat: v0.3.10 - Show sent messages in dashboard with distinct styling
Store bot-sent messages in DB and broadcast via WebSocket. Sent messages
appear right-aligned with green bubble in the messages panel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 17:46:08 +01:00
ppfeiffer 50e12fbe02 feat: v0.3.9 - /me command, weather with pressure and dewpoint
Add /me command showing requesting node's info. Add sea-level pressure
and dewpoint to weather response.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 17:31:49 +01:00
ppfeiffer a34162d428 feat: v0.3.8 - Ping response shows hop count
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 17:25:01 +01:00
ppfeiffer fb4425958f feat: v0.3.7 - Weather with location name and PLZ support
Show city name via reverse geocoding in weather response. Allow
specifying a German postal code with plz:XXXXX argument.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 17:07:22 +01:00
ppfeiffer d3c3806ed5 feat: v0.3.6 - Node settings page, map in sidebar layout
Add /settings page showing device, LoRa, channels, position, power and
bluetooth/network config read from the Meshtastic node. Rebuild map page
with consistent sidebar layout instead of standalone fullscreen view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 18:06:32 +01:00
ppfeiffer 6bfb1595e4 feat: v0.3.3 - Send messages from dashboard, scheduler message type, modern UI
Add message sending from web dashboard with channel selector, new POST /api/send
endpoint, scheduler support for free-text messages (type field), and modernized
dashboard layout with glassmorphism navbar, gradient stat cards, chat bubbles.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 17:40:00 +01:00
ppfeiffer 7a0ff15b51 docs: v0.2.6 - WordPress article, systemd service, message splitting fix
- Add WordPress blog post describing the bot (docs/)
- Add systemd service file for production deployment
- Message split numbering [x/y], increase delay to 3s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 14:49:56 +01:00
ppfeiffer 077e0032cf feat: v0.2.5 - Message splitting, improved /mesh readability
- Split long messages at 170 bytes with 1.5s delay between parts
- /mesh: proper sections with line breaks and indentation
- Hop labels: "Direkt", "1 Hop", "2 Hops" instead of "0h", "1h"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 14:38:57 +01:00
ppfeiffer b1e08ab720 feat: v0.2.4 - Add /mesh command for mesh network overview
Shows total/online nodes, active 24h, positions, hop distribution,
and top 3 hardware models.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 14:32:03 +01:00
ppfeiffer a1fe0a297d feat: v0.2.3 - Command tracking, active nodes 24h, request breakdown
- Track bot command responses in new `commands` DB table
- Stats cards: total nodes, active 24h, total commands answered
- Full-width command breakdown row with badges per command
- Update bot /stats response

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 14:26:16 +01:00
ppfeiffer 9e880a1f36 feat: v0.2.0 - Config YAML, theme toggle, hop map, channel names
- Central config.yaml with live-reload file watcher
- Configurable command prefix (default: /)
- Light/dark theme toggle with localStorage persistence
- Map: hop-based node coloring with legend, hover tooltips
- Dashboard: node long names, hop column, channel names in messages
- Load existing messages on WebSocket connect
- Weather fallback to Dresden center
- Remove version.py and pre-commit hook

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 14:07:51 +01:00
ppfeiffer a6c09b19eb refactor: Replace env-based config and version.py with config.yaml
Move all configuration to config.yaml with live-reload (file watcher).
Version is now managed in config.yaml instead of version.py.
Remove pre-commit hook for automatic version bumping.
Pin meshtastic dependency to >=2.7.7.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 13:11:09 +01:00
ppfeiffer 15955cf8d7 feat: Add Meshtastic bot with web dashboard and live map
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>
2026-02-15 12:46:32 +01:00