mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 14:50: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:
@@ -96,7 +96,7 @@ var MorseMode = (function () {
|
||||
}
|
||||
|
||||
function collectConfig() {
|
||||
return {
|
||||
var config = {
|
||||
frequency: (el('morseFrequency') && el('morseFrequency').value) || '14.060',
|
||||
gain: (el('morseGain') && el('morseGain').value) || '40',
|
||||
ppm: (el('morsePPM') && el('morsePPM').value) || '0',
|
||||
@@ -117,6 +117,17 @@ var MorseMode = (function () {
|
||||
wpm: (el('morseWpm') && el('morseWpm').value) || '15',
|
||||
wpm_lock: !!(el('morseWpmLock') && el('morseWpmLock').checked),
|
||||
};
|
||||
|
||||
// Add rtl_tcp params if using remote SDR
|
||||
if (typeof getRemoteSDRConfig === 'function') {
|
||||
var remoteConfig = getRemoteSDRConfig();
|
||||
if (remoteConfig) {
|
||||
config.rtl_tcp_host = remoteConfig.host;
|
||||
config.rtl_tcp_port = remoteConfig.port;
|
||||
}
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
function persistSettings() {
|
||||
|
||||
Reference in New Issue
Block a user