diff --git a/docker/scripts/install-connectors.sh b/docker/scripts/install-connectors.sh index 413087ee..e96a67ff 100755 --- a/docker/scripts/install-connectors.sh +++ b/docker/scripts/install-connectors.sh @@ -24,8 +24,8 @@ apt-get update apt-get -y install --no-install-recommends $BUILD_PACKAGES git clone https://github.com/jketterl/owrx_connector.git -# latest develop as of 2023-07-04 (cmake exports) -cmakebuild owrx_connector 5266c7d44be48c2583dd76cd2341b0d453c93dd7 +# latest develop as of 2023-08-04 (direct_sampling for rtl_tcp_connector) +cmakebuild owrx_connector 5341601af353a60d5b3c66ece8bb8ac85bfdae7d apt-get -y purge --autoremove $BUILD_PACKAGES apt-get clean diff --git a/owrx/source/rtl_tcp.py b/owrx/source/rtl_tcp.py index 6c3f7d2c..6e1a3c40 100644 --- a/owrx/source/rtl_tcp.py +++ b/owrx/source/rtl_tcp.py @@ -1,7 +1,7 @@ from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription from owrx.command import Flag, Option, Argument from owrx.form.input import Input -from owrx.form.input.device import RemoteInput +from owrx.form.input.device import RemoteInput, DirectSamplingInput from typing import List @@ -26,7 +26,13 @@ class RtlTcpDeviceDescription(ConnectorDeviceDescription): return "RTL-SDR device (via rtl_tcp)" def getInputs(self) -> List[Input]: - return super().getInputs() + [RemoteInput()] + return super().getInputs() + [RemoteInput(), DirectSamplingInput()] def getDeviceMandatoryKeys(self): return super().getDeviceMandatoryKeys() + ["remote"] + + def getDeviceOptionalKeys(self): + return super().getDeviceOptionalKeys() + ["direct_sampling"] + + def getProfileOptionalKeys(self): + return super().getProfileOptionalKeys() + ["direct_sampling"]