REST API: /sdrangel/config endpoint
New endpoint in the REST API to manage the "main settings" or configuration. These are:
- preferences
- working preset
- presets
- commands
It accepts the following HTTP methods: - GET: to get the complete configuration in JSON format
- PUT: to replace the current configuration with the payload in JSON format
- PATCH: to replace similar items or add items in lists with the payload in JSON format
It can be used to effectively implement a full backup (GET) and restore (PUT) using human readable backup (the JSON payload). You can use curl to make a backup or the interactive Swagger UI (click on Help -> About then on the REST API documentation link then follow the appropriate link in the browser).
A PATCH method is available also that can be used to do a partial restore. It will
- patch the preferences with the available corresponding items in the payload
- patch the working preset settings with the available corresponding items in the payload including spectrum configuration
- add available devices configurations in the payload
- add available channel configurations in the payload
- add available presets in the payload. This implements #241
Builds
sdrangel-4.11.6-win64.exe
: installation executable for Windows 64 bitssdrangel_4.11.6-1_amd64.deb
: .deb package for Ubuntu 18.04sdrangel_4.11.6-1_amd64_disco.deb
: .deb package for Ubuntu 19.04sdrangel_4.11.6-1_amd64_buster.deb
: .deb package for Debian Buster
The .deb file is a Debian package that can be installed with sudo apt-get install <.deb>
command. Occasionnally after this command you may have to force the installation of dependencies with the sudo apt-get -f install
command.
The software is installed in /usr/bin
for executables and /usr/lib/sdrangel
for the dependent shared libraries. Therefore before executing sdrangel to start the program you have to set the LD_LIBRARY_PATH
environment variable with: export LD_LIBRARY_PATH=/usr/lib/sdrangel
. This is because not all dependent libraries have their rpath set.