mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 15:20:00 -07:00
feat: add rtl_tcp remote SDR support to aprs, morse, and dsc routes
Closes #164. Only pager and sensor routes supported rtl_tcp connections. Now aprs, morse, and dsc routes follow the same pattern: extract rtl_tcp_host/port from the request, skip local device claiming for remote connections, and use SDRFactory.create_network_device(). DSC also refactored from manual rtl_fm command building to use SDRFactory's builder abstraction. Frontend wired up for all three modes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9797,6 +9797,10 @@
|
||||
const isAgentMode = typeof currentAgent !== 'undefined' && currentAgent !== 'local';
|
||||
aprsCurrentAgent = isAgentMode ? currentAgent : null;
|
||||
|
||||
// Check for remote SDR (only for local mode)
|
||||
const remoteConfig = isAgentMode ? null : getRemoteSDRConfig();
|
||||
if (remoteConfig === false) return; // Validation failed
|
||||
|
||||
// Build request body
|
||||
const requestBody = {
|
||||
region,
|
||||
@@ -9805,6 +9809,12 @@
|
||||
sdr_type: sdrType
|
||||
};
|
||||
|
||||
// Add rtl_tcp params if using remote SDR
|
||||
if (remoteConfig) {
|
||||
requestBody.rtl_tcp_host = remoteConfig.host;
|
||||
requestBody.rtl_tcp_port = remoteConfig.port;
|
||||
}
|
||||
|
||||
// Add custom frequency if selected
|
||||
if (region === 'custom') {
|
||||
const customFreq = document.getElementById('aprsStripCustomFreq').value;
|
||||
|
||||
Reference in New Issue
Block a user