Commit graph

139 commits

Author SHA1 Message Date
agessaman
82af01c8ea add hatching to nix build, update test to use the flake-parts structure 2025-11-09 12:38:18 -08:00
agessaman
baaeeb92f5 - Modified the GitHub Actions workflow to limit the build matrix to only x86_64-linux, commenting out aarch64-linux due to slower cross-compilation requirements.
- Updated the `sha256` hash for the Python package fetching in `packages.nix` to a specific value for consistency.
2025-11-09 12:36:00 -08:00
agessaman
588eb674b7 update nixos config 2025-11-09 12:32:53 -08:00
agessaman
e41be84753 initial nixos support 2025-11-09 12:29:04 -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
aaa0cac188 Add packet type filtering for MQTT uploads
- Introduced a new environment variable `PACKETCAPTURE_UPLOAD_PACKET_TYPES` to specify which packet types to upload to MQTT.
- Updated `packet_capture.py` to filter packets based on the allowed types, ensuring only specified types are uploaded while still capturing all packets.
- Updated documentation in README.md to explain the new filtering feature and provide usage examples.
2025-11-09 11:56:23 -08:00
agessaman
bf411ebe68 removed non-working python JWT generator fallback, added logging to clarify need for meshcore-decoder 2025-11-09 08:22:21 -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
fbb3426e0b update version number to patch install.sh 2025-11-02 11:49:24 -08:00
agessaman
155fba7fab Introduced brief delays to allow for complete cleanup and connection establishment, particularly for BLE connections. Updated event subscription cleanup. 2025-11-02 09:31:40 -08:00
agessaman
fc53df1fdb Refactor transport retrieval and TCP keepalive configuration in packet_capture.py 2025-11-01 19:01:32 -07:00
agessaman
cc10de3fd4 Add MQTT health check and transport retrieval functionality
- Introduced `get_transport` function to retrieve transport from meshcore instance.
- Added MQTT health check with grace period to track broker connection status.
- Enhanced connection handling for TCP with SDK auto-reconnect settings.
- Implemented cleanup of event subscriptions before disconnecting to prevent pending tasks.
- Updated connection monitoring to handle MQTT health checks and reconnection logic more effectively.
2025-11-01 15:23:49 -07:00
agessaman
052d7b55f6 improve handling of situations where an IATA code is not set to prevent publishing to meshcore/packets and meshcore/status on Let's Mesh Analyzer servers. 2025-11-01 09:19:16 -07:00
agessaman
16786b6507 Added version reporting fallback in packet_capture.py to use git information if .version_info doesn't exist. Adjust Dockerfile syntax for consistency. 2025-10-29 21:55:10 -07:00
Adam Gessaman
bfdc3e53fd
Merge pull request #4 from mannkind/fix_nvm_install
Docker nvm install location fix
2025-10-27 22:37:13 -07:00
agessaman
e12cc156b9 added better shutdown event handling and introduced radio clock sync 2025-10-27 18:33:06 -07:00
Dustin Brewer
264545564d Make node/meshcore-decoder usable by meshcore user 2025-10-26 18:51:40 -07:00
agessaman
7942ebca0c Update Node.js version to lts/* in Dockerfile 2025-10-26 10:56:37 -07:00
agessaman
3a0c090467 Update Dockerfile to use Node 22+ 2025-10-26 10:50:28 -07:00
agessaman
26f9f0fac6 fix node install 2025-10-26 10:33:18 -07:00
agessaman
da920eee9b added meshcore-decoder to the Dockerfile
Moved from custom reconnection logic back to letting paho-mqtt manage reconnection.
2025-10-26 10:03:27 -07:00
agessaman
6436bc5f87 remove *.txt from dockerignore filters 2025-10-25 10:06:13 -07:00
agessaman
bcef2aa5ff remove config.ini from dockerfile 2025-10-25 10:03:29 -07:00
agessaman
7223e12992 revised Dockerfile to include meshcore-decoder 2025-10-25 10:00:44 -07: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
agessaman
568b82623f Remove .cursor/ directory from repo and add to .gitignore 2025-10-23 19:02:48 -07:00
agessaman
f34288cef6 clean up duplicate stop() functions, removed unused sync_status_post(), removed unused sys import 2025-10-23 18:51:28 -07:00
Adam Gessaman
d4a91bfe75
Merge pull request #3 from michaelhart/main
Remove problematic service changes
2025-10-23 17:46:33 -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
f312d2ae55 Enhance JWT token renewal process in PacketCapture class to prevent duplicate tasks and improve resource management. Introduce active task tracking and adjust sleep duration to reduce CPU usage. Update README to clarify compatibility for Companion radios and provide installation guidance. 2025-10-22 19:41:39 -07:00
agessaman
461b2e49b9 Updated status payload to include radio information 2025-10-20 22:28:07 -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
9d674e2151 Remove deprecated install_fixed.ps1 script and integrate its functionality into install.ps1, enhancing the installation process for MeshCore Packet Capture with improved Bluetooth pairing methods and configuration options. 2025-10-17 22:38:18 -07:00
agessaman
f536937ed4 Refactor MAC address extraction logic in BLE installation to improve readability and maintainability 2025-10-17 22:29:18 -07:00
agessaman
99625f368b Enhance MAC address extraction in BLE installation process with fallback options for Windows devices 2025-10-17 22:27:45 -07:00
agessaman
e8c004abbc add additional mqtt broker configuration 2025-10-17 22:05:31 -07:00
agessaman
1a83294a90 switch to pairing using windows native approach 2025-10-17 21:36:49 -07:00
agessaman
9c4e21bfba Enhance BLE installation process with dependency checks and manual entry fallback 2025-10-17 21:30:52 -07:00
agessaman
81ac2476f4 run helpers in venv 2025-10-17 21:26:23 -07:00
agessaman
6fb3249b63 improve logging and timeouts 2025-10-17 21:22:16 -07:00
agessaman
d3da26e3db add timeouts to install script and parameters to pairing 2025-10-17 21:10:38 -07:00
agessaman
ff1b1bd8ca add ble pairing helper to ps1 installer 2025-10-17 21:06:48 -07:00