Commit graph

71 commits

Author SHA1 Message Date
agessaman
e6f28002cd Enhance packet capture and installation scripts for MeshCore compatibility
- Updated .gitignore to exclude advert_state.json.
- Added version checks for MeshCore in install.sh to ensure compatibility with multi-byte path support.
- Implemented path length decoding in packet_capture.py to handle new MeshCore firmware specifications.
- Adjusted requirements.txt to require meshcore version 2.2.31 or higher for multi-byte path support.
2026-03-15 08:34:04 -07:00
Adam Gessaman
8537ccd9c4
Merge branch 'main' into dev 2026-03-09 19:38:36 -07:00
agessaman
9bf22cc0dd Update install.sh to version 1.2.1 2026-03-09 19:37:21 -07:00
agessaman
f221e04cbc Update .gitignore, modify IATA code in install.sh, and enhance advert state management in packet_capture.py
- Added 'local-docs/' to .gitignore to exclude local documentation files.
- Changed PACKETCAPTURE_IATA value from 'LOC' to 'XYZ' in install.sh.
- Implemented persistent state management for last_advert_time in packet_capture.py, including methods to load and save the state to a JSON file, improving reliability of advert timing.
2026-03-09 19:34:39 -07:00
Adam Gessaman
ac3fe44ba6 Update MQTT configuration in Docker setup
- Revised MQTT settings for Let'sMesh Analyzer to include US and EU server configurations.
- Updated server addresses, ports, and transport methods for improved connectivity.
- Enabled authentication tokens and keepalive settings for both MQTT brokers.
- Added comments for optional custom MQTT broker configuration.
2026-01-09 10:26:38 -08:00
Adam Gessaman
057593762b Update Docker configuration for serial connection support
- Changed default connection type from BLE to serial in docker-compose.yml and Dockerfile.
- Updated privileged mode settings for improved security and flexibility.
- Enhanced device mounting instructions to recommend using persistent device IDs.
- Added comments for optional environment variables and MQTT settings for better clarity.
- Removed unnecessary default environment variables related to BLE connections.
2026-01-09 10:17:11 -08:00
Alex Samorukov
34d66f3e05
Add device listing for FreeBSD
Fix serial selection for the FreeBSD
2025-12-26 21:57:02 +01:00
agessaman
d825d2860d Update installation scripts to version 1.2 and improve logging
- Bump version in install.ps1 and install.sh to 1.2.
- Remove unnecessary debug logging in Bluetooth pairing functions.
- Enhance error handling in connection health checks for TCP with SDK auto-reconnect.
- Streamline MQTT configuration checks in install.sh.
2025-12-17 16:34:08 -08:00
agessaman
ca96c21dc9 Fix pairing on MacOS, update installer to remove dependency on meshcore-decoder 2025-12-17 14:10:06 -08:00
agessaman
e174cfc21f Refactor auth token generation and improve signing methods
- Introduced on-device signing as the default method for JWT token generation, with fallback options to Python signing and meshcore-decoder CLI.
- Enhanced error handling and logging for token generation processes.
- Updated installation scripts to reflect changes in authentication methods, removing the requirement for meshcore-decoder.
- Added async support for token creation to improve performance in asynchronous contexts.
- Updated requirements to ensure compatibility with the latest meshcore package for on-device signing support.
2025-12-17 13:40:23 -08:00
agessaman
4cb24a72c6 Add dialout group check for serial connections and fix device name fallback
- Add check_dialout_group() function in install.sh to prompt users to add themselves to dialout group when using serial connections
- Fix device name retrieval: wait for self_info to populate and add fallback to PACKETCAPTURE_ORIGIN
- Prevents 'Cannot connect to MQTT without device name' errors when device info is delayed or unavailable
- Fixes indentation errors in packet_capture.py
2025-12-05 10:07:53 -08:00
agessaman
9b62512f87 Update install.sh to ensure Python dependencies are upgraded during installation and remove local package installation for meshcore. 2025-11-25 14:22:46 -08:00
Adam Gessaman
9716b019d4
Update install.sh
Bump install version with stats release
2025-11-25 06:17:49 -08:00
agessaman
83904e9a47 Update install.sh to build a comprehensive PATH for LaunchAgents, including Node.js and meshcore-decoder paths regardless of installation method. 2025-11-16 09:59:41 -08:00
agessaman
3920fed88d updated installers to include PACKETCAPTURE_UPLOAD_PACKET_TYPES line, commented out for later user configuration 2025-11-09 12:02:17 -08:00
agessaman
70bb0498b6 fixed iata handling in reconfiguration-enabled installer script 2025-11-06 19:12:03 -08:00
agessaman
6f39aecd38 updated installer to read previous configuration as defaults when reconfiguring 2025-11-06 16:28:59 -08:00
agessaman
29d98f791b Enhance JWT token configuration to include optional owner email
- Updated `install.ps1` and `install.sh` to prompt for an optional owner email address during JWT configuration.
- Added email validation and storage in the environment configuration.
- Modified `packet_capture.py` to include the owner email in JWT claims if configured.
2025-11-06 16:09:55 -08:00
agessaman
210edcee6e Add JWT token configuration options to install scripts
- Introduced `Configure-JwtOptions` in `install.ps1` and `configure_jwt_options` in `install.sh` to allow optional configuration of an owner public key for JWT tokens.
- Updated the MQTT broker configuration to prompt for JWT options if not already set.
- Enhanced `packet_capture.py` to include the owner public key and client agent in JWT claims if configured.
2025-11-06 15:59:35 -08:00
agessaman
aedd883a61 update installer script version, change systemctl memorylimit ot memorymax. 2025-11-02 16:19:41 -08:00
agessaman
73bbc674d5 improved pairing by asking for a pin more quickly 2025-11-02 16:13:25 -08:00
agessaman
76ffcc6f6a Enhance BLE pairing process in install.sh 2025-11-02 16:08:49 -08:00
agessaman
dbc9210fe4 added the ability to set log levels in .env.local 2025-10-25 09:55:36 -07:00
agessaman
30f97b562e Update installation script to version 1.1.1, enhancing MQTT broker configuration with redundancy for US and EU servers. Modify PacketCapture class to enable clean session for improved connection management. 2025-10-23 20:14:01 -07:00
Michael Hart
79c80219b6 Remove problematic service changes 2025-10-23 16:46:19 -07:00
agessaman
1a6ac07d2f Update installation scripts and PacketCapture class to enhance resource management and failure tracking. Introduce resource limits, exponential backoff for retries, and service failure handling for improved stability. 2025-10-22 22:04:18 -07:00
agessaman
5e7bd234f0 Update installation scripts to version 1.1.0, adding version info generation with GitHub commit hash and branch details. Enhance the packet capture Python class to load and publish client version information in status. Adjust default advertisement interval and improve logging for firmware information retrieval. 2025-10-20 21:47:48 -07:00
agessaman
6bb5f73650 fix to raw publishing logic, update to installers to fix timeout issue 2025-10-17 19:56:42 -07:00
agessaman
44fd45db04 add advert settings interval in install.sh and normalize public keys and origin_id in packet_capture.py 2025-10-17 17:57:31 -07:00
agessaman
2ec8483779 re-added raw topic feed option for mqtt servers, only uplinks when configured 2025-10-16 22:03:14 -07:00
agessaman
f68aa827ee improve logging to include mqtt success counts, fix docker compose use in installer. 2025-10-15 09:44:31 -07:00
agessaman
56d5bee88e update install.sh to check for MQTT brokers in .env.local 2025-10-14 21:29:30 -07:00
agessaman
ebf4745c71 moved installer to main 2025-10-14 21:27:50 -07:00
agessaman
dbc0753237 Add JWT token management and renewal process to PacketCapture
- Implement JWT token storage and renewal logic in packet_capture.py.
- Introduce a background task for periodic JWT renewal.
- Update install.sh to check existing MQTT broker configurations before setup.
- Enhance MQTT broker reconnection logic with renewed tokens.
- Add new environment variables for JWT renewal interval and threshold.
2025-10-14 21:26:55 -07:00
agessaman
c272ac4609 Fix mapfile compatibility issue - use readarray with fallback for better shell compatibility 2025-10-14 20:03:22 -07:00
agessaman
60737b9473 Add automatic config.ini migration detection to install script 2025-10-14 19:45:50 -07:00
agessaman
158033b5fd Add MCTOMQTT_ to PACKETCAPTURE_ prefix conversion for config compatibility 2025-10-14 19:42:31 -07:00
agessaman
620e7bbc8a Add TCP connection support and improve documentation 2025-10-14 19:34:43 -07:00
agessaman
a88686207d more ble installer refinements 2025-10-13 21:30:08 -07:00
agessaman
b8c673498a fix ble to be more reliable 2025-10-13 21:24:05 -07:00
agessaman
388acea770 remove trust from bluetoothctl pairing, filter node list 2025-10-13 21:20:03 -07:00
agessaman
6d652222a8 updated broker configuration workflow 2025-10-13 21:14:54 -07:00
agessaman
dd618e451d fixed flow for non-reconfigure 2025-10-13 20:46:17 -07:00
agessaman
1e53ef39ad move ble_pairing_helper.py to download instead of embedded 2025-10-13 20:34:40 -07:00
agessaman
ac7eb31418 the final fix to ble? 2025-10-13 19:12:10 -07:00
agessaman
85be5ac811 maybe the final fix 2025-10-13 19:02:33 -07:00
agessaman
dfaf440829 changes to ble logic 2025-10-13 17:54:50 -07:00
agessaman
695b7f364e ble, ble, ble 2025-10-13 17:47:43 -07:00
agessaman
9c7dfe3935 change verification threshold for ble connect 2025-10-13 17:43:23 -07:00
agessaman
b22677b995 removed duplicate appstart 2025-10-13 17:40:11 -07:00