mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-08-04 17:59:36 +00:00
feat: Enhance web viewer functionality and configuration options
- Updated `config.ini.example` to include a new option for additional hashtag channels to decode in the packet stream. - Modified `BotDataViewer` to retrieve and display additional decode-only channels from the configuration. - Improved packet handling in `message_handler.py` to capture full packet data for web viewer integration. - Enhanced the web viewer's JavaScript to support detailed packet analysis and display, including color-coded hex breakdowns and improved user interface elements. - Added new styles and scripts to the web viewer templates for better visual representation of packet data and improved user experience.
This commit is contained in:
@@ -668,6 +668,10 @@ class MessageHandler:
|
||||
if (hasattr(self.bot, 'web_viewer_integration') and
|
||||
self.bot.web_viewer_integration and
|
||||
self.bot.web_viewer_integration.bot_integration):
|
||||
# Use extracted_payload which is the full MeshCore packet
|
||||
# (header + path_len + path + payload, without RF wrapper)
|
||||
decoded_packet['raw_packet_hex'] = extracted_payload if extracted_payload else raw_hex
|
||||
decoded_packet['packet_hash'] = packet_hash
|
||||
self.bot.web_viewer_integration.bot_integration.capture_full_packet_data(decoded_packet)
|
||||
|
||||
# Process ADVERT packets for contact tracking (regardless of path length)
|
||||
|
||||
Reference in New Issue
Block a user