add more inputs
This commit is contained in:
@@ -2,6 +2,8 @@ from owrx.source import SdrSource, SdrDeviceDescription
|
||||
from owrx.socket import getAvailablePort
|
||||
import socket
|
||||
from owrx.command import Flag, Option
|
||||
from typing import List
|
||||
from owrx.form import Input, NumberInput
|
||||
|
||||
import logging
|
||||
|
||||
@@ -72,4 +74,16 @@ class ConnectorSource(SdrSource):
|
||||
|
||||
|
||||
class ConnectorDeviceDescription(SdrDeviceDescription):
|
||||
pass
|
||||
def getInputs(self) -> List[Input]:
|
||||
return self.mergeInputs(
|
||||
super().getInputs(),
|
||||
[
|
||||
NumberInput(
|
||||
"rtltcp_compat",
|
||||
"Port for rtl_tcp compatible data",
|
||||
infotext="Activate an rtl_tcp compatible interface on the port number specified.<br />"
|
||||
+ "Note: Port is only available on the local machine, not on the network.<br />"
|
||||
+ "Note: IQ data may be degraded by the downsampling process to 8 bits.",
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user