26/5/2021
!!!!!!!! Very CPU intensive, run at 1024000 samplerate !!!!!!!!!!!!
============ OpenWebRX setup for SDRplay USB thing ========
1) Requires Ubuntu 20 as s/w is python3.

SDRplay_RSP_API-Linux-3.07.1.run from sdrplay.com provides an API for
all RSP1, RSP2 and uno USB devices. DOES NOT FIND RSP1 !!!! (see below, Pi image)

Download RSPTCPServer and build. Not needed, see Pi image below.

RSP_TCP connects to SDRplay API socket and provides RTL_SDR functions
on socket localhost:1234 also shows it found the SDRplay device.
https://github.com/SDRplay/RSPTCPServer.git

==== OpenWebRX on your internet facing Linux box ====
github.com/ketterl/openwebrx forked from github.com/ha7ilm/openwebrx (python2.7)
now supports python3.
======== As Ubuntu packages ============, as root
wget -O - https://repo.openwebrx.de/debian/key.gpg.txt | apt-key add
echo "deb https://repo.openwebrx.de/ubuntu/ hirsute main" > /etc/apt/sources.list.d/openwebrx.list
apt-get update
apt-get install openwebrx
# Set admin password
-----------------------

======== Run: systemctl start openwebrx ==========
Browse localhost:8073 and "No SDR receiver found"
AND can't get to "Settings".
======== Configuring ======
Edit /usr/lib/python3/dist-packages/owrx/config/defaults.py
Put in your callsign, lat & long etc. and change rtl_sdr
to rtl_tcp in "RTL-SDR USB Stick", samplerate 1024000
systemctl stop openwebrx; systemctl start openwebrx
And it's running!!!!!!!!!!! but no waterfall, needs Rx data.
==== Settings ===
/var/lib/openwebrx/settings.json

====== Pi =========
Booted SDRplay_RPi_HeadlessServer_V0.1.img.xz on RPi4B as per:
https://www.sdrplay.com/raspberry-pi-images/ pi/raspberry
Finds my SDRplay RSP1
prompt$ rsp_tcp version 1.1

API library version 3.07 found
detected RSP model 'RSP1' (hw ver 1)
listening...
----------------------

Find the Pi's IP address (DHCP), back on the OpenWebRx box,
note:       "remote": "192.168.20.142:1234"

/var/lib/openwebrx/settings.json 
{
    "version": 7,
    "sdrs": {
        "rtlsdr": {
            "name": "RSP-SDR USB SDRplay",
            "type": "rtl_tcp",
            "profiles": {
                "70cm": {
                    "name": "70cm Repeaters",
                    "center_freq": 438800000,
                    "rf_gain": 29,
                    "samp_rate": 1024000,
                    "start_freq": 439275000,
                    "start_mod": "nfm"
                },
                "2m": {
                    "name": "2m",
                    "center_freq": 145000000,
                    "rf_gain": 29,
                    "samp_rate": 1024000,
                    "start_freq": 145725000,
                    "start_mod": "nfm"
                }
            },
            "remote": "192.168.20.142:1234"
        }
    },
    "receiver_name": "[VK2ZZZ]",
    "receiver_location": "Sydney, Australia",
    "receiver_asl": 40,
    "receiver_admin": "example@example.com",
    "receiver_gps": {
        "lat": -33.742077890426444,
        "lon": 150.6496391296387
    },
    "photo_title": "piXture, image rendered by X11",
    "photo_desc": "",
    "max_clients": 20,
    "receiver_keys": [
        ""
    ],
    "waterfall_scheme": "GoogleTurboWaterfall",
    "fft_fps": 9,
    "fft_size": 4096,
    "fft_voverlap_factor": 0.3,
    "waterfall_levels": {
        "min": -88.0,
        "max": -20.0
    },
    "waterfall_auto_levels": {
        "min": 3.0,
        "max": 10.0
    },
    "waterfall_auto_min_range": 50,
    "audio_compression": "adpcm",
    "fft_compression": "adpcm",
    "tuning_precision": 2,
    "google_maps_api_key": "",
    "map_position_retention_time": 7200
}
--------- end -------------------
Public access: http://nepeanshed.org.au:8073		server2

The SDRplay RSP1 device was not "found" by SDRplay's driver on a Linux PC but their
HeadlessServer image on a Raspberry Pi 4B did find it. But only in
8bit data mode.  Check the "rsp_tcp" usage message, the "-b 16" option is there.
owrx16bit1.tgz in this directory has the changes for owrx_connector.
A settings.json file is in the sourcePython directory along with the changed Python.
Note the "16bit" : "512", line. 10bit data as positive integers, 0 - 1023 half is 512.
Use 2048 for 12bit SDRs.
You'll need to recompile rtl_tcp_connector and place in $PATH such as /usr/local/bin.
And, replace rtl_tcp.py in /usr/lib/python3/dist-packages/owrx/source/.
The FreeDV mode is in /usr/lib/python3/dist-packages/csdr/__init__.py line 216

---------- My other SDR, a HackRF One, research ---------------
:
##git clone https://github.com/SDRplay/ExtIO_RSP_TCP
:
##git clone https://github.com/SDRplay/RSPTCPServer.git
:
##wget https://www.sdrplay.com/software/SDRplay_ExtIO_TCP_1.2.zip
:
git clone https://github.com/pothosware/SoapySDR.git
git clone https://github.com/pothosware/SoapyHackRF.git
git clone https://github.com/pothosware/SoapySDRPlay3.git
cd SoapySDR

SoapySDRUtil --probe="driver=sdrplay"