bug fixes and feature updates

This commit is contained in:
James Smith
2026-01-14 10:30:24 +00:00
parent aa8a6baac4
commit fe3b3b536c
8 changed files with 116 additions and 40 deletions

View File

@@ -7,8 +7,8 @@ from typing import Any
logger = logging.getLogger('intercept.dependencies')
# Additional paths to search for tools (e.g., /usr/sbin on Debian)
EXTRA_TOOL_PATHS = ['/usr/sbin', '/sbin']
# Additional paths to search for tools (e.g., /usr/sbin on Debian, /opt/local/bin for MacPorts)
EXTRA_TOOL_PATHS = ['/usr/sbin', '/sbin', '/opt/local/bin', '/opt/local/sbin']
def check_tool(name: str) -> bool:
@@ -51,7 +51,7 @@ TOOL_DEPENDENCIES = {
'description': 'Digital transmission decoder',
'install': {
'apt': 'sudo apt install multimon-ng',
'brew': 'brew install multimon-ng',
'brew': 'sudo port install multimon-ng (MacPorts) or build from source',
'manual': 'https://github.com/EliasOewornal/multimon-ng'
}
},

View File

@@ -10,6 +10,7 @@ from __future__ import annotations
from typing import Optional
from .base import CommandBuilder, SDRCapabilities, SDRDevice, SDRType
from utils.dependencies import get_tool_path
class RTLSDRCommandBuilder(CommandBuilder):
@@ -53,8 +54,9 @@ class RTLSDRCommandBuilder(CommandBuilder):
Used for pager decoding. Supports local devices and rtl_tcp connections.
"""
rtl_fm_path = get_tool_path('rtl_fm') or 'rtl_fm'
cmd = [
'rtl_fm',
rtl_fm_path,
'-d', self._get_device_arg(device),
'-f', f'{frequency_mhz}M',
'-M', modulation,
@@ -99,8 +101,9 @@ class RTLSDRCommandBuilder(CommandBuilder):
"connect to its SBS output (port 30003)."
)
dump1090_path = get_tool_path('dump1090') or 'dump1090'
cmd = [
'dump1090',
dump1090_path,
'--net',
'--device-index', str(device.index),
'--quiet'
@@ -127,8 +130,9 @@ class RTLSDRCommandBuilder(CommandBuilder):
Outputs JSON for easy parsing. Supports local devices and rtl_tcp connections.
"""
rtl_433_path = get_tool_path('rtl_433') or 'rtl_433'
cmd = [
'rtl_433',
rtl_433_path,
'-d', self._get_device_arg(device),
'-f', f'{frequency_mhz}M',
'-F', 'json'