Migrate to git
7
openwebrx/.dockerignore
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.idea
|
||||||
|
**/*.pyc
|
||||||
|
**/*.swp
|
||||||
|
black-env
|
||||||
|
debian
|
204
openwebrx/CHANGELOG.md
Normal file
|
@ -0,0 +1,204 @@
|
||||||
|
**1.1.0**
|
||||||
|
- Reworked most graphical elements as SVGs for faster loadtimes and crispier display on hi-dpi displays
|
||||||
|
- Updated pipelines to match changes in digiham
|
||||||
|
- Changed D-Star and NXDN integrations to use new decoders from digiham
|
||||||
|
- Added D-Star and NXDN metadata display
|
||||||
|
|
||||||
|
**1.0.0**
|
||||||
|
- Introduced `squelch_auto_margin` config option that allows configuring the auto squelch level
|
||||||
|
- Removed `port` configuration option; `rtltcp_compat` takes the port number with the new connectors
|
||||||
|
- Added support for new WSJT-X modes FST4, FST4W (only available with WSJT-X 2.3) and Q65 (only avilable with
|
||||||
|
WSJT-X 2.4)
|
||||||
|
- Added support for demodulating M17 digital voice signals using m17-cxx-demod
|
||||||
|
- New reporting infrastructure, allowing WSPR and FST4W spots to be sent to wsprnet.org
|
||||||
|
- Add some basic filtering capabilities to the map
|
||||||
|
- New arguments to the `openwebrx` command-line to facilitate the administration of users (try `openwebrx admin`)
|
||||||
|
- Default bandwidth changes:
|
||||||
|
- "WFM" changed to 150kHz
|
||||||
|
- "Packet" (APRS) changed to 12.5kHz
|
||||||
|
- Configuration rework:
|
||||||
|
- New: fully web-based configuration interface
|
||||||
|
- System configuration parameters have been moved to a new, separate `openwebrx.conf` file
|
||||||
|
- Remaining parameters are now editable in the web configuration
|
||||||
|
- Existing `config_webrx.py` files will still be read, but changes made in the web configuration will be written to
|
||||||
|
a new storage system
|
||||||
|
- Added upload of avatar and panorama image via web configuration
|
||||||
|
- New devices supported:
|
||||||
|
- HPSDR devices (Hermes Lite 2) thanks to @jancona
|
||||||
|
- BBRF103 / RX666 / RX888 devices supported by libsddc
|
||||||
|
- R&S devices using the EB200 or Ammos protocols
|
||||||
|
|
||||||
|
**0.20.3**
|
||||||
|
- Fix a compatibility issue with python versions <= 3.6
|
||||||
|
|
||||||
|
**0.20.2**
|
||||||
|
- Fix a security problem that allowed arbitrary commands to be executed on the receiver
|
||||||
|
([See github issue #215](https://github.com/jketterl/openwebrx/issues/215))
|
||||||
|
|
||||||
|
**0.20.1**
|
||||||
|
- Remove broken OSM map fallback
|
||||||
|
|
||||||
|
**0.20.0**
|
||||||
|
- Added the ability to sign multiple keys in a single request, thus enabling multiple users to claim a single receiver
|
||||||
|
on receiverbook.de
|
||||||
|
- Fixed file descriptor leaks to prevent "too many open files" errors
|
||||||
|
- Add new demodulator chain for FreeDV
|
||||||
|
- Added new HD audio streaming mode along with a new WFM demodulator
|
||||||
|
- Reworked AGC code for better results in AM, SSB and digital modes
|
||||||
|
- Added support for demodulation of "Digital Radio Mondiale" (DRM) broadcast using the "dream" decoder.
|
||||||
|
- New default waterfall color scheme
|
||||||
|
- Prototype of a continuous automatic waterfall calibration mode
|
||||||
|
- New devices supported:
|
||||||
|
- FunCube Dongle Pro+ (`"type": "fcdpp"`)
|
||||||
|
- Support for connections to rtl_tcp (`"type": "rtl_tcp"`)
|
||||||
|
|
||||||
|
**0.19.1**
|
||||||
|
- Added ability to authenticate receivers with listing sites using "receiver id" tokens
|
||||||
|
|
||||||
|
**0.19.0**
|
||||||
|
- Fix direwolf connection setup by implementing a retry loop
|
||||||
|
- Pass direct sampling mode changes for rtl_sdr_soapy to owrx_connector
|
||||||
|
- OSM maps instead of Google when google_maps_api_key is not set (thanks @jquagga)
|
||||||
|
- Improved logic to pass parameters to soapy devices.
|
||||||
|
- `rtl_sdr_soapy`: added support for `bias_tee`
|
||||||
|
- `sdrplay`: added support for `bias_tee`, `rf_notch` and `dab_notch`
|
||||||
|
- `airspy`: added support for `bitpack`
|
||||||
|
- Added support for Perseus-SDR devices, (thanks @amontefusco)
|
||||||
|
- Property System has been rewritten so that defaults on sdr behave as expected
|
||||||
|
- Waterfall range auto-adjustment now only takes the center 80% of the spectrum into account, which should work better
|
||||||
|
with SDRs that oversample or have rather flat filter curves towards the spectrum edges
|
||||||
|
- Bugfix for negative network usage
|
||||||
|
- FiFi SDR: prevent arecord from shutting down after 2GB of data has been sent
|
||||||
|
- Added support for bias tee control on rtl_sdr devices
|
||||||
|
- All connector driven SDRs now support `"rf_gain": "auto"` to enable AGC
|
||||||
|
- `rtl_sdr` type now also supports the `direct_sampling` option
|
||||||
|
- Added decoding implementation for for digimode "JS8Call"
|
||||||
|
(requires an installation of [js8call](http://js8call.com/) and
|
||||||
|
[the js8py library](https://github.com/jketterl/js8py))
|
||||||
|
- Reorganization of the frontend demodulator code
|
||||||
|
- Improve receiver load time by concatenating javascript assets
|
||||||
|
- Docker images migrated to Debian slim images; This was necessary to allow the use of function multiversioning in
|
||||||
|
csdr and owrx_connector to allow the images to run on a wider range of CPUs
|
||||||
|
- Docker containers have been updated to include the SDRplay driver version 3
|
||||||
|
- HackRF support is now based on SoapyHackRF
|
||||||
|
- Removed sdr.hu server listing support since the site has been shut down
|
||||||
|
- Added support for Radioberry 2 Rasbperry Pi SDR Cape
|
||||||
|
|
||||||
|
**0.18.0**
|
||||||
|
- Support for SoapyRemote
|
||||||
|
|
||||||
|
**2020-02-08**
|
||||||
|
- Compression, resampling and filtering in the frontend have been rewritten in javascript, sdr.js has been removed
|
||||||
|
- Decoding of Pocsag modulation is now possible
|
||||||
|
- Removed the 3D waterfall since it had no real application and required ~1MB of javascript code to be downloaded
|
||||||
|
- Improved the frontend handling of the "too many users" scenario
|
||||||
|
- PSK63 digimode is now available (same decoding pipeline as PSK31, but with adopted parameters)
|
||||||
|
- The frequency can now be manipulated with the mousewheel, which should allow the user to tune more precise. The tuning
|
||||||
|
step size is determined by the digit the mouse cursor is hovering over.
|
||||||
|
- Clicking on the frequency now opens an input for direct frequency selection
|
||||||
|
- URL hashes have been fixed and improved: They are now updated automatically, so a shared URL will include frequency
|
||||||
|
and demodulator, which allows for improved sharing and linking.
|
||||||
|
- New daylight scheduler for background decoding, allows profiles to be selected by local sunrise / sunset times
|
||||||
|
- New devices supported:
|
||||||
|
- LimeSDR (`"type": "lime_sdr"`)
|
||||||
|
- PlutoSDR (`"type": "pluto_sdr"`)
|
||||||
|
- RTL_SDR via Soapy (`"type": "rtl_sdr_soapy"`) on special request to allow use of the direct sampling mode
|
||||||
|
|
||||||
|
**2020-01-04**
|
||||||
|
- The [owrx_connector](https://github.com/jketterl/owrx_connector) is now the default way of communicating with sdr
|
||||||
|
devices. The old sdr types have been replaced, all `_connector` suffixes on the type must be removed!
|
||||||
|
- The sources have been refactored, making it a lot easier to add support for other devices
|
||||||
|
- SDR device failure handling has been improved, including user feedback
|
||||||
|
- New devices supported:
|
||||||
|
- FiFiSDR (`"type": "fifi_sdr"`)
|
||||||
|
|
||||||
|
**2019-12-15**
|
||||||
|
- wsjt-x updated to 2.1.2
|
||||||
|
- The rtl_tcp compatibility mode of the owrx_connector is now configurable using the `rtltcp_compat` flag
|
||||||
|
|
||||||
|
**2019-12-10**
|
||||||
|
- added support for airspyhf devices (Airspy HF+ / Discovery)
|
||||||
|
|
||||||
|
**2019-12-05**
|
||||||
|
- explicit device filter for soapy devices for multi-device setups
|
||||||
|
|
||||||
|
**2019-12-03**
|
||||||
|
- compatibility fixes for safari browsers (ios and mac)
|
||||||
|
|
||||||
|
**2019-11-24**
|
||||||
|
- There is now a new way to interface with SDR hardware, .
|
||||||
|
They talk directly to the hardware (no rtl_sdr / rx_sdr necessary) and offer I/Q data on a socket, just like nmux
|
||||||
|
did before. They additionally offer a control socket that allows openwebrx to control the SDR parameters directly,
|
||||||
|
without the need for repeated restarts. This allows for quicker profile changes, and also reduces the risk of your
|
||||||
|
SDR hardware from failing during the switchover. See `config_webrx.py` for further information and instructions.
|
||||||
|
- Offset tuning using the `lfo_offset` has been reworked in a way that `center_freq` has to be set to the frequency you
|
||||||
|
actually want to listen to. If you're using an `lfo_offset` already, you will probably need to change its sign.
|
||||||
|
- `initial_squelch_level` can now be set on each profile.
|
||||||
|
- As usual, plenty of fixes and improvements.
|
||||||
|
|
||||||
|
**2019-10-27**
|
||||||
|
- Part of the frontend code has been reworked
|
||||||
|
- Audio buffer minimums have been completely stripped. As a result, you should get better latency. Unfortunately,
|
||||||
|
this also means there will be some skipping when audio starts.
|
||||||
|
- Now also supports AudioWorklets (for those browser that have it). The Raspberry Pi image has been updated to include
|
||||||
|
https due to the SecureContext requirement.
|
||||||
|
- Mousewheel controls for the receiver sliders
|
||||||
|
- Error handling for failed SDR devices
|
||||||
|
|
||||||
|
**2019-09-29**
|
||||||
|
- One of the most-requested features is finally coming to OpenWebRX: Bookmarks (sometimes also referred to as labels).
|
||||||
|
There's two kinds of bookmarks available:
|
||||||
|
- Serverside bookmarks that are set up by the receiver administrator. Check the file `bookmarks.json` for examples!
|
||||||
|
- Clientside bookmarks which every user can store for themselves. They are stored in the browser's localStorage.
|
||||||
|
- Some more bugs in the websocket handling have been fixed.
|
||||||
|
|
||||||
|
**2019-09-25**
|
||||||
|
- Automatic reporting of spots to [pskreporter](https://pskreporter.info/) is now possible. Please have a look at the
|
||||||
|
configuration on how to set it up.
|
||||||
|
- Websocket communication has been overhauled in large parts. It should now be more reliable, and failing connections
|
||||||
|
should now have no impact on other users.
|
||||||
|
- Profile scheduling allows to set up band-hopping if you are running background services.
|
||||||
|
- APRS now has the ability to show symbols on the map, if a corresponding symbol set has been installed. Check the
|
||||||
|
config!
|
||||||
|
- Debug logging has been disabled in a handful of modules, expect vastly reduced output on the shell.
|
||||||
|
|
||||||
|
**2019-09-13**
|
||||||
|
- New set of APRS-related features
|
||||||
|
- Decode Packet transmissions using [direwolf](https://github.com/wb2osz/direwolf) (1k2 only for now)
|
||||||
|
- APRS packets are mostly decoded and shown both in a new panel and on the map
|
||||||
|
- APRS is also available as a background service
|
||||||
|
- direwolfs I-gate functionality can be enabled, which allows your receiver to work as a receive-only I-gate for the
|
||||||
|
APRS network in the background
|
||||||
|
- Demodulation for background services has been optimized to use less total bandwidth, saving CPU
|
||||||
|
- More metrics have been added; they can be used together with collectd and its curl_json plugin for now, with some
|
||||||
|
limitations.
|
||||||
|
|
||||||
|
**2019-07-21**
|
||||||
|
- Latest Features:
|
||||||
|
- More WSJT-X modes have been added, including the new FT4 mode
|
||||||
|
- I started adding a bandplan feature, the first thing visible is the "dial" indicator that brings you right to the
|
||||||
|
dial frequency for digital modes
|
||||||
|
- fixed some bugs in the websocket communication which broke the map
|
||||||
|
|
||||||
|
**2019-07-13**
|
||||||
|
- Latest Features:
|
||||||
|
- FT8 Integration (using wsjt-x demodulators)
|
||||||
|
- New Map Feature that shows both decoded grid squares from FT8 and Locations decoded from YSF digital voice
|
||||||
|
- New Feature report that will show what functionality is available
|
||||||
|
- There's a new Raspbian SD Card image available (see below)
|
||||||
|
|
||||||
|
**2019-06-30**
|
||||||
|
- I have done some major rework on the openwebrx core, and I am planning to continue adding more features in the near
|
||||||
|
future. Please check this place for updates.
|
||||||
|
- My work has not been accepted into the upstream repository, so you will need to chose between my fork and the official
|
||||||
|
version.
|
||||||
|
- I have enabled the issue tracker on this project, so feel free to file bugs or suggest enhancements there!
|
||||||
|
- This version sports the following new and amazing features:
|
||||||
|
- Support of multiple SDR devices simultaneously
|
||||||
|
- Support for multiple profiles per SDR that allow the user to listen to different frequencies
|
||||||
|
- Support for digital voice decoding
|
||||||
|
- Feature detection that will disable functionality when dependencies are not available (if you're missing the digital
|
||||||
|
buttons, this is probably why)
|
||||||
|
- Raspbian SD Card Images and Docker builds available (see below)
|
||||||
|
- I am currently working on the feature set for a stable release, but you are more than welcome to test development
|
||||||
|
versions!
|
661
openwebrx/LICENSE.txt
Normal file
|
@ -0,0 +1,661 @@
|
||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
60
openwebrx/README.md
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
OpenWebRX
|
||||||
|
=========
|
||||||
|
|
||||||
|
OpenWebRX is a multi-user SDR receiver software with a web interface.
|
||||||
|
|
||||||
|
![OpenWebRX](https://www.openwebrx.de/gfx/openwebrx-screenshot.png)
|
||||||
|
|
||||||
|
It has the following features:
|
||||||
|
|
||||||
|
- [csdr](https://github.com/jketterl/csdr) based demodulators (AM/FM/SSB/CW/BPSK31/BPSK63)
|
||||||
|
- filter passband can be set from GUI
|
||||||
|
- it extensively uses HTML5 features like WebSocket, Web Audio API, and Canvas
|
||||||
|
- it works in Google Chrome, Chromium and Mozilla Firefox
|
||||||
|
- supports a wide range of [SDR hardware](https://github.com/jketterl/openwebrx/wiki/Supported-Hardware#sdr-devices)
|
||||||
|
- Multiple SDR devices can be used simultaneously
|
||||||
|
- [digiham](https://github.com/jketterl/digiham) based demodularors (DMR, YSF, Pocsag, D-Star, NXDN)
|
||||||
|
- [wsjt-x](https://physics.princeton.edu/pulsar/k1jt/wsjtx.html) based demodulators (FT8, FT4, WSPR, JT65, JT9, FST4,
|
||||||
|
FST4W)
|
||||||
|
- [direwolf](https://github.com/wb2osz/direwolf) based demodulation of APRS packets
|
||||||
|
- [JS8Call](http://js8call.com/) support
|
||||||
|
- [DRM](https://github.com/jketterl/openwebrx/wiki/DRM-demodulator-notes) support
|
||||||
|
- [FreeDV](https://github.com/jketterl/openwebrx/wiki/FreeDV-demodulator-notes) support
|
||||||
|
- M17 support based on [m17-cxx-demod](https://github.com/mobilinkd/m17-cxx-demod)
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
The following methods of setting up a receiver are currently available:
|
||||||
|
|
||||||
|
- Raspberry Pi SD card images
|
||||||
|
- Debian repository
|
||||||
|
- Docker images
|
||||||
|
- Manual installation
|
||||||
|
|
||||||
|
Please checkout the [setup guide on the wiki](https://github.com/jketterl/openwebrx/wiki/Setup-Guide) for more details
|
||||||
|
on the respective methods.
|
||||||
|
|
||||||
|
## Community
|
||||||
|
|
||||||
|
If you have trouble setting up or configuring your receiver, you have some great idea you want to see implemented, or
|
||||||
|
you just generally want to have some OpenWebRX-related chat, come visit us over on
|
||||||
|
[our groups.io group](https://groups.io/g/openwebrx).
|
||||||
|
|
||||||
|
If you want to hang out, chat, or get in touch directly with the developers, receiver operators or users, feel free to
|
||||||
|
drop by in [our Discord server](https://discord.gg/gnE9hPz).
|
||||||
|
|
||||||
|
## Usage tips
|
||||||
|
|
||||||
|
You can zoom the waterfall display by the mouse wheel. You can also drag the waterfall to pan across it.
|
||||||
|
|
||||||
|
The filter envelope can be dragged at its ends and moved around to set the passband.
|
||||||
|
|
||||||
|
However, if you hold down the shift key, you can drag the center line (BFO) or the whole passband (PBS).
|
||||||
|
|
||||||
|
## Licensing
|
||||||
|
|
||||||
|
OpenWebRX is available under Affero GPL v3 license
|
||||||
|
([summary](https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0))).
|
||||||
|
|
||||||
|
OpenWebRX is also available under a commercial license on request. Please contact me at the address
|
||||||
|
*<randras@sdr.hu>* for licensing options.
|
367
openwebrx/bands.json
Normal file
|
@ -0,0 +1,367 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "2190m",
|
||||||
|
"lower_bound": 135700,
|
||||||
|
"upper_bound": 137800,
|
||||||
|
"frequencies": {
|
||||||
|
"fst4": 136000,
|
||||||
|
"fst4w": 136000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "630m",
|
||||||
|
"lower_bound": 472000,
|
||||||
|
"upper_bound": 479000,
|
||||||
|
"frequencies": {
|
||||||
|
"fst4": 474200,
|
||||||
|
"fst4w": 474200
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "160m",
|
||||||
|
"lower_bound": 1810000,
|
||||||
|
"upper_bound": 2000000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 1838000,
|
||||||
|
"ft8": 1840000,
|
||||||
|
"wspr": 1836600,
|
||||||
|
"jt65": 1838000,
|
||||||
|
"jt9": 1839000,
|
||||||
|
"js8": 1842000,
|
||||||
|
"fst4": 1839000,
|
||||||
|
"fst4w": 1836800
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "80m",
|
||||||
|
"lower_bound": 3500000,
|
||||||
|
"upper_bound": 3800000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 3580000,
|
||||||
|
"ft8": 3573000,
|
||||||
|
"wspr": 3592600,
|
||||||
|
"jt65": 3570000,
|
||||||
|
"jt9": 3572000,
|
||||||
|
"ft4": [3568000, 3575000],
|
||||||
|
"js8": 3578000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "60m",
|
||||||
|
"lower_bound": 5351500,
|
||||||
|
"upper_bound": 5366500,
|
||||||
|
"frequencies": {
|
||||||
|
"ft8": 5357000,
|
||||||
|
"wspr": 5364700
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "40m",
|
||||||
|
"lower_bound": 7000000,
|
||||||
|
"upper_bound": 7200000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 7040000,
|
||||||
|
"ft8": 7074000,
|
||||||
|
"wspr": 7038600,
|
||||||
|
"jt65": 7076000,
|
||||||
|
"jt9": 7078000,
|
||||||
|
"ft4": 7047500,
|
||||||
|
"js8": 7078000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "30m",
|
||||||
|
"lower_bound": 10100000,
|
||||||
|
"upper_bound": 10150000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 10141000,
|
||||||
|
"ft8": 10136000,
|
||||||
|
"wspr": 10138700,
|
||||||
|
"jt65": 10138000,
|
||||||
|
"jt9": 10140000,
|
||||||
|
"ft4": 10140000,
|
||||||
|
"js8": 10130000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "20m",
|
||||||
|
"lower_bound": 14000000,
|
||||||
|
"upper_bound": 14350000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 14070000,
|
||||||
|
"ft8": 14074000,
|
||||||
|
"wspr": 14095600,
|
||||||
|
"jt65": 14076000,
|
||||||
|
"jt9": 14078000,
|
||||||
|
"ft4": 14080000,
|
||||||
|
"js8": 14078000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "17m",
|
||||||
|
"lower_bound": 18068000,
|
||||||
|
"upper_bound": 18168000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 18098000,
|
||||||
|
"ft8": 18100000,
|
||||||
|
"wspr": 18104600,
|
||||||
|
"jt65": 18102000,
|
||||||
|
"jt9": 18104000,
|
||||||
|
"ft4": 18104000,
|
||||||
|
"js8": 18104000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "15m",
|
||||||
|
"lower_bound": 21000000,
|
||||||
|
"upper_bound": 21450000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 21070000,
|
||||||
|
"ft8": 21074000,
|
||||||
|
"wspr": 21094600,
|
||||||
|
"jt65": 21076000,
|
||||||
|
"jt9": 21078000,
|
||||||
|
"ft4": 21140000,
|
||||||
|
"js8": 21078000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "12m",
|
||||||
|
"lower_bound": 24890000,
|
||||||
|
"upper_bound": 24990000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 24920000,
|
||||||
|
"ft8": 24915000,
|
||||||
|
"wspr": 24924600,
|
||||||
|
"jt65": 24917000,
|
||||||
|
"jt9": 24919000,
|
||||||
|
"ft4": 24919000,
|
||||||
|
"js8": 24922000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "10m",
|
||||||
|
"lower_bound": 28000000,
|
||||||
|
"upper_bound": 29700000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": [28070000, 28120000],
|
||||||
|
"ft8": 28074000,
|
||||||
|
"wspr": 28124600,
|
||||||
|
"jt65": 28076000,
|
||||||
|
"jt9": 28078000,
|
||||||
|
"ft4": 28180000,
|
||||||
|
"js8": 28078000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "6m",
|
||||||
|
"lower_bound": 50030000,
|
||||||
|
"upper_bound": 51000000,
|
||||||
|
"frequencies": {
|
||||||
|
"bpsk31": 50305000,
|
||||||
|
"ft8": 50313000,
|
||||||
|
"wspr": 50293000,
|
||||||
|
"jt65": 50310000,
|
||||||
|
"jt9": 50312000,
|
||||||
|
"ft4": 50318000,
|
||||||
|
"js8": 50318000,
|
||||||
|
"q65": [50211000, 50275000]
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "4m",
|
||||||
|
"lower_bound": 70150000,
|
||||||
|
"upper_bound": 70200000,
|
||||||
|
"frequencies": {
|
||||||
|
"wspr": 70091000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "2m",
|
||||||
|
"lower_bound": 144000000,
|
||||||
|
"upper_bound": 146000000,
|
||||||
|
"frequencies": {
|
||||||
|
"wspr": 144489000,
|
||||||
|
"ft8": 144174000,
|
||||||
|
"ft4": 144170000,
|
||||||
|
"jt65": 144120000,
|
||||||
|
"packet": 144800000,
|
||||||
|
"q65": 144116000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "70cm",
|
||||||
|
"lower_bound": 430000000,
|
||||||
|
"upper_bound": 440000000,
|
||||||
|
"frequencies": {
|
||||||
|
"pocsag": 439987500,
|
||||||
|
"q65": 432065000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "23cm",
|
||||||
|
"lower_bound": 1240000000,
|
||||||
|
"upper_bound": 1300000000,
|
||||||
|
"frequencies": {
|
||||||
|
"q65": 1296065000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "13cm",
|
||||||
|
"lower_bound": 2320000000,
|
||||||
|
"upper_bound": 2450000000,
|
||||||
|
"frequencies": {
|
||||||
|
"q65": [2301065000, 2304065000, 2320065000]
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "9cm",
|
||||||
|
"lower_bound": 3400000000,
|
||||||
|
"upper_bound": 3475000000,
|
||||||
|
"frequencies": {
|
||||||
|
"q65": 3400065000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "6cm",
|
||||||
|
"lower_bound": 5650000000,
|
||||||
|
"upper_bound": 5850000000,
|
||||||
|
"frequencies": {
|
||||||
|
"q65": 5760200000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "3cm",
|
||||||
|
"lower_bound": 10000000000,
|
||||||
|
"upper_bound": 10500000000,
|
||||||
|
"frequencies": {
|
||||||
|
"q65": 10368200000
|
||||||
|
},
|
||||||
|
"tags": ["hamradio"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "120m Broadcast",
|
||||||
|
"lower_bound": 2300000,
|
||||||
|
"upper_bound": 2495000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "90m Broadcast",
|
||||||
|
"lower_bound": 3200000,
|
||||||
|
"upper_bound": 3400000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "75m Broadcast",
|
||||||
|
"lower_bound": 3900000,
|
||||||
|
"upper_bound": 4000000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "60m Broadcast",
|
||||||
|
"lower_bound": 4750000,
|
||||||
|
"upper_bound": 4995000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "49m Broadcast",
|
||||||
|
"lower_bound": 5900000,
|
||||||
|
"upper_bound": 6200000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "41m Broadcast",
|
||||||
|
"lower_bound": 7200000,
|
||||||
|
"upper_bound": 7450000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "31m Broadcast",
|
||||||
|
"lower_bound": 9400000,
|
||||||
|
"upper_bound": 9900000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "25m Broadcast",
|
||||||
|
"lower_bound": 11600000,
|
||||||
|
"upper_bound": 12100000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "22m Broadcast",
|
||||||
|
"lower_bound": 13570000,
|
||||||
|
"upper_bound": 13870000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "19m Broadcast",
|
||||||
|
"lower_bound": 15100000,
|
||||||
|
"upper_bound": 15830000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "16m Broadcast",
|
||||||
|
"lower_bound": 17480000,
|
||||||
|
"upper_bound": 17900000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "15m Broadcast",
|
||||||
|
"lower_bound": 18900000,
|
||||||
|
"upper_bound": 19020000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "13m Broadcast",
|
||||||
|
"lower_bound": 21450000,
|
||||||
|
"upper_bound": 21850000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "11m Broadcast",
|
||||||
|
"lower_bound": 25670000,
|
||||||
|
"upper_bound": 26100000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "FM Broadcast",
|
||||||
|
"lower_bound": 87500000,
|
||||||
|
"upper_bound": 108000000,
|
||||||
|
"tags": ["broadcast"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "11m CB",
|
||||||
|
"lower_bound": 26965000,
|
||||||
|
"upper_bound": 27405000,
|
||||||
|
"frequencies": {
|
||||||
|
"js8": 27245000
|
||||||
|
},
|
||||||
|
"tags": ["public"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "PMR446",
|
||||||
|
"lower_bound": 446000000,
|
||||||
|
"upper_bound": 446200000,
|
||||||
|
"tags": ["public"]
|
||||||
|
}
|
||||||
|
]
|
386
openwebrx/config_webrx.py
Normal file
|
@ -0,0 +1,386 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
config_webrx: configuration options for OpenWebRX
|
||||||
|
|
||||||
|
This file is part of OpenWebRX,
|
||||||
|
an open-source SDR receiver software with a web UI.
|
||||||
|
Copyright (c) 2013-2015 by Andras Retzler <randras@sdr.hu>
|
||||||
|
Copyright (c) 2019-2021 by Jakob Ketterl <dd5jfk@darc.de>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as
|
||||||
|
published by the Free Software Foundation, either version 3 of the
|
||||||
|
License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
In addition, as a special exception, the copyright holders
|
||||||
|
state that config_rtl.py and config_webrx.py are not part of the
|
||||||
|
Corresponding Source defined in GNU AGPL version 3 section 1.
|
||||||
|
|
||||||
|
(It means that you do not have to redistribute config_rtl.py and
|
||||||
|
config_webrx.py if you make any changes to these two configuration files,
|
||||||
|
and use them for running your web service with OpenWebRX.)
|
||||||
|
"""
|
||||||
|
|
||||||
|
"""
|
||||||
|
DEPRECATION notice
|
||||||
|
|
||||||
|
As of OpenWebRX 0.21, the configuration system has been completely overhauled.
|
||||||
|
The configuration of OpenWebRX should now be done in the new web-based
|
||||||
|
configuration interface exclusively.
|
||||||
|
|
||||||
|
Existing configurations can still be used, but their values will be migrated
|
||||||
|
to the new storage infrastructure as soon as the web configuration is used to
|
||||||
|
edit them.
|
||||||
|
|
||||||
|
The new configuration storage is not intended to be edited manually.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# configuration version. please only modify if you're able to perform the associated migration steps.
|
||||||
|
version = 7
|
||||||
|
|
||||||
|
# NOTE: you can find additional information about configuring OpenWebRX in the Wiki:
|
||||||
|
# https://github.com/jketterl/openwebrx/wiki/Configuration-guide
|
||||||
|
|
||||||
|
# ==== Server settings ====
|
||||||
|
#max_clients = 20
|
||||||
|
|
||||||
|
# ==== Web GUI configuration ====
|
||||||
|
#receiver_name = "[Callsign]"
|
||||||
|
#receiver_location = "Budapest, Hungary"
|
||||||
|
#receiver_asl = 200
|
||||||
|
#receiver_admin = "example@example.com"
|
||||||
|
#receiver_gps = {"lat": 47.000000, "lon": 19.000000}
|
||||||
|
#photo_title = "Panorama of Budapest from Schönherz Zoltán Dormitory"
|
||||||
|
# photo_desc allows you to put pretty much any HTML you like into the receiver description.
|
||||||
|
# The lines below should give you some examples of what's possible.
|
||||||
|
#photo_desc = """
|
||||||
|
#You can add your own background photo and receiver information.<br />
|
||||||
|
#Receiver is operated by: <a href="mailto:openwebrx@localhost" target="_blank">Receiver Operator</a><br/>
|
||||||
|
#Device: Receiver Device<br />
|
||||||
|
#Antenna: Receiver Antenna<br />
|
||||||
|
#Website: <a href="http://localhost" target="_blank">http://localhost</a>
|
||||||
|
#"""
|
||||||
|
|
||||||
|
# ==== Public receiver listings ====
|
||||||
|
# You can publish your receiver on online receiver directories, like https://www.receiverbook.de
|
||||||
|
# You will receive a receiver key from the directory that will authenticate you as the operator of this receiver.
|
||||||
|
# Please note that you not share your receiver keys publicly since anyone that obtains your receiver key can take over
|
||||||
|
# your public listing.
|
||||||
|
# Your receiver keys should be placed into this array:
|
||||||
|
#receiver_keys = []
|
||||||
|
# If you list your receiver on multiple sites, you can place all your keys into the array above, or you can append
|
||||||
|
# keys to the arraylike this:
|
||||||
|
# receiver_keys += ["my-receiver-key"]
|
||||||
|
|
||||||
|
# If you're not sure, simply copy & paste the code you received from your listing site below this line:
|
||||||
|
|
||||||
|
# ==== DSP/RX settings ====
|
||||||
|
#fft_fps = 9
|
||||||
|
#fft_size = 4096 # Should be power of 2
|
||||||
|
#fft_voverlap_factor = (
|
||||||
|
# 0.3 # If fft_voverlap_factor is above 0, multiple FFTs will be used for creating a line on the diagram.
|
||||||
|
#)
|
||||||
|
|
||||||
|
#audio_compression = "adpcm" # valid values: "adpcm", "none"
|
||||||
|
#fft_compression = "adpcm" # valid values: "adpcm", "none"
|
||||||
|
|
||||||
|
# Tau setting for WFM (broadcast FM) deemphasis\
|
||||||
|
# Quote from wikipedia https://en.wikipedia.org/wiki/FM_broadcasting#Pre-emphasis_and_de-emphasis
|
||||||
|
# "In most of the world a 50 µs time constant is used. In the Americas and South Korea, 75 µs is used"
|
||||||
|
# Enable one of the following lines, depending on your location:
|
||||||
|
# wfm_deemphasis_tau = 75e-6 # for US and South Korea
|
||||||
|
#wfm_deemphasis_tau = 50e-6 # for the rest of the world
|
||||||
|
|
||||||
|
#digimodes_fft_size = 2048
|
||||||
|
|
||||||
|
# enables lookup of DMR ids using the radioid api
|
||||||
|
#digital_voice_dmr_id_lookup = True
|
||||||
|
|
||||||
|
"""
|
||||||
|
Note: if you experience audio underruns while CPU usage is 100%, you can:
|
||||||
|
- decrease `samp_rate`,
|
||||||
|
- set `fft_voverlap_factor` to 0,
|
||||||
|
- decrease `fft_fps` and `fft_size`,
|
||||||
|
- limit the number of users by decreasing `max_clients`.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# ==== I/Q sources ====
|
||||||
|
# (Uncomment the appropriate by removing # characters at the beginning of the corresponding lines.)
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Is my SDR hardware supported? #
|
||||||
|
# Check here: https://github.com/jketterl/openwebrx/wiki/Supported-Hardware #
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
# Currently supported types of sdr receivers:
|
||||||
|
# "rtl_sdr", "rtl_sdr_soapy", "sdrplay", "hackrf", "airspy", "airspyhf", "fifi_sdr",
|
||||||
|
# "perseussdr", "lime_sdr", "pluto_sdr", "soapy_remote", "hpsdr", "uhd",
|
||||||
|
# "radioberry", "fcdpp", "rtl_tcp", "sddc", "runds"
|
||||||
|
|
||||||
|
# For more details on specific types, please checkout the wiki:
|
||||||
|
# https://github.com/jketterl/openwebrx/wiki/Supported-Hardware#sdr-devices
|
||||||
|
|
||||||
|
#sdrs = {
|
||||||
|
# "rtlsdr": {
|
||||||
|
# "name": "RTL-SDR USB Stick",
|
||||||
|
# "type": "rtl_sdr",
|
||||||
|
# "ppm": 0,
|
||||||
|
# # you can change this if you use an upconverter. formula is:
|
||||||
|
# # center_freq + lfo_offset = actual frequency on the sdr
|
||||||
|
# # "lfo_offset": 0,
|
||||||
|
# "profiles": {
|
||||||
|
# "70cm": {
|
||||||
|
# "name": "70cm Relais",
|
||||||
|
# "center_freq": 438800000,
|
||||||
|
# "rf_gain": 29,
|
||||||
|
# "samp_rate": 2400000,
|
||||||
|
# "start_freq": 439275000,
|
||||||
|
# "start_mod": "nfm",
|
||||||
|
# },
|
||||||
|
# "2m": {
|
||||||
|
# "name": "2m komplett",
|
||||||
|
# "center_freq": 145000000,
|
||||||
|
# "rf_gain": 29,
|
||||||
|
# "samp_rate": 2048000,
|
||||||
|
# "start_freq": 145725000,
|
||||||
|
# "start_mod": "nfm",
|
||||||
|
# },
|
||||||
|
# },
|
||||||
|
# },
|
||||||
|
# "airspy": {
|
||||||
|
# "name": "Airspy HF+",
|
||||||
|
# "type": "airspyhf",
|
||||||
|
# "ppm": 0,
|
||||||
|
# "rf_gain": "auto",
|
||||||
|
# "profiles": {
|
||||||
|
# "20m": {
|
||||||
|
# "name": "20m",
|
||||||
|
# "center_freq": 14150000,
|
||||||
|
# "samp_rate": 384000,
|
||||||
|
# "start_freq": 14070000,
|
||||||
|
# "start_mod": "usb",
|
||||||
|
# },
|
||||||
|
# "30m": {
|
||||||
|
# "name": "30m",
|
||||||
|
# "center_freq": 10125000,
|
||||||
|
# "samp_rate": 192000,
|
||||||
|
# "start_freq": 10142000,
|
||||||
|
# "start_mod": "usb",
|
||||||
|
# },
|
||||||
|
# "40m": {
|
||||||
|
# "name": "40m",
|
||||||
|
# "center_freq": 7100000,
|
||||||
|
# "samp_rate": 256000,
|
||||||
|
# "start_freq": 7070000,
|
||||||
|
# "start_mod": "lsb",
|
||||||
|
# },
|
||||||
|
# "80m": {
|
||||||
|
# "name": "80m",
|
||||||
|
# "center_freq": 3650000,
|
||||||
|
# "samp_rate": 384000,
|
||||||
|
# "start_freq": 3570000,
|
||||||
|
# "start_mod": "lsb",
|
||||||
|
# },
|
||||||
|
# "49m": {
|
||||||
|
# "name": "49m Broadcast",
|
||||||
|
# "center_freq": 6050000,
|
||||||
|
# "samp_rate": 384000,
|
||||||
|
# "start_freq": 6070000,
|
||||||
|
# "start_mod": "am",
|
||||||
|
# },
|
||||||
|
# },
|
||||||
|
# },
|
||||||
|
# "sdrplay": {
|
||||||
|
# "name": "SDRPlay RSP2",
|
||||||
|
# "type": "sdrplay",
|
||||||
|
# "ppm": 0,
|
||||||
|
# "antenna": "Antenna A",
|
||||||
|
# "profiles": {
|
||||||
|
# "20m": {
|
||||||
|
# "name": "20m",
|
||||||
|
# "center_freq": 14150000,
|
||||||
|
# "rf_gain": 0,
|
||||||
|
# "samp_rate": 500000,
|
||||||
|
# "start_freq": 14070000,
|
||||||
|
# "start_mod": "usb",
|
||||||
|
# },
|
||||||
|
# "30m": {
|
||||||
|
# "name": "30m",
|
||||||
|
# "center_freq": 10125000,
|
||||||
|
# "rf_gain": 0,
|
||||||
|
# "samp_rate": 250000,
|
||||||
|
# "start_freq": 10142000,
|
||||||
|
# "start_mod": "usb",
|
||||||
|
# },
|
||||||
|
# "40m": {
|
||||||
|
# "name": "40m",
|
||||||
|
# "center_freq": 7100000,
|
||||||
|
# "rf_gain": 0,
|
||||||
|
# "samp_rate": 500000,
|
||||||
|
# "start_freq": 7070000,
|
||||||
|
# "start_mod": "lsb",
|
||||||
|
# },
|
||||||
|
# "80m": {
|
||||||
|
# "name": "80m",
|
||||||
|
# "center_freq": 3650000,
|
||||||
|
# "rf_gain": 0,
|
||||||
|
# "samp_rate": 500000,
|
||||||
|
# "start_freq": 3570000,
|
||||||
|
# "start_mod": "lsb",
|
||||||
|
# },
|
||||||
|
# "49m": {
|
||||||
|
# "name": "49m Broadcast",
|
||||||
|
# "center_freq": 6000000,
|
||||||
|
# "rf_gain": 0,
|
||||||
|
# "samp_rate": 500000,
|
||||||
|
# "start_freq": 6070000,
|
||||||
|
# "start_mod": "am",
|
||||||
|
# },
|
||||||
|
# },
|
||||||
|
# },
|
||||||
|
#}
|
||||||
|
|
||||||
|
# ==== Color themes ====
|
||||||
|
|
||||||
|
### google turbo colormap (see: https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html)
|
||||||
|
#waterfall_scheme = "GoogleTurboWaterfall"
|
||||||
|
|
||||||
|
### original theme by teejez:
|
||||||
|
#waterfall_scheme = "TeejeezWaterfall"
|
||||||
|
|
||||||
|
### old theme by HA7ILM:
|
||||||
|
#waterfall_scheme = "Ha7ilmWaterfall"
|
||||||
|
##For the old colors, you might also want to set [fft_voverlap_factor] to 0.
|
||||||
|
|
||||||
|
### custom waterfall schemes can be configured like this:
|
||||||
|
#waterfall_scheme = "CustomWaterfall"
|
||||||
|
#waterfall_colors = [0x0000FF, 0x00FF00, 0xFF0000]
|
||||||
|
|
||||||
|
### Waterfall calibration
|
||||||
|
#waterfall_levels = {"min": -88, "max": -20} # in dB
|
||||||
|
|
||||||
|
#waterfall_auto_levels = {"min": 3, "max": 10}
|
||||||
|
#waterfall_auto_min_range = 50
|
||||||
|
|
||||||
|
# Note: When the auto waterfall level button is clicked, the following happens:
|
||||||
|
# [waterfall_levels.min] = [current_min_power_level] - [waterfall_auto_levels["min"]]
|
||||||
|
# [waterfall_levels.max] = [current_max_power_level] + [waterfall_auto_levels["max"]]
|
||||||
|
#
|
||||||
|
# ___|__________________________________|____________________________________|__________________________________|___> signal power
|
||||||
|
# \_waterfall_auto_levels["min"]_/ |__ current_min_power_level | \_waterfall_auto_levels["max"]_/
|
||||||
|
# current_max_power_level __|
|
||||||
|
|
||||||
|
# This setting allows you to modify the precision of the frequency displays in OpenWebRX.
|
||||||
|
# Set this to exponent of 10 to select the most precise digit in Hz you'd like to see
|
||||||
|
# examples:
|
||||||
|
# a value of 2 selects 10^2 = 100Hz tuning precision (default):
|
||||||
|
#tuning_precision = 2
|
||||||
|
# a value of 1 selects 10^1 = 10Hz tuning precision:
|
||||||
|
#tuning_precision = 1
|
||||||
|
|
||||||
|
# This setting tells the auto-squelch the offset to add to the current signal level to use as the new squelch level.
|
||||||
|
# Lowering this setting will give you a more sensitive squelch, but it may also cause unwanted squelch openings when
|
||||||
|
# using the auto squelch.
|
||||||
|
#squelch_auto_margin = 10 # in dB
|
||||||
|
|
||||||
|
#google_maps_api_key = ""
|
||||||
|
|
||||||
|
# how long should positions be visible on the map?
|
||||||
|
# they will start fading out after half of that
|
||||||
|
# in seconds; default: 2 hours
|
||||||
|
#map_position_retention_time = 2 * 60 * 60
|
||||||
|
|
||||||
|
# decoder queue configuration
|
||||||
|
# due to the nature of some operating modes (ft8, ft8, jt9, jt65, wspr and js8), the data is recorded for a given amount
|
||||||
|
# of time (6 seconds up to 2 minutes) and decoded at the end. this can lead to very high peak loads.
|
||||||
|
# to mitigate this, the recordings will be queued and processed in sequence.
|
||||||
|
# the number of workers will limit the total amount of work (one worker will losely occupy one cpu / thread)
|
||||||
|
#decoding_queue_workers = 2
|
||||||
|
# the maximum queue length will cause decodes to be dumped if the workers cannot keep up
|
||||||
|
# if you are running background services, make sure this number is high enough to accept the task influx during peaks
|
||||||
|
# i.e. this should be higher than the number of decoding services running at the same time
|
||||||
|
#decoding_queue_length = 10
|
||||||
|
|
||||||
|
# wsjt decoding depth will allow more results, but will also consume more cpu
|
||||||
|
#wsjt_decoding_depth = 3
|
||||||
|
# can also be set for each mode separately
|
||||||
|
# jt65 seems to be somewhat prone to erroneous decodes, this setting handles that to some extent
|
||||||
|
#wsjt_decoding_depths = {"jt65": 1}
|
||||||
|
|
||||||
|
# FST4 can be transmitted in different intervals. This setting determines which intervals will be decoded.
|
||||||
|
# available values (in seconds): 15, 30, 60, 120, 300, 900, 1800
|
||||||
|
#fst4_enabled_intervals = [15, 30]
|
||||||
|
|
||||||
|
# FST4W can be transmitted in different intervals. This setting determines which intervals will be decoded.
|
||||||
|
# available values (in seconds): 120, 300, 900, 1800
|
||||||
|
#fst4w_enabled_intervals = [120, 300]
|
||||||
|
|
||||||
|
# Q65 allows many combinations of intervals and submodes. This setting determines which combinations will be decoded.
|
||||||
|
# Please use the mode letter followed by the decode interval in seconds to specify the combinations. For example:
|
||||||
|
#q65_enabled_combinations = ["A30", "E120", "C60"]
|
||||||
|
|
||||||
|
# JS8 comes in different speeds: normal, slow, fast, turbo. This setting controls which ones are enabled.
|
||||||
|
#js8_enabled_profiles = ["normal", "slow"]
|
||||||
|
# JS8 decoding depth; higher value will get more results, but will also consume more cpu
|
||||||
|
#js8_decoding_depth = 3
|
||||||
|
|
||||||
|
# Enable background service for decoding digital data. You can find more information at:
|
||||||
|
# https://github.com/jketterl/openwebrx/wiki/Background-decoding
|
||||||
|
#services_enabled = False
|
||||||
|
#services_decoders = ["ft8", "ft4", "wspr", "packet"]
|
||||||
|
|
||||||
|
# === aprs igate settings ===
|
||||||
|
# If you want to share your APRS decodes with the aprs network, configure these settings accordingly.
|
||||||
|
# Make sure that you have set services_enabled to true and customize services_decoders to your needs.
|
||||||
|
#aprs_callsign = "N0CALL"
|
||||||
|
#aprs_igate_enabled = False
|
||||||
|
#aprs_igate_server = "euro.aprs2.net"
|
||||||
|
#aprs_igate_password = ""
|
||||||
|
# beacon uses the receiver_gps setting, so if you enable this, make sure the location is correct there
|
||||||
|
#aprs_igate_beacon = False
|
||||||
|
|
||||||
|
# Uncomment the following to customize gateway beacon details reported to the aprs network
|
||||||
|
# Plese see Dire Wolf's documentation on PBEACON configuration for complete details:
|
||||||
|
# https://github.com/wb2osz/direwolf/raw/master/doc/User-Guide.pdf
|
||||||
|
|
||||||
|
# Symbol in its two-character form as specified by the APRS spec at http://www.aprs.org/symbols/symbols-new.txt
|
||||||
|
# Default: Receive only IGate (do not send msgs back to RF)
|
||||||
|
# aprs_igate_symbol = "R&"
|
||||||
|
|
||||||
|
# Custom comment about igate
|
||||||
|
# Default: OpenWebRX APRS gateway
|
||||||
|
# aprs_igate_comment = "OpenWebRX APRS gateway"
|
||||||
|
|
||||||
|
# Antenna Height and Gain details
|
||||||
|
# Unspecified by default
|
||||||
|
# Antenna height above average terrain (HAAT) in meters
|
||||||
|
# aprs_igate_height = "5"
|
||||||
|
# Antenna gain in dBi
|
||||||
|
# aprs_igate_gain = "0"
|
||||||
|
# Antenna direction (N, NE, E, SE, S, SW, W, NW). Omnidirectional by default
|
||||||
|
# aprs_igate_dir = "NE"
|
||||||
|
|
||||||
|
# === PSK Reporter settings ===
|
||||||
|
# enable this if you want to upload all ft8, ft4 etc spots to pskreporter.info
|
||||||
|
# this also uses the receiver_gps setting from above, so make sure it contains a correct locator
|
||||||
|
#pskreporter_enabled = False
|
||||||
|
#pskreporter_callsign = "N0CALL"
|
||||||
|
# optional antenna information, uncomment to enable
|
||||||
|
#pskreporter_antenna_information = "Dipole"
|
||||||
|
|
||||||
|
# === WSPRNet reporting settings
|
||||||
|
# enable this if you want to upload WSPR spots to wsprnet.ort
|
||||||
|
# in addition to these settings also make sure that receiver_gps contains your correct location
|
||||||
|
#wsprnet_enabled = False
|
||||||
|
#wsprnet_callsign = "N0CALL"
|
837
openwebrx/csdr/__init__.py
Normal file
|
@ -0,0 +1,837 @@
|
||||||
|
"""
|
||||||
|
OpenWebRX csdr plugin: do the signal processing with csdr
|
||||||
|
|
||||||
|
This file is part of OpenWebRX,
|
||||||
|
an open-source SDR receiver software with a web UI.
|
||||||
|
Copyright (c) 2013-2015 by Andras Retzler <randras@sdr.hu>
|
||||||
|
Copyright (c) 2019-2021 by Jakob Ketterl <dd5jfk@darc.de>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as
|
||||||
|
published by the Free Software Foundation, either version 3 of the
|
||||||
|
License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
import os
|
||||||
|
import signal
|
||||||
|
import threading
|
||||||
|
import math
|
||||||
|
from functools import partial
|
||||||
|
|
||||||
|
from csdr.output import Output
|
||||||
|
|
||||||
|
from owrx.kiss import KissClient, DirewolfConfig, DirewolfConfigSubscriber
|
||||||
|
from owrx.audio.chopper import AudioChopper
|
||||||
|
|
||||||
|
from csdr.pipe import Pipe
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
class Dsp(DirewolfConfigSubscriber):
|
||||||
|
def __init__(self, output: Output):
|
||||||
|
self.samp_rate = 250000
|
||||||
|
self.output_rate = 11025
|
||||||
|
self.hd_output_rate = 44100
|
||||||
|
self.fft_size = 1024
|
||||||
|
self.fft_fps = 5
|
||||||
|
self.center_freq = 0
|
||||||
|
self.offset_freq = 0
|
||||||
|
self.low_cut = -4000
|
||||||
|
self.high_cut = 4000
|
||||||
|
self.bpf_transition_bw = 320 # Hz, and this is a constant
|
||||||
|
self.ddc_transition_bw_rate = 0.15 # of the IF sample rate
|
||||||
|
self.running = False
|
||||||
|
self.secondary_processes_running = False
|
||||||
|
self.audio_compression = "none"
|
||||||
|
self.fft_compression = "none"
|
||||||
|
self.demodulator = "nfm"
|
||||||
|
self.name = "csdr"
|
||||||
|
self.base_bufsize = 512
|
||||||
|
self.decimation = None
|
||||||
|
self.last_decimation = None
|
||||||
|
self.nc_port = None
|
||||||
|
self.squelch_level = -150
|
||||||
|
self.fft_averages = 50
|
||||||
|
self.wfm_deemphasis_tau = 50e-6
|
||||||
|
self.iqtee = False
|
||||||
|
self.iqtee2 = False
|
||||||
|
self.secondary_demodulator = None
|
||||||
|
self.secondary_fft_size = 1024
|
||||||
|
self.secondary_process_fft = None
|
||||||
|
self.secondary_process_demod = None
|
||||||
|
self.pipe_names = {
|
||||||
|
"bpf_pipe": Pipe.WRITE,
|
||||||
|
"shift_pipe": Pipe.WRITE,
|
||||||
|
"squelch_pipe": Pipe.WRITE,
|
||||||
|
"smeter_pipe": Pipe.READ,
|
||||||
|
"meta_pipe": Pipe.READ,
|
||||||
|
"iqtee_pipe": Pipe.NONE,
|
||||||
|
"iqtee2_pipe": Pipe.NONE,
|
||||||
|
"dmr_control_pipe": Pipe.WRITE,
|
||||||
|
}
|
||||||
|
self.pipes = {}
|
||||||
|
self.secondary_pipe_names = {"secondary_shift_pipe": Pipe.WRITE}
|
||||||
|
self.secondary_offset_freq = 1000
|
||||||
|
self.codecserver = None
|
||||||
|
self.modification_lock = threading.Lock()
|
||||||
|
self.output = output
|
||||||
|
|
||||||
|
self.temporary_directory = None
|
||||||
|
self.pipe_base_path = None
|
||||||
|
self.set_temporary_directory("/tmp")
|
||||||
|
|
||||||
|
self.is_service = False
|
||||||
|
self.direwolf_config = None
|
||||||
|
self.direwolf_config_path = None
|
||||||
|
self.process = None
|
||||||
|
|
||||||
|
def set_service(self, flag=True):
|
||||||
|
self.is_service = flag
|
||||||
|
|
||||||
|
def set_temporary_directory(self, what):
|
||||||
|
self.temporary_directory = what
|
||||||
|
self.pipe_base_path = "{tmp_dir}/openwebrx_pipe_".format(tmp_dir=self.temporary_directory)
|
||||||
|
|
||||||
|
def chain(self, which):
|
||||||
|
chain = ["nc -v 127.0.0.1 {nc_port}"]
|
||||||
|
if which == "fft":
|
||||||
|
chain += [
|
||||||
|
"csdr fft_cc {fft_size} {fft_block_size}",
|
||||||
|
"csdr logpower_cf -70"
|
||||||
|
if self.fft_averages == 0
|
||||||
|
else "csdr logaveragepower_cf -70 {fft_size} {fft_averages}",
|
||||||
|
"csdr fft_exchange_sides_ff {fft_size}",
|
||||||
|
]
|
||||||
|
if self.fft_compression == "adpcm":
|
||||||
|
chain += ["csdr compress_fft_adpcm_f_u8 {fft_size}"]
|
||||||
|
return chain
|
||||||
|
chain += ["csdr shift_addfast_cc --fifo {shift_pipe}"]
|
||||||
|
if self.decimation > 1:
|
||||||
|
chain += ["csdr fir_decimate_cc {decimation} {ddc_transition_bw} HAMMING"]
|
||||||
|
chain += ["csdr bandpass_fir_fft_cc --fifo {bpf_pipe} {bpf_transition_bw} HAMMING"]
|
||||||
|
if self.output.supports_type("smeter"):
|
||||||
|
chain += [
|
||||||
|
"csdr squelch_and_smeter_cc --fifo {squelch_pipe} --outfifo {smeter_pipe} 5 {smeter_report_every}"
|
||||||
|
]
|
||||||
|
if self.secondary_demodulator:
|
||||||
|
if self.output.supports_type("secondary_fft"):
|
||||||
|
chain += ["csdr tee {iqtee_pipe}"]
|
||||||
|
chain += ["csdr tee {iqtee2_pipe}"]
|
||||||
|
# early exit if we don't want audio
|
||||||
|
if not self.output.supports_type("audio"):
|
||||||
|
return chain
|
||||||
|
# safe some cpu cycles... no need to decimate if decimation factor is 1
|
||||||
|
last_decimation_block = []
|
||||||
|
if self.last_decimation >= 2.0:
|
||||||
|
# activate prefilter if signal has been oversampled, e.g. WFM
|
||||||
|
last_decimation_block = ["csdr fractional_decimator_ff {last_decimation} 12 --prefilter"]
|
||||||
|
elif self.last_decimation != 1.0:
|
||||||
|
last_decimation_block = ["csdr fractional_decimator_ff {last_decimation}"]
|
||||||
|
if which == "nfm":
|
||||||
|
chain += ["csdr fmdemod_quadri_cf", "csdr limit_ff"]
|
||||||
|
chain += last_decimation_block
|
||||||
|
chain += [
|
||||||
|
"csdr deemphasis_nfm_ff {audio_rate}",
|
||||||
|
"csdr agc_ff --profile slow --max 3",
|
||||||
|
]
|
||||||
|
if self.get_audio_rate() != self.get_output_rate():
|
||||||
|
chain += [
|
||||||
|
"sox -t raw -r {audio_rate} -e floating-point -b 32 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - "
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
chain += ["csdr convert_f_s16"]
|
||||||
|
elif which == "wfm":
|
||||||
|
chain += [
|
||||||
|
"csdr fmdemod_quadri_cf",
|
||||||
|
"csdr limit_ff",
|
||||||
|
]
|
||||||
|
chain += last_decimation_block
|
||||||
|
chain += ["csdr deemphasis_wfm_ff {audio_rate} {wfm_deemphasis_tau}", "csdr convert_f_s16"]
|
||||||
|
elif self.isDigitalVoice(which):
|
||||||
|
chain += ["csdr fmdemod_quadri_cf"]
|
||||||
|
chain += last_decimation_block
|
||||||
|
chain += ["dc_block"]
|
||||||
|
# m17
|
||||||
|
if which == "m17":
|
||||||
|
chain += [
|
||||||
|
"csdr limit_ff",
|
||||||
|
"csdr convert_f_s16",
|
||||||
|
"m17-demod",
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
# digiham modes
|
||||||
|
if which == "dstar":
|
||||||
|
chain += [
|
||||||
|
"fsk_demodulator -s 10",
|
||||||
|
"dstar_decoder --fifo {meta_pipe}",
|
||||||
|
"mbe_synthesizer -d {codecserver_arg}",
|
||||||
|
]
|
||||||
|
elif which == "nxdn":
|
||||||
|
chain += [
|
||||||
|
"rrc_filter --narrow",
|
||||||
|
"gfsk_demodulator --samples 20",
|
||||||
|
"nxdn_decoder --fifo {meta_pipe}",
|
||||||
|
"mbe_synthesizer {codecserver_arg}",
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
chain += ["rrc_filter", "gfsk_demodulator"]
|
||||||
|
if which == "dmr":
|
||||||
|
chain += [
|
||||||
|
"dmr_decoder --fifo {meta_pipe} --control-fifo {dmr_control_pipe}",
|
||||||
|
"mbe_synthesizer {codecserver_arg}",
|
||||||
|
]
|
||||||
|
elif which == "ysf":
|
||||||
|
chain += ["ysf_decoder --fifo {meta_pipe}", "mbe_synthesizer -y {codecserver_arg}"]
|
||||||
|
chain += ["digitalvoice_filter"]
|
||||||
|
chain += [
|
||||||
|
"CSDR_FIXED_BUFSIZE=32 csdr agc_s16 --max 30 --initial 3",
|
||||||
|
"sox -t raw -r 8000 -e signed-integer -b 16 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - ",
|
||||||
|
]
|
||||||
|
elif which == "am":
|
||||||
|
chain += ["csdr amdemod_cf", "csdr fastdcblock_ff"]
|
||||||
|
chain += last_decimation_block
|
||||||
|
chain += [
|
||||||
|
"csdr agc_ff --profile slow --initial 200",
|
||||||
|
"csdr convert_f_s16",
|
||||||
|
]
|
||||||
|
elif self.isFreeDV(which):
|
||||||
|
chain += ["csdr realpart_cf"]
|
||||||
|
chain += last_decimation_block
|
||||||
|
chain += [
|
||||||
|
"csdr agc_ff",
|
||||||
|
"csdr convert_f_s16",
|
||||||
|
"freedv_rx 1600 - -",
|
||||||
|
"csdr agc_s16 --max 30 --initial 3",
|
||||||
|
"sox -t raw -r 8000 -e signed-integer -b 16 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - ",
|
||||||
|
]
|
||||||
|
elif self.isDrm(which):
|
||||||
|
if self.last_decimation != 1.0:
|
||||||
|
# we are still dealing with complex samples here, so the regular last_decimation_block doesn't fit
|
||||||
|
chain += ["csdr fractional_decimator_cc {last_decimation}"]
|
||||||
|
chain += [
|
||||||
|
"csdr convert_f_s16",
|
||||||
|
"dream -c 6 --sigsrate 48000 --audsrate 48000 -I - -O -",
|
||||||
|
"sox -t raw -r 48000 -e signed-integer -b 16 -c 2 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - ",
|
||||||
|
]
|
||||||
|
elif which == "ssb":
|
||||||
|
chain += ["csdr realpart_cf"]
|
||||||
|
chain += last_decimation_block
|
||||||
|
chain += ["csdr agc_ff"]
|
||||||
|
# fixed sample rate necessary for the wsjt-x tools. fix with sox...
|
||||||
|
if self.get_audio_rate() != self.get_output_rate():
|
||||||
|
chain += [
|
||||||
|
"sox -t raw -r {audio_rate} -e floating-point -b 32 -c 1 --buffer 32 - -t raw -r {output_rate} -e signed-integer -b 16 -c 1 - "
|
||||||
|
]
|
||||||
|
else:
|
||||||
|
chain += ["csdr convert_f_s16"]
|
||||||
|
|
||||||
|
if self.audio_compression == "adpcm":
|
||||||
|
chain += ["csdr encode_ima_adpcm_i16_u8"]
|
||||||
|
return chain
|
||||||
|
|
||||||
|
def secondary_chain(self, which):
|
||||||
|
chain = ["cat {input_pipe}"]
|
||||||
|
if which == "fft":
|
||||||
|
chain += [
|
||||||
|
"csdr fft_cc {secondary_fft_input_size} {secondary_fft_block_size}",
|
||||||
|
"csdr logpower_cf -70"
|
||||||
|
if self.fft_averages == 0
|
||||||
|
else "csdr logaveragepower_cf -70 {secondary_fft_size} {fft_averages}",
|
||||||
|
"csdr fft_exchange_sides_ff {secondary_fft_input_size}",
|
||||||
|
]
|
||||||
|
if self.fft_compression == "adpcm":
|
||||||
|
chain += ["csdr compress_fft_adpcm_f_u8 {secondary_fft_size}"]
|
||||||
|
return chain
|
||||||
|
elif which == "bpsk31" or which == "bpsk63":
|
||||||
|
return chain + [
|
||||||
|
"csdr shift_addfast_cc --fifo {secondary_shift_pipe}",
|
||||||
|
"csdr bandpass_fir_fft_cc -{secondary_bpf_cutoff} {secondary_bpf_cutoff} {secondary_bpf_cutoff}",
|
||||||
|
"csdr simple_agc_cc 0.001 0.5",
|
||||||
|
"csdr timing_recovery_cc GARDNER {secondary_samples_per_bits} 0.5 2 --add_q",
|
||||||
|
"CSDR_FIXED_BUFSIZE=1 csdr dbpsk_decoder_c_u8",
|
||||||
|
"CSDR_FIXED_BUFSIZE=1 csdr psk31_varicode_decoder_u8_u8",
|
||||||
|
]
|
||||||
|
elif self.isWsjtMode(which) or self.isJs8(which):
|
||||||
|
chain += ["csdr realpart_cf"]
|
||||||
|
if self.last_decimation != 1.0:
|
||||||
|
chain += ["csdr fractional_decimator_ff {last_decimation}"]
|
||||||
|
return chain + ["csdr agc_ff", "csdr convert_f_s16"]
|
||||||
|
elif which == "packet":
|
||||||
|
chain += ["csdr fmdemod_quadri_cf"]
|
||||||
|
if self.last_decimation != 1.0:
|
||||||
|
chain += ["csdr fractional_decimator_ff {last_decimation}"]
|
||||||
|
return chain + ["csdr convert_f_s16", "direwolf -c {direwolf_config} -r {audio_rate} -t 0 -q d -q h 1>&2"]
|
||||||
|
elif which == "pocsag":
|
||||||
|
chain += ["csdr fmdemod_quadri_cf"]
|
||||||
|
if self.last_decimation != 1.0:
|
||||||
|
chain += ["csdr fractional_decimator_ff {last_decimation}"]
|
||||||
|
return chain + ["fsk_demodulator -i", "pocsag_decoder"]
|
||||||
|
|
||||||
|
def set_secondary_demodulator(self, what):
|
||||||
|
if self.get_secondary_demodulator() == what:
|
||||||
|
return
|
||||||
|
self.secondary_demodulator = what
|
||||||
|
self.calculate_decimation()
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def secondary_fft_block_size(self):
|
||||||
|
base = (self.samp_rate / self.decimation) / (self.fft_fps * 2)
|
||||||
|
if self.fft_averages == 0:
|
||||||
|
return base
|
||||||
|
return base / self.fft_averages
|
||||||
|
|
||||||
|
def secondary_decimation(self):
|
||||||
|
return 1 # currently unused
|
||||||
|
|
||||||
|
def secondary_bpf_cutoff(self):
|
||||||
|
if self.secondary_demodulator == "bpsk31":
|
||||||
|
return 31.25 / self.if_samp_rate()
|
||||||
|
elif self.secondary_demodulator == "bpsk63":
|
||||||
|
return 62.5 / self.if_samp_rate()
|
||||||
|
return 0
|
||||||
|
|
||||||
|
def secondary_bpf_transition_bw(self):
|
||||||
|
if self.secondary_demodulator == "bpsk31":
|
||||||
|
return 31.25 / self.if_samp_rate()
|
||||||
|
elif self.secondary_demodulator == "bpsk63":
|
||||||
|
return 62.5 / self.if_samp_rate()
|
||||||
|
return 0
|
||||||
|
|
||||||
|
def secondary_samples_per_bits(self):
|
||||||
|
if self.secondary_demodulator == "bpsk31":
|
||||||
|
return int(round(self.if_samp_rate() / 31.25)) & ~3
|
||||||
|
elif self.secondary_demodulator == "bpsk63":
|
||||||
|
return int(round(self.if_samp_rate() / 62.5)) & ~3
|
||||||
|
return 0
|
||||||
|
|
||||||
|
def secondary_bw(self):
|
||||||
|
if self.secondary_demodulator == "bpsk31":
|
||||||
|
return 31.25
|
||||||
|
elif self.secondary_demodulator == "bpsk63":
|
||||||
|
return 62.5
|
||||||
|
|
||||||
|
def start_secondary_demodulator(self):
|
||||||
|
if not self.secondary_demodulator:
|
||||||
|
return
|
||||||
|
logger.debug("starting secondary demodulator from IF input sampled at %d" % self.if_samp_rate())
|
||||||
|
secondary_command_demod = " | ".join(self.secondary_chain(self.secondary_demodulator))
|
||||||
|
self.try_create_pipes(self.secondary_pipe_names, secondary_command_demod)
|
||||||
|
self.try_create_configs(secondary_command_demod)
|
||||||
|
|
||||||
|
secondary_command_demod = secondary_command_demod.format(
|
||||||
|
input_pipe=self.pipes["iqtee2_pipe"],
|
||||||
|
secondary_shift_pipe=self.pipes["secondary_shift_pipe"],
|
||||||
|
secondary_decimation=self.secondary_decimation(),
|
||||||
|
secondary_samples_per_bits=self.secondary_samples_per_bits(),
|
||||||
|
secondary_bpf_cutoff=self.secondary_bpf_cutoff(),
|
||||||
|
secondary_bpf_transition_bw=self.secondary_bpf_transition_bw(),
|
||||||
|
if_samp_rate=self.if_samp_rate(),
|
||||||
|
last_decimation=self.last_decimation,
|
||||||
|
audio_rate=self.get_audio_rate(),
|
||||||
|
direwolf_config=self.direwolf_config_path,
|
||||||
|
)
|
||||||
|
|
||||||
|
logger.debug("secondary command (demod) = %s", secondary_command_demod)
|
||||||
|
if self.output.supports_type("secondary_fft"):
|
||||||
|
secondary_command_fft = " | ".join(self.secondary_chain("fft"))
|
||||||
|
secondary_command_fft = secondary_command_fft.format(
|
||||||
|
input_pipe=self.pipes["iqtee_pipe"],
|
||||||
|
secondary_fft_input_size=self.secondary_fft_size,
|
||||||
|
secondary_fft_size=self.secondary_fft_size,
|
||||||
|
secondary_fft_block_size=self.secondary_fft_block_size(),
|
||||||
|
fft_averages=self.fft_averages,
|
||||||
|
)
|
||||||
|
logger.debug("secondary command (fft) = %s", secondary_command_fft)
|
||||||
|
|
||||||
|
self.secondary_process_fft = subprocess.Popen(
|
||||||
|
secondary_command_fft, stdout=subprocess.PIPE, shell=True, start_new_session=True
|
||||||
|
)
|
||||||
|
self.output.send_output(
|
||||||
|
"secondary_fft",
|
||||||
|
partial(self.secondary_process_fft.stdout.read, int(self.get_secondary_fft_bytes_to_read())),
|
||||||
|
)
|
||||||
|
|
||||||
|
# direwolf does not provide any meaningful data on stdout
|
||||||
|
# more specifically, it doesn't provide any data. if however, for any strange reason, it would start to do so,
|
||||||
|
# it would block if not read. by piping it to devnull, we avoid a potential pitfall here.
|
||||||
|
secondary_output = subprocess.DEVNULL if self.isPacket() else subprocess.PIPE
|
||||||
|
self.secondary_process_demod = subprocess.Popen(
|
||||||
|
secondary_command_demod, stdout=secondary_output, shell=True, start_new_session=True
|
||||||
|
)
|
||||||
|
self.secondary_processes_running = True
|
||||||
|
|
||||||
|
if self.isWsjtMode() or self.isJs8():
|
||||||
|
chopper = AudioChopper(self, self.get_secondary_demodulator())
|
||||||
|
chopper.send_output("audio", self.secondary_process_demod.stdout.read)
|
||||||
|
output_type = "js8_demod" if self.isJs8() else "wsjt_demod"
|
||||||
|
self.output.send_output(output_type, chopper.read)
|
||||||
|
elif self.isPacket():
|
||||||
|
# we best get the ax25 packets from the kiss socket
|
||||||
|
kiss = KissClient(self.direwolf_config.getPort())
|
||||||
|
self.output.send_output("packet_demod", kiss.read)
|
||||||
|
elif self.isPocsag():
|
||||||
|
self.output.send_output("pocsag_demod", self.secondary_process_demod.stdout.readline)
|
||||||
|
else:
|
||||||
|
self.output.send_output("secondary_demod", partial(self.secondary_process_demod.stdout.read, 1))
|
||||||
|
|
||||||
|
# open control pipes for csdr and send initialization data
|
||||||
|
if self.has_pipe("secondary_shift_pipe"): # TODO digimodes
|
||||||
|
self.set_secondary_offset_freq(self.secondary_offset_freq) # TODO digimodes
|
||||||
|
|
||||||
|
def set_secondary_offset_freq(self, value):
|
||||||
|
self.secondary_offset_freq = value
|
||||||
|
if self.secondary_processes_running and self.has_pipe("secondary_shift_pipe"):
|
||||||
|
self.pipes["secondary_shift_pipe"].write(
|
||||||
|
"%g\n" % (-float(self.secondary_offset_freq) / self.if_samp_rate())
|
||||||
|
)
|
||||||
|
|
||||||
|
def stop_secondary_demodulator(self):
|
||||||
|
if not self.secondary_processes_running:
|
||||||
|
return
|
||||||
|
self.try_delete_pipes(self.secondary_pipe_names)
|
||||||
|
self.try_delete_configs()
|
||||||
|
if self.secondary_process_fft:
|
||||||
|
try:
|
||||||
|
os.killpg(os.getpgid(self.secondary_process_fft.pid), signal.SIGTERM)
|
||||||
|
# drain any leftover data to free file descriptors
|
||||||
|
self.secondary_process_fft.communicate()
|
||||||
|
self.secondary_process_fft = None
|
||||||
|
except ProcessLookupError:
|
||||||
|
# been killed by something else, ignore
|
||||||
|
pass
|
||||||
|
if self.secondary_process_demod:
|
||||||
|
try:
|
||||||
|
os.killpg(os.getpgid(self.secondary_process_demod.pid), signal.SIGTERM)
|
||||||
|
# drain any leftover data to free file descriptors
|
||||||
|
self.secondary_process_demod.communicate()
|
||||||
|
self.secondary_process_demod = None
|
||||||
|
except ProcessLookupError:
|
||||||
|
# been killed by something else, ignore
|
||||||
|
pass
|
||||||
|
self.secondary_processes_running = False
|
||||||
|
|
||||||
|
def get_secondary_demodulator(self):
|
||||||
|
return self.secondary_demodulator
|
||||||
|
|
||||||
|
def set_secondary_fft_size(self, secondary_fft_size):
|
||||||
|
if self.secondary_fft_size == secondary_fft_size:
|
||||||
|
return
|
||||||
|
self.secondary_fft_size = secondary_fft_size
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def set_audio_compression(self, what):
|
||||||
|
if self.audio_compression == what:
|
||||||
|
return
|
||||||
|
self.audio_compression = what
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def get_audio_bytes_to_read(self):
|
||||||
|
# desired latency: 5ms
|
||||||
|
# uncompressed audio has 16 bits = 2 bytes per sample
|
||||||
|
base = self.output_rate * 0.005 * 2
|
||||||
|
# adpcm compresses the bitstream by 4
|
||||||
|
if self.audio_compression == "adpcm":
|
||||||
|
base = base / 4
|
||||||
|
return int(base)
|
||||||
|
|
||||||
|
def set_fft_compression(self, what):
|
||||||
|
if self.fft_compression == what:
|
||||||
|
return
|
||||||
|
self.fft_compression = what
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def get_fft_bytes_to_read(self):
|
||||||
|
if self.fft_compression == "none":
|
||||||
|
return self.fft_size * 4
|
||||||
|
if self.fft_compression == "adpcm":
|
||||||
|
return int((self.fft_size / 2) + (10 / 2))
|
||||||
|
|
||||||
|
def get_secondary_fft_bytes_to_read(self):
|
||||||
|
if self.fft_compression == "none":
|
||||||
|
return self.secondary_fft_size * 4
|
||||||
|
if self.fft_compression == "adpcm":
|
||||||
|
return (self.secondary_fft_size / 2) + (10 / 2)
|
||||||
|
|
||||||
|
def set_samp_rate(self, samp_rate):
|
||||||
|
self.samp_rate = samp_rate
|
||||||
|
self.calculate_decimation()
|
||||||
|
if self.running:
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def calculate_decimation(self):
|
||||||
|
(self.decimation, self.last_decimation) = self.get_decimation(self.samp_rate, self.get_audio_rate())
|
||||||
|
|
||||||
|
def get_decimation(self, input_rate, output_rate):
|
||||||
|
if output_rate <= 0:
|
||||||
|
raise ValueError("invalid output rate: {rate}".format(rate=output_rate))
|
||||||
|
decimation = 1
|
||||||
|
target_rate = output_rate
|
||||||
|
# wideband fm has a much higher frequency deviation (75kHz).
|
||||||
|
# we cannot cover this if we immediately decimate to the sample rate the audio will have later on, so we need
|
||||||
|
# to compensate here.
|
||||||
|
if self.get_demodulator() == "wfm" and output_rate < 200000:
|
||||||
|
target_rate = 200000
|
||||||
|
while input_rate / (decimation + 1) >= target_rate:
|
||||||
|
decimation += 1
|
||||||
|
fraction = float(input_rate / decimation) / output_rate
|
||||||
|
return decimation, fraction
|
||||||
|
|
||||||
|
def if_samp_rate(self):
|
||||||
|
return self.samp_rate / self.decimation
|
||||||
|
|
||||||
|
def get_name(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
|
def get_output_rate(self):
|
||||||
|
return self.output_rate
|
||||||
|
|
||||||
|
def get_hd_output_rate(self):
|
||||||
|
return self.hd_output_rate
|
||||||
|
|
||||||
|
def get_audio_rate(self):
|
||||||
|
if self.isDigitalVoice() or self.isPacket() or self.isPocsag() or self.isDrm():
|
||||||
|
return 48000
|
||||||
|
elif self.isWsjtMode() or self.isJs8():
|
||||||
|
return 12000
|
||||||
|
elif self.isFreeDV():
|
||||||
|
return 8000
|
||||||
|
elif self.isHdAudio():
|
||||||
|
return self.get_hd_output_rate()
|
||||||
|
return self.get_output_rate()
|
||||||
|
|
||||||
|
def isDigitalVoice(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_demodulator()
|
||||||
|
return demodulator in ["dmr", "dstar", "nxdn", "ysf", "m17"]
|
||||||
|
|
||||||
|
def isWsjtMode(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_secondary_demodulator()
|
||||||
|
return demodulator in ["ft8", "wspr", "jt65", "jt9", "ft4", "fst4", "fst4w", "q65"]
|
||||||
|
|
||||||
|
def isJs8(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_secondary_demodulator()
|
||||||
|
return demodulator == "js8"
|
||||||
|
|
||||||
|
def isPacket(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_secondary_demodulator()
|
||||||
|
return demodulator == "packet"
|
||||||
|
|
||||||
|
def isPocsag(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_secondary_demodulator()
|
||||||
|
return demodulator == "pocsag"
|
||||||
|
|
||||||
|
def isFreeDV(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_demodulator()
|
||||||
|
return demodulator == "freedv"
|
||||||
|
|
||||||
|
def isHdAudio(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_demodulator()
|
||||||
|
return demodulator == "wfm"
|
||||||
|
|
||||||
|
def isDrm(self, demodulator=None):
|
||||||
|
if demodulator is None:
|
||||||
|
demodulator = self.get_demodulator()
|
||||||
|
return demodulator == "drm"
|
||||||
|
|
||||||
|
def set_output_rate(self, output_rate):
|
||||||
|
if self.output_rate == output_rate:
|
||||||
|
return
|
||||||
|
self.output_rate = output_rate
|
||||||
|
self.calculate_decimation()
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def set_hd_output_rate(self, hd_output_rate):
|
||||||
|
if self.hd_output_rate == hd_output_rate:
|
||||||
|
return
|
||||||
|
self.hd_output_rate = hd_output_rate
|
||||||
|
self.calculate_decimation()
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def set_demodulator(self, demodulator):
|
||||||
|
if demodulator in ["usb", "lsb", "cw"]:
|
||||||
|
demodulator = "ssb"
|
||||||
|
if self.demodulator == demodulator:
|
||||||
|
return
|
||||||
|
self.demodulator = demodulator
|
||||||
|
self.calculate_decimation()
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def get_demodulator(self):
|
||||||
|
return self.demodulator
|
||||||
|
|
||||||
|
def set_fft_size(self, fft_size):
|
||||||
|
if self.fft_size == fft_size:
|
||||||
|
return
|
||||||
|
self.fft_size = fft_size
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def set_fft_fps(self, fft_fps):
|
||||||
|
self.fft_fps = fft_fps
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def set_fft_averages(self, fft_averages):
|
||||||
|
self.fft_averages = fft_averages
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def fft_block_size(self):
|
||||||
|
if self.fft_averages == 0:
|
||||||
|
return self.samp_rate / self.fft_fps
|
||||||
|
else:
|
||||||
|
return self.samp_rate / self.fft_fps / self.fft_averages
|
||||||
|
|
||||||
|
def set_offset_freq(self, offset_freq):
|
||||||
|
if offset_freq is None:
|
||||||
|
return
|
||||||
|
self.offset_freq = offset_freq
|
||||||
|
if self.running:
|
||||||
|
self.pipes["shift_pipe"].write("%g\n" % (-float(self.offset_freq) / self.samp_rate))
|
||||||
|
|
||||||
|
def set_center_freq(self, center_freq):
|
||||||
|
# dsp only needs to know this to be able to pass it to decoders in the form of get_operating_freq()
|
||||||
|
self.center_freq = center_freq
|
||||||
|
|
||||||
|
def get_operating_freq(self):
|
||||||
|
return self.center_freq + self.offset_freq
|
||||||
|
|
||||||
|
def set_bandpass(self, bandpass):
|
||||||
|
self.set_bpf(bandpass.low_cut, bandpass.high_cut)
|
||||||
|
|
||||||
|
def set_bpf(self, low_cut, high_cut):
|
||||||
|
self.low_cut = low_cut
|
||||||
|
self.high_cut = high_cut
|
||||||
|
if self.running:
|
||||||
|
self.pipes["bpf_pipe"].write(
|
||||||
|
"%g %g\n" % (float(self.low_cut) / self.if_samp_rate(), float(self.high_cut) / self.if_samp_rate())
|
||||||
|
)
|
||||||
|
|
||||||
|
def get_bpf(self):
|
||||||
|
return [self.low_cut, self.high_cut]
|
||||||
|
|
||||||
|
def convertToLinear(self, db):
|
||||||
|
return float(math.pow(10, db / 10))
|
||||||
|
|
||||||
|
def set_squelch_level(self, squelch_level):
|
||||||
|
self.squelch_level = squelch_level
|
||||||
|
# no squelch required on digital voice modes
|
||||||
|
actual_squelch = (
|
||||||
|
-150
|
||||||
|
if self.isDigitalVoice() or self.isPacket() or self.isPocsag() or self.isFreeDV() or self.isDrm()
|
||||||
|
else self.squelch_level
|
||||||
|
)
|
||||||
|
if self.running:
|
||||||
|
self.pipes["squelch_pipe"].write("%g\n" % (self.convertToLinear(actual_squelch)))
|
||||||
|
|
||||||
|
def set_codecserver(self, s):
|
||||||
|
if self.codecserver == s:
|
||||||
|
return
|
||||||
|
self.codecserver = s
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def get_codecserver_arg(self):
|
||||||
|
return "-s {}".format(self.codecserver) if self.codecserver else ""
|
||||||
|
|
||||||
|
def set_dmr_filter(self, filter):
|
||||||
|
if self.has_pipe("dmr_control_pipe"):
|
||||||
|
self.pipes["dmr_control_pipe"].write("{0}\n".format(filter))
|
||||||
|
|
||||||
|
def set_wfm_deemphasis_tau(self, tau):
|
||||||
|
if self.wfm_deemphasis_tau == tau:
|
||||||
|
return
|
||||||
|
self.wfm_deemphasis_tau = tau
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def ddc_transition_bw(self):
|
||||||
|
return self.ddc_transition_bw_rate * (self.if_samp_rate() / float(self.samp_rate))
|
||||||
|
|
||||||
|
def try_create_pipes(self, pipe_names, command_base):
|
||||||
|
for pipe_name, pipe_type in pipe_names.items():
|
||||||
|
if self.has_pipe(pipe_name):
|
||||||
|
logger.warning("{pipe_name} is still in use", pipe_name=pipe_name)
|
||||||
|
self.pipes[pipe_name].close()
|
||||||
|
if "{" + pipe_name + "}" in command_base:
|
||||||
|
p = self.pipe_base_path + pipe_name
|
||||||
|
encoding = None
|
||||||
|
# TODO make digiham output unicode and then change this here
|
||||||
|
# the whole pipe enoding feature onlye exists because of this
|
||||||
|
if pipe_name == "meta_pipe":
|
||||||
|
encoding = "cp437"
|
||||||
|
self.pipes[pipe_name] = Pipe.create(p, pipe_type, encoding=encoding)
|
||||||
|
else:
|
||||||
|
self.pipes[pipe_name] = None
|
||||||
|
|
||||||
|
def has_pipe(self, name):
|
||||||
|
return name in self.pipes and self.pipes[name] is not None
|
||||||
|
|
||||||
|
def try_delete_pipes(self, pipe_names):
|
||||||
|
for pipe_name in pipe_names:
|
||||||
|
if self.has_pipe(pipe_name):
|
||||||
|
self.pipes[pipe_name].close()
|
||||||
|
self.pipes[pipe_name] = None
|
||||||
|
|
||||||
|
def try_create_configs(self, command):
|
||||||
|
if "{direwolf_config}" in command:
|
||||||
|
self.direwolf_config_path = "{tmp_dir}/openwebrx_direwolf_{myid}.conf".format(
|
||||||
|
tmp_dir=self.temporary_directory, myid=id(self)
|
||||||
|
)
|
||||||
|
self.direwolf_config = DirewolfConfig()
|
||||||
|
self.direwolf_config.wire(self)
|
||||||
|
file = open(self.direwolf_config_path, "w")
|
||||||
|
file.write(self.direwolf_config.getConfig(self.is_service))
|
||||||
|
file.close()
|
||||||
|
else:
|
||||||
|
self.direwolf_config = None
|
||||||
|
self.direwolf_config_path = None
|
||||||
|
|
||||||
|
def try_delete_configs(self):
|
||||||
|
if self.direwolf_config is not None:
|
||||||
|
self.direwolf_config.unwire(self)
|
||||||
|
self.direwolf_config = None
|
||||||
|
if self.direwolf_config_path is not None:
|
||||||
|
try:
|
||||||
|
os.unlink(self.direwolf_config_path)
|
||||||
|
except FileNotFoundError:
|
||||||
|
# result suits our expectations. fine :)
|
||||||
|
pass
|
||||||
|
except Exception:
|
||||||
|
logger.exception("try_delete_configs()")
|
||||||
|
self.direwolf_config_path = None
|
||||||
|
|
||||||
|
def onConfigChanged(self):
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
def start(self):
|
||||||
|
with self.modification_lock:
|
||||||
|
if self.running:
|
||||||
|
return
|
||||||
|
self.running = True
|
||||||
|
|
||||||
|
command_base = " | ".join(self.chain(self.demodulator))
|
||||||
|
|
||||||
|
# create control pipes for csdr
|
||||||
|
self.try_create_pipes(self.pipe_names, command_base)
|
||||||
|
|
||||||
|
# send initial config through the pipes
|
||||||
|
if self.has_pipe("bpf_pipe"):
|
||||||
|
self.set_bpf(self.low_cut, self.high_cut)
|
||||||
|
if self.has_pipe("shift_pipe"):
|
||||||
|
self.set_offset_freq(self.offset_freq)
|
||||||
|
if self.has_pipe("squelch_pipe"):
|
||||||
|
self.set_squelch_level(self.squelch_level)
|
||||||
|
if self.has_pipe("dmr_control_pipe"):
|
||||||
|
self.set_dmr_filter(3)
|
||||||
|
|
||||||
|
# run the command
|
||||||
|
command = command_base.format(
|
||||||
|
bpf_pipe=self.pipes["bpf_pipe"],
|
||||||
|
shift_pipe=self.pipes["shift_pipe"],
|
||||||
|
squelch_pipe=self.pipes["squelch_pipe"],
|
||||||
|
smeter_pipe=self.pipes["smeter_pipe"],
|
||||||
|
meta_pipe=self.pipes["meta_pipe"],
|
||||||
|
iqtee_pipe=self.pipes["iqtee_pipe"],
|
||||||
|
iqtee2_pipe=self.pipes["iqtee2_pipe"],
|
||||||
|
dmr_control_pipe=self.pipes["dmr_control_pipe"],
|
||||||
|
decimation=self.decimation,
|
||||||
|
last_decimation=self.last_decimation,
|
||||||
|
fft_size=self.fft_size,
|
||||||
|
fft_block_size=self.fft_block_size(),
|
||||||
|
fft_averages=self.fft_averages,
|
||||||
|
bpf_transition_bw=float(self.bpf_transition_bw) / self.if_samp_rate(),
|
||||||
|
ddc_transition_bw=self.ddc_transition_bw(),
|
||||||
|
flowcontrol=int(self.samp_rate * 2),
|
||||||
|
start_bufsize=self.base_bufsize * self.decimation,
|
||||||
|
nc_port=self.nc_port,
|
||||||
|
output_rate=self.get_output_rate(),
|
||||||
|
smeter_report_every=int(self.if_samp_rate() / 6000),
|
||||||
|
codecserver_arg=self.get_codecserver_arg(),
|
||||||
|
audio_rate=self.get_audio_rate(),
|
||||||
|
wfm_deemphasis_tau=self.wfm_deemphasis_tau,
|
||||||
|
)
|
||||||
|
|
||||||
|
logger.debug("Command = %s", command)
|
||||||
|
|
||||||
|
out = subprocess.PIPE if self.output.supports_type("audio") else subprocess.DEVNULL
|
||||||
|
self.process = subprocess.Popen(command, stdout=out, shell=True, start_new_session=True)
|
||||||
|
|
||||||
|
def watch_thread():
|
||||||
|
rc = self.process.wait()
|
||||||
|
logger.debug("dsp thread ended with rc=%d", rc)
|
||||||
|
if rc == 0 and self.running and not self.modification_lock.locked():
|
||||||
|
logger.debug("restarting since rc = 0, self.running = true, and no modification")
|
||||||
|
self.restart()
|
||||||
|
|
||||||
|
threading.Thread(target=watch_thread, name="csdr_watch_thread").start()
|
||||||
|
|
||||||
|
audio_type = "hd_audio" if self.isHdAudio() else "audio"
|
||||||
|
if self.output.supports_type(audio_type):
|
||||||
|
self.output.send_output(
|
||||||
|
audio_type,
|
||||||
|
partial(
|
||||||
|
self.process.stdout.read,
|
||||||
|
self.get_fft_bytes_to_read() if self.demodulator == "fft" else self.get_audio_bytes_to_read(),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
self.start_secondary_demodulator()
|
||||||
|
|
||||||
|
if self.has_pipe("smeter_pipe"):
|
||||||
|
|
||||||
|
def read_smeter():
|
||||||
|
raw = self.pipes["smeter_pipe"].readline()
|
||||||
|
if len(raw) == 0:
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
return float(raw.rstrip("\n"))
|
||||||
|
|
||||||
|
self.output.send_output("smeter", read_smeter)
|
||||||
|
if self.has_pipe("meta_pipe"):
|
||||||
|
|
||||||
|
def read_meta():
|
||||||
|
raw = self.pipes["meta_pipe"].readline()
|
||||||
|
if len(raw) == 0:
|
||||||
|
return None
|
||||||
|
else:
|
||||||
|
return raw.rstrip("\n")
|
||||||
|
|
||||||
|
self.output.send_output("meta", read_meta)
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
with self.modification_lock:
|
||||||
|
self.running = False
|
||||||
|
if self.process is not None:
|
||||||
|
try:
|
||||||
|
os.killpg(os.getpgid(self.process.pid), signal.SIGTERM)
|
||||||
|
# drain any leftover data to free file descriptors
|
||||||
|
self.process.communicate()
|
||||||
|
self.process = None
|
||||||
|
except ProcessLookupError:
|
||||||
|
# been killed by something else, ignore
|
||||||
|
pass
|
||||||
|
self.stop_secondary_demodulator()
|
||||||
|
|
||||||
|
self.try_delete_pipes(self.pipe_names)
|
||||||
|
self.try_delete_configs()
|
||||||
|
|
||||||
|
def restart(self):
|
||||||
|
if not self.running:
|
||||||
|
return
|
||||||
|
self.stop()
|
||||||
|
self.start()
|
BIN
openwebrx/csdr/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
openwebrx/csdr/__pycache__/output.cpython-37.pyc
Normal file
BIN
openwebrx/csdr/__pycache__/pipe.cpython-37.pyc
Normal file
36
openwebrx/csdr/output.py
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
import threading
|
||||||
|
import logging
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
class Output(object):
|
||||||
|
def send_output(self, t, read_fn):
|
||||||
|
if not self.supports_type(t):
|
||||||
|
# TODO rewrite the output mechanism in a way that avoids producing unnecessary data
|
||||||
|
logger.warning("dumping output of type %s since it is not supported.", t)
|
||||||
|
threading.Thread(target=self.pump(read_fn, lambda x: None), name="csdr_pump_thread").start()
|
||||||
|
return
|
||||||
|
self.receive_output(t, read_fn)
|
||||||
|
|
||||||
|
def receive_output(self, t, read_fn):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def pump(self, read, write):
|
||||||
|
def copy():
|
||||||
|
run = True
|
||||||
|
while run:
|
||||||
|
data = None
|
||||||
|
try:
|
||||||
|
data = read()
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
if data is None or (isinstance(data, bytes) and len(data) == 0):
|
||||||
|
run = False
|
||||||
|
else:
|
||||||
|
write(data)
|
||||||
|
|
||||||
|
return copy
|
||||||
|
|
||||||
|
def supports_type(self, t):
|
||||||
|
return True
|
156
openwebrx/csdr/pipe.py
Normal file
|
@ -0,0 +1,156 @@
|
||||||
|
import os
|
||||||
|
import select
|
||||||
|
import time
|
||||||
|
import threading
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
class Pipe(object):
|
||||||
|
READ = "r"
|
||||||
|
WRITE = "w"
|
||||||
|
NONE = None
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def create(path, t, encoding=None):
|
||||||
|
if t == Pipe.READ:
|
||||||
|
return ReadingPipe(path, encoding=encoding)
|
||||||
|
elif t == Pipe.WRITE:
|
||||||
|
return WritingPipe(path, encoding=encoding)
|
||||||
|
elif t == Pipe.NONE:
|
||||||
|
return Pipe(path, None, encoding=encoding)
|
||||||
|
|
||||||
|
def __init__(self, path, direction, encoding=None):
|
||||||
|
self.doOpen = True
|
||||||
|
self.path = "{base}_{myid}".format(base=path, myid=id(self))
|
||||||
|
self.direction = direction
|
||||||
|
self.encoding = encoding
|
||||||
|
self.file = None
|
||||||
|
os.mkfifo(self.path)
|
||||||
|
|
||||||
|
def open(self):
|
||||||
|
"""
|
||||||
|
this method opens the file descriptor with an added O_NONBLOCK flag. This gives us a special behaviour for
|
||||||
|
FIFOS, when they are not opened by the opposing side:
|
||||||
|
|
||||||
|
- opening a pipe for writing will throw an OSError with errno = 6 (ENXIO). This is handled specially in the
|
||||||
|
WritingPipe class.
|
||||||
|
- opening a pipe for reading will pass through this method instantly, even if the opposing end has not been
|
||||||
|
opened yet, but the resulting file descriptor will behave as if O_NONBLOCK is set (even if we remove it
|
||||||
|
immediately here), resulting in empty reads until data is available. This is handled specially in the
|
||||||
|
ReadingPipe class.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def opener(path, flags):
|
||||||
|
fd = os.open(path, flags | os.O_NONBLOCK)
|
||||||
|
os.set_blocking(fd, True)
|
||||||
|
return fd
|
||||||
|
|
||||||
|
self.file = open(self.path, self.direction, encoding=self.encoding, opener=opener)
|
||||||
|
|
||||||
|
def close(self):
|
||||||
|
self.doOpen = False
|
||||||
|
try:
|
||||||
|
if self.file is not None:
|
||||||
|
self.file.close()
|
||||||
|
os.unlink(self.path)
|
||||||
|
except FileNotFoundError:
|
||||||
|
# it seems like we keep calling this twice. no idea why, but we don't need the resulting error.
|
||||||
|
pass
|
||||||
|
except Exception:
|
||||||
|
logger.exception("Pipe.close()")
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.path
|
||||||
|
|
||||||
|
|
||||||
|
class WritingPipe(Pipe):
|
||||||
|
def __init__(self, path, encoding=None):
|
||||||
|
self.queue = []
|
||||||
|
self.queueLock = threading.Lock()
|
||||||
|
super().__init__(path, "w", encoding=encoding)
|
||||||
|
self.open()
|
||||||
|
|
||||||
|
def open_and_dequeue(self):
|
||||||
|
"""
|
||||||
|
This method implements a retry loop that can be interrupted in case the Pipe gets shutdown before actually
|
||||||
|
being connected.
|
||||||
|
|
||||||
|
After the pipe is opened successfully, all data that has been queued is sent in the order it was passed into
|
||||||
|
write().
|
||||||
|
"""
|
||||||
|
retries = 0
|
||||||
|
|
||||||
|
while self.file is None and self.doOpen and retries < 10:
|
||||||
|
try:
|
||||||
|
super().open()
|
||||||
|
except OSError as error:
|
||||||
|
# ENXIO = FIFO has not been opened for reading
|
||||||
|
if error.errno == 6:
|
||||||
|
time.sleep(0.1)
|
||||||
|
retries += 1
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
|
# if doOpen is false, opening has been canceled, so no warning in that case.
|
||||||
|
if self.file is None:
|
||||||
|
if self.doOpen:
|
||||||
|
logger.warning("could not open FIFO %s", self.path)
|
||||||
|
return
|
||||||
|
|
||||||
|
with self.queueLock:
|
||||||
|
for i in self.queue:
|
||||||
|
self.file.write(i)
|
||||||
|
self.file.flush()
|
||||||
|
self.queue = None
|
||||||
|
|
||||||
|
def open(self):
|
||||||
|
"""
|
||||||
|
This sends the opening operation off to a background thread. If we were to block the thread here, another pipe
|
||||||
|
may be waiting in the queue to be opened on the opposing side, resulting in a deadlock
|
||||||
|
"""
|
||||||
|
threading.Thread(target=self.open_and_dequeue, name="csdr_pipe_thread").start()
|
||||||
|
|
||||||
|
def write(self, data):
|
||||||
|
"""
|
||||||
|
This method queues all data to be written until the file is actually opened. As soon as a file is available,
|
||||||
|
it becomes a passthrough.
|
||||||
|
"""
|
||||||
|
if self.file is None:
|
||||||
|
with self.queueLock:
|
||||||
|
self.queue.append(data)
|
||||||
|
return
|
||||||
|
r = self.file.write(data)
|
||||||
|
self.file.flush()
|
||||||
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
class ReadingPipe(Pipe):
|
||||||
|
def __init__(self, path, encoding=None):
|
||||||
|
super().__init__(path, "r", encoding=encoding)
|
||||||
|
|
||||||
|
def open(self):
|
||||||
|
"""
|
||||||
|
This method implements an interruptible loop that waits for the file descriptor to be opened and the first
|
||||||
|
batch of data coming in using repeated select() calls.
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if not self.doOpen:
|
||||||
|
return
|
||||||
|
super().open()
|
||||||
|
while self.doOpen:
|
||||||
|
(read, _, _) = select.select([self.file], [], [], 1)
|
||||||
|
if self.file in read:
|
||||||
|
break
|
||||||
|
|
||||||
|
def read(self):
|
||||||
|
if self.file is None:
|
||||||
|
self.open()
|
||||||
|
return self.file.read()
|
||||||
|
|
||||||
|
def readline(self):
|
||||||
|
if self.file is None:
|
||||||
|
self.open()
|
||||||
|
return self.file.readline()
|
217
openwebrx/debian/changelog
Normal file
|
@ -0,0 +1,217 @@
|
||||||
|
openwebrx (1.1.0) buster hirsute; urgency=low
|
||||||
|
|
||||||
|
* Reworked most graphical elements as SVGs for faster loadtimes and crispier
|
||||||
|
display on hi-dpi displays
|
||||||
|
* Updated pipelines to match changes in digiham
|
||||||
|
* Changed D-Star and NXDN integrations to use new decoder from digiham
|
||||||
|
* Added D-Star and NXDN metadata display
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Mon, 02 Aug 2021 16:24:00 +0000
|
||||||
|
|
||||||
|
openwebrx (1.0.0) buster hirsute; urgency=low
|
||||||
|
* Introduced `squelch_auto_margin` config option that allows configuring the
|
||||||
|
auto squelch level
|
||||||
|
* Removed `port` configuration option; `rtltcp_compat` takes the port number
|
||||||
|
with the new connectors
|
||||||
|
* Added support for new WSJT-X modes FST4, FST4W (only available with WSJT-X
|
||||||
|
2.3) and Q65 (only available with WSJT-X 2.4)
|
||||||
|
* Added support for demodulating M17 digital voice signals using
|
||||||
|
m17-cxx-demod
|
||||||
|
* New reporting infrastructure, allowing WSPR and FST4W spots to be sent to
|
||||||
|
wsprnet.org
|
||||||
|
* Add some basic filtering capabilities to the map
|
||||||
|
* New arguments to the `openwebrx` command-line to facilitate the
|
||||||
|
administration of users (try `openwebrx admin`)
|
||||||
|
* New command-line tool `openwebrx-admin` that facilitates the
|
||||||
|
administration of users
|
||||||
|
* Default bandwidth changes:
|
||||||
|
- "WFM" changed to 150kHz
|
||||||
|
- "Packet" (APRS) changed to 12.5kHz
|
||||||
|
* Configuration rework:
|
||||||
|
- New: fully web-based configuration interface
|
||||||
|
- System configuration parameters have been moved to a new, separate
|
||||||
|
`openwebrx.conf` file
|
||||||
|
- Remaining parameters are now editable in the web configuration
|
||||||
|
- Existing `config_webrx.py` files will still be read, but changes made in
|
||||||
|
the web configuration will be written to a new storage system
|
||||||
|
- Added upload of avatar and panorama image via web configuration
|
||||||
|
* New devices supported:
|
||||||
|
- HPSDR devices (Hermes Lite 2) thanks to @jancona
|
||||||
|
- BBRF103 / RX666 / RX888 devices supported by libsddc
|
||||||
|
- R&S devices using the EB200 or Ammos protocols
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Thu, 06 May 2021 17:22:00 +0000
|
||||||
|
|
||||||
|
openwebrx (0.20.3) buster focal; urgency=low
|
||||||
|
|
||||||
|
* Fix a compatibility issue with python versions <= 3.6
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Tue, 26 Jan 2021 15:28:00 +0000
|
||||||
|
|
||||||
|
openwebrx (0.20.2) buster focal; urgency=high
|
||||||
|
|
||||||
|
* Fix a security problem that allowed arbitrary commands to be executed on
|
||||||
|
the receiver (See github issue #215:
|
||||||
|
https://github.com/jketterl/openwebrx/issues/215)
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Sun, 24 Jan 2021 22:50:00 +0000
|
||||||
|
|
||||||
|
openwebrx (0.20.1) buster focal; urgency=low
|
||||||
|
|
||||||
|
* Remove broken OSM map fallback
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Mon, 30 Nov 2020 17:29:00 +0000
|
||||||
|
|
||||||
|
openwebrx (0.20.0) buster focal; urgency=low
|
||||||
|
|
||||||
|
* Added the ability to sign multiple keys in a single request, thus enabling
|
||||||
|
multiple users to claim a single receiver on receiverbook.de
|
||||||
|
* Fixed file descriptor leaks to prevent "too many open files" errors
|
||||||
|
* Add new demodulator chain for FreeDV
|
||||||
|
* Added new HD audio streaming mode along with a new WFM demodulator
|
||||||
|
* Reworked AGC code for better results in AM, SSB and digital modes
|
||||||
|
* Added support for demodulation of "Digital Radio Mondiale" (DRM) broadcast
|
||||||
|
using the "dream" decoder.
|
||||||
|
* New default waterfall color scheme
|
||||||
|
* Prototype of a continuous automatic waterfall calibration mode
|
||||||
|
* New devices supported:
|
||||||
|
- FunCube Dongle Pro+ (`"type": "fcdpp"`)
|
||||||
|
- Support for connections to rtl_tcp (`"type": "rtl_tcp"`)
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Sun, 11 Oct 2020 13:02:00 +0000
|
||||||
|
|
||||||
|
openwebrx (0.19.1) buster focal; urgency=low
|
||||||
|
|
||||||
|
* Added ability to authenticate receivers with listing sites using
|
||||||
|
"receiver id" tokens
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Sat, 13 Jun 2020 16:46:00 +0000
|
||||||
|
|
||||||
|
openwebrx (0.19.0) buster focal; urgency=low
|
||||||
|
* Fix direwolf connection setup by implementing a retry loop
|
||||||
|
* Pass direct sampling mode changes for rtl_sdr_soapy to owrx_connector
|
||||||
|
* OSM maps instead of Google when google_maps_api_key is not set (thanks
|
||||||
|
@jquagga)
|
||||||
|
* Improved logic to pass parameters to soapy devices.
|
||||||
|
- `rtl_sdr_soapy`: added support for `bias_tee`
|
||||||
|
- `sdrplay`: added support for `bias_tee`, `rf_notch` and `dab_notch`
|
||||||
|
- `airspy`: added support for `bitpack`
|
||||||
|
* Added support for Perseus-SDR devices, (thanks @amontefusco)
|
||||||
|
* Property System has been rewritten so that defaults on sdr behave as
|
||||||
|
expected
|
||||||
|
* Waterfall range auto-adjustment now only takes the center 80% of the
|
||||||
|
spectrum into account, which should work better with SDRs that oversample
|
||||||
|
or have rather flat filter curves towards the spectrum edges
|
||||||
|
* Bugfix for negative network usage
|
||||||
|
* FiFi SDR: prevent arecord from shutting down after 2GB of data has been
|
||||||
|
sent
|
||||||
|
* Added support for bias tee control on rtl_sdr devices
|
||||||
|
* All connector driven SDRs now support `"rf_gain": "auto"` to enable AGC
|
||||||
|
* `rtl_sdr` type now also supports the `direct_sampling` option
|
||||||
|
* Added decoding implementation for for digimode "JS8Call" (requires an
|
||||||
|
installation of js8call and the js8py library)
|
||||||
|
* Reorganization of the frontend demodulator code
|
||||||
|
* Improve receiver load time by concatenating javascript assets
|
||||||
|
* HackRF support is now based on SoapyHackRF
|
||||||
|
* Removed sdr.hu server listing support since the site has been shut down
|
||||||
|
* Added support for Radioberry 2 Rasbperry Pi SDR Cape
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Mon, 01 Jun 2020 17:02:00 +0000
|
||||||
|
|
||||||
|
openwebrx (0.18.0) buster; urgency=low
|
||||||
|
|
||||||
|
* Compression, resampling and filtering in the frontend have been rewritten
|
||||||
|
in javascript, sdr.js has been removed
|
||||||
|
* Decoding of Pocsag modulation is now possible
|
||||||
|
* Removed the 3D waterfall since it had no real application and required ~1MB
|
||||||
|
of javascript code to be downloaded
|
||||||
|
* Improved the frontend handling of the "too many users" scenario
|
||||||
|
* PSK63 digimode is now available (same decoding pipeline as PSK31, but with
|
||||||
|
adopted parameters)
|
||||||
|
* The frequency can now be manipulated with the mousewheel, which should
|
||||||
|
allow the user to tune more precise. The tuning step size is determined by
|
||||||
|
the digit the mouse cursor is hovering over.
|
||||||
|
* Clicking on the frequency now opens an input for direct frequency selection
|
||||||
|
* URL hashes have been fixed and improved: They are now updated
|
||||||
|
automatically, so a shared URL will include frequency and demodulator,
|
||||||
|
which allows for improved sharing and linking.
|
||||||
|
* New daylight scheduler for background decoding, allows profiles to be
|
||||||
|
selected by local sunrise / sunset times
|
||||||
|
* The owrx_connector is now the default way of communicating with sdr
|
||||||
|
devices. The old sdr types have been replaced, all `_connector` suffixes on
|
||||||
|
the type must be removed!
|
||||||
|
* The sources have been refactored, making it a lot easier to add support for
|
||||||
|
other devices
|
||||||
|
* SDR device failure handling has been improved, including user feedback
|
||||||
|
* New devices supported:
|
||||||
|
* wsjt-x updated to 2.1.2
|
||||||
|
* The rtl_tcp compatibility mode of the owrx_connector is now configurable
|
||||||
|
using the `rtltcp_compat` flag
|
||||||
|
* explicit device filter for soapy devices for multi-device setups
|
||||||
|
* compatibility fixes for safari browsers (ios and mac)
|
||||||
|
* Offset tuning using the `lfo_offset` has been reworked in a way that
|
||||||
|
`center_freq` has to be set to the frequency you actually want to listen
|
||||||
|
to. If you're using an `lfo_offset` already, you will probably need to
|
||||||
|
change its sign.
|
||||||
|
* `initial_squelch_level` can now be set on each profile.
|
||||||
|
* Part of the frontend code has been reworked
|
||||||
|
- Audio buffer minimums have been completely stripped. As a result, you
|
||||||
|
should get better latency. Unfortunately, this also means there will be
|
||||||
|
some skipping when audio starts.
|
||||||
|
- Now also supports AudioWorklets (for those browser that have it).
|
||||||
|
- Mousewheel controls for the receiver sliders
|
||||||
|
* Error handling for failed SDR devices
|
||||||
|
* One of the most-requested features is finally coming to OpenWebRX:
|
||||||
|
Bookmarks (sometimes also referred to as labels).
|
||||||
|
There's two kinds of bookmarks available:
|
||||||
|
- Serverside bookmarks that are set up by the receiver administrator.
|
||||||
|
Check the file `bookmarks.json` for examples!
|
||||||
|
- Clientside bookmarks which every user can store for themselves. They are
|
||||||
|
stored in the browser's localStorage.
|
||||||
|
* Automatic reporting of spots to [pskreporter](https://pskreporter.info/) is
|
||||||
|
now possible. Please have a look at the configuration on how to set it up.
|
||||||
|
* Websocket communication has been overhauled in large parts. It should now
|
||||||
|
be more reliable, and failing connections should now have no impact on
|
||||||
|
other users.
|
||||||
|
* Profile scheduling allows to set up band-hopping if you are running
|
||||||
|
background services.
|
||||||
|
* APRS now has the ability to show symbols on the map, if a corresponding
|
||||||
|
symbol set has been installed. Check the config!
|
||||||
|
* Debug logging has been disabled in a handful of modules, expect vastly
|
||||||
|
reduced output on the shell.
|
||||||
|
* New set of APRS-related features
|
||||||
|
- Decode Packet transmissions using direwolf (1k2 only for now)
|
||||||
|
- APRS packets are mostly decoded and shown both in a new panel and on the
|
||||||
|
map
|
||||||
|
- APRS is also available as a background service
|
||||||
|
- direwolfs I-gate functionality can be enabled, which allows your receiver
|
||||||
|
to work as a receive-only I-gate for the APRS network in the background
|
||||||
|
* Demodulation for background services has been optimized to use less total
|
||||||
|
bandwidth, saving CPU
|
||||||
|
* More metrics have been added; they can be used together with collectd and
|
||||||
|
its curl_json plugin for now, with some limitations.
|
||||||
|
* New bandplan feature, the first thing visible is the "dial" indicator that
|
||||||
|
brings you right to the dial frequency for digital modes
|
||||||
|
* fixed some bugs in the websocket communication which broke the map
|
||||||
|
* WSJT-X integration (FT8, FT4, WSPR, JT65, JT9 using wsjt-x demodulators)
|
||||||
|
* New Map Feature that shows both decoded grid squares from FT8 and Locations
|
||||||
|
decoded from YSF digital voice
|
||||||
|
* New Feature report that will show what functionality is available
|
||||||
|
* major rework on the openwebrx core
|
||||||
|
* Support of multiple SDR devices simultaneously
|
||||||
|
* Support for multiple profiles per SDR that allow the user to listen to
|
||||||
|
different frequencies
|
||||||
|
* Support for digital voice decoding
|
||||||
|
* Feature detection that will disable functionality when dependencies are not
|
||||||
|
available (if you're missing the digital
|
||||||
|
buttons, this is probably why)
|
||||||
|
* Support added for the following SDR sources:
|
||||||
|
- LimeSDR (`"type": "lime_sdr"`)
|
||||||
|
- PlutoSDR (`"type": "pluto_sdr"`)
|
||||||
|
- RTL_SDR via Soapy (`"type": "rtl_sdr_soapy"`) on special request to allow
|
||||||
|
use of the direct sampling mode
|
||||||
|
- SoapyRemote (`"type": "soapy_remote"`)
|
||||||
|
- FiFiSDR (`"type": "fifi_sdr"`)
|
||||||
|
- airspyhf devices (Airspy HF+ / Discovery) (`"type": "airspyhf"`)
|
||||||
|
|
||||||
|
-- Jakob Ketterl <jakob.ketterl@gmx.de> Tue, 18 Feb 2020 20:09:00 +0000
|
1
openwebrx/debian/compat
Normal file
|
@ -0,0 +1 @@
|
||||||
|
10
|
16
openwebrx/debian/control
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
Source: openwebrx
|
||||||
|
Maintainer: Jakob Ketterl <jakob.ketterl@gmx.de>
|
||||||
|
Section: hamradio
|
||||||
|
Priority: optional
|
||||||
|
Standards-Version: 4.2.0
|
||||||
|
Build-Depends: debhelper (>= 11), dh-python, python3-all (>= 3.5), python3-setuptools
|
||||||
|
Homepage: https://www.openwebrx.de/
|
||||||
|
Vcs-Browser: https://github.com/jketterl/openwebrx
|
||||||
|
Vcs-Git: https://github.com/jketterl/openwebrx.git
|
||||||
|
|
||||||
|
Package: openwebrx
|
||||||
|
Architecture: all
|
||||||
|
Depends: adduser, python3 (>= 3.5), python3-pkg-resources, csdr (>= 0.17), netcat, owrx-connector (>= 0.5), soapysdr-tools, python3-js8py (>= 0.1), ${python3:Depends}, ${misc:Depends}
|
||||||
|
Recommends: digiham (>= 0.5), sox, direwolf (>= 1.4), wsjtx, runds-connector (>= 0.2), hpsdrconnector, aprs-symbols, m17-demod, js8call
|
||||||
|
Description: multi-user web sdr
|
||||||
|
Open source, multi-user SDR receiver with a web interface
|
8
openwebrx/debian/openwebrx.config
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
db_get openwebrx/admin_user_configured
|
||||||
|
if [ "${1:-}" = "reconfigure" ] || [ "${RET}" != true ]; then
|
||||||
|
db_input high openwebrx/admin_user_password || true
|
||||||
|
db_go
|
||||||
|
fi
|
1
openwebrx/debian/openwebrx.dirs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/etc/openwebrx/openwebrx.conf.d
|
3
openwebrx/debian/openwebrx.install
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
bands.json etc/openwebrx/
|
||||||
|
openwebrx.conf etc/openwebrx/
|
||||||
|
systemd/openwebrx.service lib/systemd/system/
|
59
openwebrx/debian/openwebrx.postinst
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
#!/bin/bash
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
OWRX_USER="openwebrx"
|
||||||
|
OWRX_DATADIR="/var/lib/openwebrx"
|
||||||
|
OWRX_USERS_FILE="${OWRX_DATADIR}/users.json"
|
||||||
|
OWRX_SETTINGS_FILE="${OWRX_DATADIR}/settings.json"
|
||||||
|
OWRX_BOOKMARKS_FILE="${OWRX_DATADIR}/bookmarks.json"
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
configure|reconfigure)
|
||||||
|
adduser --system --group --no-create-home --home /nonexistent --quiet "${OWRX_USER}"
|
||||||
|
usermod -aG plugdev "${OWRX_USER}"
|
||||||
|
|
||||||
|
# create OpenWebRX data directory and set the correct permissions
|
||||||
|
if [ ! -d "${OWRX_DATADIR}" ] && [ ! -L "${OWRX_DATADIR}" ]; then mkdir "${OWRX_DATADIR}"; fi
|
||||||
|
chown "${OWRX_USER}". ${OWRX_DATADIR}
|
||||||
|
|
||||||
|
# create empty config files now to avoid permission problems later
|
||||||
|
if [ ! -e "${OWRX_USERS_FILE}" ]; then
|
||||||
|
echo "[]" > "${OWRX_USERS_FILE}"
|
||||||
|
chown "${OWRX_USER}". "${OWRX_USERS_FILE}"
|
||||||
|
chmod 0600 "${OWRX_USERS_FILE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e "${OWRX_SETTINGS_FILE}" ]; then
|
||||||
|
echo "{}" > "${OWRX_SETTINGS_FILE}"
|
||||||
|
chown "${OWRX_USER}". "${OWRX_SETTINGS_FILE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e "${OWRX_BOOKMARKS_FILE}" ]; then
|
||||||
|
touch "${OWRX_BOOKMARKS_FILE}"
|
||||||
|
chown "${OWRX_USER}". "${OWRX_BOOKMARKS_FILE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
db_get openwebrx/admin_user_password
|
||||||
|
if [ ! -z "${RET}" ]; then
|
||||||
|
if ! openwebrx admin --silent hasuser admin; then
|
||||||
|
# create initial openwebrx user
|
||||||
|
OWRX_PASSWORD="${RET}" openwebrx admin --noninteractive adduser admin
|
||||||
|
else
|
||||||
|
# change existing user's password
|
||||||
|
OWRX_PASSWORD="${RET}" openwebrx admin --noninteractive resetpassword admin
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# remove password from debconf database
|
||||||
|
db_unregister openwebrx/admin_user_password
|
||||||
|
# set a marker that admin is configured to avoid future questions
|
||||||
|
db_set openwebrx/admin_user_configured true
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "postinst called with unknown argument '$1'" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
8
openwebrx/debian/openwebrx.postrm
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
db_purge
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
23
openwebrx/debian/openwebrx.templates
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
Template: openwebrx/admin_user_password
|
||||||
|
Type: password
|
||||||
|
Description: OpenWebRX "admin" user password:
|
||||||
|
The system can create a user for the OpenWebRX web configuration interface for
|
||||||
|
you. Using this user, you will be able to log into the "settings" area of
|
||||||
|
OpenWebRX to configure your receiver conveniently through your browser.
|
||||||
|
.
|
||||||
|
The name of the created user will be "admin".
|
||||||
|
.
|
||||||
|
If you do not wish to create a web admin user right now, you can leave this
|
||||||
|
empty for now. You can return to this prompt at a later time by running the
|
||||||
|
command "sudo dpkg-reconfigure openwebrx".
|
||||||
|
.
|
||||||
|
You can also use the "openwebrx admin" command to create, delete or manage
|
||||||
|
existing users. More information is available in by running the command
|
||||||
|
"openwebrx admin --help".
|
||||||
|
|
||||||
|
Template: openwebrx/admin_user_configured
|
||||||
|
Type: boolean
|
||||||
|
Default: false
|
||||||
|
Description: OpenWebRX "admin" user previously configured?
|
||||||
|
Marker used internally by the config scripts to remember if an admin user has
|
||||||
|
been created.
|
8
openwebrx/debian/rules
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
export PYBUILD_NAME=openwebrx
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with python3 --buildsystem=pybuild --with systemd
|
||||||
|
|
||||||
|
override_dh_strip_nondeterminism:
|
||||||
|
dh_strip_nondeterminism -X.png
|
1
openwebrx/debian/source/format
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.0 (native)
|
97
openwebrx/docker.sh
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
IMAGES="openwebrx-rtlsdr openwebrx-sdrplay openwebrx-hackrf openwebrx-airspy openwebrx-rtlsdr-soapy openwebrx-plutosdr openwebrx-limesdr openwebrx-soapyremote openwebrx-perseus openwebrx-fcdpp openwebrx-radioberry openwebrx-uhd openwebrx-rtltcp openwebrx-runds openwebrx-hpsdr openwebrx-full openwebrx"
|
||||||
|
ALL_ARCHS="x86_64 armv7l aarch64"
|
||||||
|
TAG=${TAG:-"latest"}
|
||||||
|
ARCHTAG="${TAG}-${ARCH}"
|
||||||
|
|
||||||
|
usage () {
|
||||||
|
echo "Usage: ${0} [command]"
|
||||||
|
echo "Available commands:"
|
||||||
|
echo " help Show this usage information"
|
||||||
|
echo " build Build all docker images"
|
||||||
|
echo " push Push built docker images to the docker hub"
|
||||||
|
echo " manifest Compile the docker hub manifest (combines arm and x86 tags into one)"
|
||||||
|
echo " tag Tag a release"
|
||||||
|
}
|
||||||
|
|
||||||
|
build () {
|
||||||
|
# build the base images
|
||||||
|
docker build --pull -t openwebrx-base:${ARCHTAG} -f docker/Dockerfiles/Dockerfile-base .
|
||||||
|
docker build --build-arg ARCHTAG=${ARCHTAG} -t openwebrx-soapysdr-base:${ARCHTAG} -f docker/Dockerfiles/Dockerfile-soapysdr .
|
||||||
|
|
||||||
|
for image in ${IMAGES}; do
|
||||||
|
i=${image:10}
|
||||||
|
# "openwebrx" is a special image that gets tag-aliased later on
|
||||||
|
if [[ ! -z "${i}" ]] ; then
|
||||||
|
docker build --build-arg ARCHTAG=$ARCHTAG -t jketterl/${image}:${ARCHTAG} -f docker/Dockerfiles/Dockerfile-${i} .
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# tag openwebrx alias image
|
||||||
|
docker tag jketterl/openwebrx-full:${ARCHTAG} jketterl/openwebrx:${ARCHTAG}
|
||||||
|
}
|
||||||
|
|
||||||
|
push () {
|
||||||
|
for image in ${IMAGES}; do
|
||||||
|
docker push jketterl/${image}:${ARCHTAG}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
manifest () {
|
||||||
|
for image in ${IMAGES}; do
|
||||||
|
# there's no docker manifest rm command, and the create --amend does not work, so we have to clean up manually
|
||||||
|
rm -rf "${HOME}/.docker/manifests/docker.io_jketterl_${image}-${TAG}"
|
||||||
|
IMAGE_LIST=""
|
||||||
|
for a in ${ALL_ARCHS}; do
|
||||||
|
IMAGE_LIST="${IMAGE_LIST} jketterl/${image}:${TAG}-${a}"
|
||||||
|
done
|
||||||
|
docker manifest create jketterl/${image}:${TAG} ${IMAGE_LIST}
|
||||||
|
docker manifest push --purge jketterl/${image}:${TAG}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
tag () {
|
||||||
|
if [[ -x ${1:-} || -z ${2:-} ]] ; then
|
||||||
|
echo "Usage: ${0} tag [SRC_TAG] [TARGET_TAG]"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
local SRC_TAG=${1}
|
||||||
|
local TARGET_TAG=${2}
|
||||||
|
|
||||||
|
for image in ${IMAGES}; do
|
||||||
|
# there's no docker manifest rm command, and the create --amend does not work, so we have to clean up manually
|
||||||
|
rm -rf "${HOME}/.docker/manifests/docker.io_jketterl_${image}-${TARGET_TAG}"
|
||||||
|
IMAGE_LIST=""
|
||||||
|
for a in ${ALL_ARCHS}; do
|
||||||
|
docker pull jketterl/${image}:${SRC_TAG}-${a}
|
||||||
|
docker tag jketterl/${image}:${SRC_TAG}-${a} jketterl/${image}:${TARGET_TAG}-${a}
|
||||||
|
docker push jketterl/${image}:${TARGET_TAG}-${a}
|
||||||
|
IMAGE_LIST="${IMAGE_LIST} jketterl/${image}:${TARGET_TAG}-${a}"
|
||||||
|
done
|
||||||
|
docker manifest create jketterl/${image}:${TARGET_TAG} ${IMAGE_LIST}
|
||||||
|
docker manifest push --purge jketterl/${image}:${TARGET_TAG}
|
||||||
|
docker pull jketterl/${image}:${TARGET_TAG}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
case ${1:-} in
|
||||||
|
build)
|
||||||
|
build
|
||||||
|
;;
|
||||||
|
push)
|
||||||
|
push
|
||||||
|
;;
|
||||||
|
manifest)
|
||||||
|
manifest
|
||||||
|
;;
|
||||||
|
tag)
|
||||||
|
tag ${@:2}
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
esac
|
8
openwebrx/docker/Dockerfiles/Dockerfile-airspy
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-airspy.sh /
|
||||||
|
RUN /install-dependencies-airspy.sh &&\
|
||||||
|
rm /install-dependencies-airspy.sh
|
||||||
|
|
||||||
|
ADD . /opt/openwebrx
|
28
openwebrx/docker/Dockerfiles/Dockerfile-base
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
FROM debian:buster-slim
|
||||||
|
|
||||||
|
COPY docker/files/js8call/js8call-hamlib.patch \
|
||||||
|
docker/files/wsjtx/wsjtx.patch \
|
||||||
|
docker/files/wsjtx/wsjtx-hamlib.patch \
|
||||||
|
docker/files/dream/dream.patch \
|
||||||
|
docker/files/direwolf/direwolf-hamlib.patch \
|
||||||
|
docker/scripts/install-dependencies.sh /
|
||||||
|
RUN /install-dependencies.sh && \
|
||||||
|
rm /install-dependencies.sh && \
|
||||||
|
rm /*.patch
|
||||||
|
COPY docker/scripts/install-owrx-tools.sh /
|
||||||
|
RUN /install-owrx-tools.sh && \
|
||||||
|
rm /install-owrx-tools.sh
|
||||||
|
|
||||||
|
COPY docker/files/services/codecserver /etc/services.d/codecserver
|
||||||
|
|
||||||
|
ENTRYPOINT ["/init"]
|
||||||
|
|
||||||
|
WORKDIR /opt/openwebrx
|
||||||
|
|
||||||
|
VOLUME /etc/openwebrx
|
||||||
|
VOLUME /var/lib/openwebrx
|
||||||
|
|
||||||
|
ENV S6_CMD_ARG0="/opt/openwebrx/docker/scripts/run.sh"
|
||||||
|
CMD []
|
||||||
|
|
||||||
|
EXPOSE 8073
|
8
openwebrx/docker/Dockerfiles/Dockerfile-fcdpp
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-fcdpp.sh /
|
||||||
|
RUN /install-dependencies-fcdpp.sh &&\
|
||||||
|
rm /install-dependencies-fcdpp.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
30
openwebrx/docker/Dockerfiles/Dockerfile-full
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-*.sh \
|
||||||
|
docker/files/sdrplay/install-lib.*.patch \
|
||||||
|
docker/scripts/install-connectors.sh /
|
||||||
|
|
||||||
|
RUN /install-dependencies-rtlsdr.sh &&\
|
||||||
|
/install-dependencies-soapysdr.sh &&\
|
||||||
|
/install-dependencies-hackrf.sh &&\
|
||||||
|
/install-dependencies-sdrplay.sh &&\
|
||||||
|
/install-dependencies-airspy.sh &&\
|
||||||
|
/install-dependencies-rtlsdr-soapy.sh &&\
|
||||||
|
/install-dependencies-plutosdr.sh &&\
|
||||||
|
/install-dependencies-limesdr.sh &&\
|
||||||
|
/install-dependencies-soapyremote.sh &&\
|
||||||
|
/install-dependencies-perseus.sh &&\
|
||||||
|
/install-dependencies-fcdpp.sh &&\
|
||||||
|
/install-dependencies-radioberry.sh &&\
|
||||||
|
/install-dependencies-uhd.sh &&\
|
||||||
|
/install-dependencies-hpsdr.sh &&\
|
||||||
|
/install-connectors.sh &&\
|
||||||
|
/install-dependencies-runds.sh &&\
|
||||||
|
rm /install-dependencies-*.sh &&\
|
||||||
|
rm /install-lib.*.patch && \
|
||||||
|
rm /install-connectors.sh
|
||||||
|
|
||||||
|
COPY docker/files/services/sdrplay /etc/services.d/sdrplay
|
||||||
|
|
||||||
|
ADD . /opt/openwebrx
|
8
openwebrx/docker/Dockerfiles/Dockerfile-hackrf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-hackrf.sh /
|
||||||
|
RUN /install-dependencies-hackrf.sh &&\
|
||||||
|
rm /install-dependencies-hackrf.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
9
openwebrx/docker/Dockerfiles/Dockerfile-hpsdr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-hpsdr.sh /
|
||||||
|
|
||||||
|
RUN /install-dependencies-hpsdr.sh &&\
|
||||||
|
rm /install-dependencies-hpsdr.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
8
openwebrx/docker/Dockerfiles/Dockerfile-limesdr
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-limesdr.sh /
|
||||||
|
RUN /install-dependencies-limesdr.sh &&\
|
||||||
|
rm /install-dependencies-limesdr.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
8
openwebrx/docker/Dockerfiles/Dockerfile-perseus
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-perseus.sh /
|
||||||
|
RUN /install-dependencies-perseus.sh &&\
|
||||||
|
rm /install-dependencies-perseus.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
8
openwebrx/docker/Dockerfiles/Dockerfile-plutosdr
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-plutosdr.sh /
|
||||||
|
RUN /install-dependencies-plutosdr.sh &&\
|
||||||
|
rm /install-dependencies-plutosdr.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
8
openwebrx/docker/Dockerfiles/Dockerfile-radioberry
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-radioberry.sh /
|
||||||
|
RUN /install-dependencies-radioberry.sh &&\
|
||||||
|
rm /install-dependencies-radioberry.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
12
openwebrx/docker/Dockerfiles/Dockerfile-rtlsdr
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-rtlsdr.sh \
|
||||||
|
docker/scripts/install-connectors.sh /
|
||||||
|
|
||||||
|
RUN /install-dependencies-rtlsdr.sh &&\
|
||||||
|
rm /install-dependencies-rtlsdr.sh &&\
|
||||||
|
/install-connectors.sh &&\
|
||||||
|
rm /install-connectors.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
8
openwebrx/docker/Dockerfiles/Dockerfile-rtlsdr-soapy
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-rtlsdr-soapy.sh /
|
||||||
|
RUN /install-dependencies-rtlsdr-soapy.sh &&\
|
||||||
|
rm /install-dependencies-rtlsdr-soapy.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
9
openwebrx/docker/Dockerfiles/Dockerfile-rtltcp
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-connectors.sh /
|
||||||
|
|
||||||
|
RUN /install-connectors.sh &&\
|
||||||
|
rm /install-connectors.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
12
openwebrx/docker/Dockerfiles/Dockerfile-runds
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-connectors.sh \
|
||||||
|
docker/scripts/install-dependencies-runds.sh /
|
||||||
|
|
||||||
|
RUN /install-connectors.sh &&\
|
||||||
|
rm /install-connectors.sh && \
|
||||||
|
/install-dependencies-runds.sh && \
|
||||||
|
rm /install-dependencies-runds.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
12
openwebrx/docker/Dockerfiles/Dockerfile-sdrplay
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-sdrplay.sh \
|
||||||
|
docker/files/sdrplay/install-lib.*.patch /
|
||||||
|
RUN /install-dependencies-sdrplay.sh &&\
|
||||||
|
rm /install-dependencies-sdrplay.sh &&\
|
||||||
|
rm /install-lib.*.patch
|
||||||
|
|
||||||
|
COPY docker/files/services/sdrplay /etc/services.d/sdrplay
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
8
openwebrx/docker/Dockerfiles/Dockerfile-soapyremote
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-soapyremote.sh /
|
||||||
|
RUN /install-dependencies-soapyremote.sh &&\
|
||||||
|
rm /install-dependencies-soapyremote.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
9
openwebrx/docker/Dockerfiles/Dockerfile-soapysdr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-soapysdr.sh \
|
||||||
|
docker/scripts/install-connectors.sh /
|
||||||
|
RUN /install-dependencies-soapysdr.sh &&\
|
||||||
|
rm /install-dependencies-soapysdr.sh &&\
|
||||||
|
/install-connectors.sh &&\
|
||||||
|
rm /install-connectors.sh
|
8
openwebrx/docker/Dockerfiles/Dockerfile-uhd
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
ARG ARCHTAG
|
||||||
|
FROM openwebrx-soapysdr-base:$ARCHTAG
|
||||||
|
|
||||||
|
COPY docker/scripts/install-dependencies-uhd.sh /
|
||||||
|
RUN /install-dependencies-uhd.sh &&\
|
||||||
|
rm /install-dependencies-uhd.sh
|
||||||
|
|
||||||
|
COPY . /opt/openwebrx
|
20
openwebrx/docker/files/direwolf/direwolf-hamlib.patch
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 9e710f5..da90b43 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -257,13 +257,8 @@ else()
|
||||||
|
set(GPSD_LIBRARIES "")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
-find_package(hamlib)
|
||||||
|
-if(HAMLIB_FOUND)
|
||||||
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_HAMLIB")
|
||||||
|
-else()
|
||||||
|
- set(HAMLIB_INCLUDE_DIRS "")
|
||||||
|
- set(HAMLIB_LIBRARIES "")
|
||||||
|
-endif()
|
||||||
|
+set(HAMLIB_INCLUDE_DIRS "")
|
||||||
|
+set(HAMLIB_LIBRARIES "")
|
||||||
|
|
||||||
|
if(LINUX)
|
||||||
|
find_package(ALSA REQUIRED)
|
96
openwebrx/docker/files/dream/dream.patch
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
--- dream.pro.org 2020-09-04 22:51:51.579926191 +0200
|
||||||
|
+++ dream.pro 2020-09-04 22:52:57.609434707 +0200
|
||||||
|
@@ -70,9 +70,6 @@
|
||||||
|
exists(/opt/local/include/speex/speex_preprocess.h) {
|
||||||
|
CONFIG += speexdsp
|
||||||
|
}
|
||||||
|
- exists(/opt/local/include/hamlib/rig.h) {
|
||||||
|
- CONFIG += hamlib
|
||||||
|
- }
|
||||||
|
contains(QT_VERSION, ^4\\.7.*) {
|
||||||
|
QT += phonon opengl svg
|
||||||
|
DEFINES -= QWT_NO_SVG
|
||||||
|
@@ -138,12 +135,6 @@
|
||||||
|
packagesExist(sndfile) {
|
||||||
|
CONFIG += sndfile
|
||||||
|
}
|
||||||
|
- packagesExist(hamlib) {
|
||||||
|
- CONFIG += hamlib
|
||||||
|
- }
|
||||||
|
- packagesExist(gpsd) {
|
||||||
|
- CONFIG += gps
|
||||||
|
- }
|
||||||
|
packagesExist(pcap) {
|
||||||
|
CONFIG += pcap
|
||||||
|
}
|
||||||
|
@@ -159,14 +150,6 @@
|
||||||
|
exists(/usr/local/include/sndfile.h) {
|
||||||
|
CONFIG += sndfile
|
||||||
|
}
|
||||||
|
- exists(/usr/include/hamlib/rig.h) | \
|
||||||
|
- exists(/usr/local/include/hamlib/rig.h) {
|
||||||
|
- CONFIG += hamlib
|
||||||
|
- }
|
||||||
|
- exists(/usr/include/gps.h) | \
|
||||||
|
- exists(/usr/local/include/gps.h) {
|
||||||
|
- CONFIG += gps
|
||||||
|
- }
|
||||||
|
exists(/usr/include/pcap.h) | \
|
||||||
|
exists(/usr/local/include/pcap.h) {
|
||||||
|
CONFIG += pcap
|
||||||
|
@@ -194,9 +177,6 @@
|
||||||
|
exists($$OUT_PWD/include/speex/speex_preprocess.h) {
|
||||||
|
CONFIG += speexdsp
|
||||||
|
}
|
||||||
|
- exists($$OUT_PWD/include/hamlib/rig.h) {
|
||||||
|
- CONFIG += hamlib
|
||||||
|
- }
|
||||||
|
exists($$OUT_PWD/include/pcap.h) {
|
||||||
|
CONFIG += pcap
|
||||||
|
}
|
||||||
|
@@ -225,7 +205,7 @@
|
||||||
|
LIBS += -lz
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-exists($$OUT_PWD/include/neaacdec.h) {
|
||||||
|
+exists(/usr/include/neaacdec.h) {
|
||||||
|
DEFINES += HAVE_LIBFAAD \
|
||||||
|
USE_FAAD2_LIBRARY
|
||||||
|
LIBS += -lfaad_drm
|
||||||
|
@@ -257,11 +237,6 @@
|
||||||
|
win32:LIBS += libspeexdsp.lib
|
||||||
|
message("with libspeexdsp")
|
||||||
|
}
|
||||||
|
-gps {
|
||||||
|
- DEFINES += HAVE_LIBGPS
|
||||||
|
- unix:LIBS += -lgps
|
||||||
|
- message("with gps")
|
||||||
|
-}
|
||||||
|
pcap {
|
||||||
|
DEFINES += HAVE_LIBPCAP
|
||||||
|
unix:LIBS += -lpcap
|
||||||
|
@@ -269,24 +244,6 @@
|
||||||
|
win32-g++:LIBS += -lwpcap -lpacket
|
||||||
|
message("with pcap")
|
||||||
|
}
|
||||||
|
-hamlib {
|
||||||
|
- DEFINES += HAVE_LIBHAMLIB
|
||||||
|
- macx:LIBS += -framework IOKit
|
||||||
|
- unix:LIBS += -lhamlib
|
||||||
|
- win32:LIBS += libhamlib-2.lib
|
||||||
|
- HEADERS += src/util/Hamlib.h
|
||||||
|
- SOURCES += src/util/Hamlib.cpp
|
||||||
|
- qt {
|
||||||
|
- HEADERS += src/util-QT/Rig.h
|
||||||
|
- SOURCES += src/util-QT/Rig.cpp
|
||||||
|
- }
|
||||||
|
- gui {
|
||||||
|
- HEADERS += src/GUI-QT/RigDlg.h
|
||||||
|
- SOURCES += src/GUI-QT/RigDlg.cpp
|
||||||
|
- FORMS += RigDlg.ui
|
||||||
|
- }
|
||||||
|
- message("with hamlib")
|
||||||
|
-}
|
||||||
|
qwt {
|
||||||
|
DEFINES += QWT_NO_SVG
|
||||||
|
macx {
|
151
openwebrx/docker/files/js8call/js8call-hamlib.patch
Normal file
|
@ -0,0 +1,151 @@
|
||||||
|
diff -ur js8call-orig/CMake/Modules/Findhamlib.cmake js8call/CMake/Modules/Findhamlib.cmake
|
||||||
|
--- js8call-orig/CMake/Modules/Findhamlib.cmake 2020-07-22 18:14:18.014499840 +0200
|
||||||
|
+++ js8call/CMake/Modules/Findhamlib.cmake 2020-07-22 18:16:07.200375473 +0200
|
||||||
|
@@ -78,4 +78,4 @@
|
||||||
|
# Handle the QUIETLY and REQUIRED arguments and set HAMLIB_FOUND to
|
||||||
|
# TRUE if all listed variables are TRUE
|
||||||
|
include (FindPackageHandleStandardArgs)
|
||||||
|
-find_package_handle_standard_args (hamlib DEFAULT_MSG hamlib_INCLUDE_DIRS hamlib_LIBRARIES hamlib_LIBRARY_DIRS)
|
||||||
|
+find_package_handle_standard_args (hamlib DEFAULT_MSG hamlib_INCLUDE_DIRS hamlib_LIBRARIES)
|
||||||
|
diff -ur js8call-orig/CMakeLists.txt js8call/CMakeLists.txt
|
||||||
|
--- js8call-orig/CMakeLists.txt 2020-07-22 18:14:18.014499840 +0200
|
||||||
|
+++ js8call/CMakeLists.txt 2020-07-22 18:17:55.629633825 +0200
|
||||||
|
@@ -558,7 +558,7 @@
|
||||||
|
#
|
||||||
|
# libhamlib setup
|
||||||
|
#
|
||||||
|
-set (hamlib_STATIC 1)
|
||||||
|
+set (hamlib_STATIC 0)
|
||||||
|
find_package (hamlib 3 REQUIRED)
|
||||||
|
find_program (RIGCTL_EXE rigctl)
|
||||||
|
find_program (RIGCTLD_EXE rigctld)
|
||||||
|
@@ -911,56 +911,6 @@
|
||||||
|
target_link_libraries (js8 wsjt_fort wsjt_cxx Qt5::Core)
|
||||||
|
endif (${OPENMP_FOUND} OR APPLE)
|
||||||
|
|
||||||
|
-# build the main application
|
||||||
|
-add_executable (js8call MACOSX_BUNDLE
|
||||||
|
- ${sqlite3_CSRCS}
|
||||||
|
- ${wsjtx_CXXSRCS}
|
||||||
|
- ${wsjtx_GENUISRCS}
|
||||||
|
- wsjtx.rc
|
||||||
|
- ${WSJTX_ICON_FILE}
|
||||||
|
- ${wsjtx_RESOURCES_RCC}
|
||||||
|
- images.qrc
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-if (WSJT_CREATE_WINMAIN)
|
||||||
|
- set_target_properties (js8call PROPERTIES WIN32_EXECUTABLE ON)
|
||||||
|
-endif (WSJT_CREATE_WINMAIN)
|
||||||
|
-
|
||||||
|
-set_target_properties (js8call PROPERTIES
|
||||||
|
- MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Darwin/Info.plist.in"
|
||||||
|
- MACOSX_BUNDLE_INFO_STRING "${WSJTX_DESCRIPTION_SUMMARY}"
|
||||||
|
- MACOSX_BUNDLE_ICON_FILE "${WSJTX_ICON_FILE}"
|
||||||
|
- MACOSX_BUNDLE_BUNDLE_VERSION ${wsjtx_VERSION}
|
||||||
|
- MACOSX_BUNDLE_SHORT_VERSION_STRING "v${wsjtx_VERSION}"
|
||||||
|
- MACOSX_BUNDLE_LONG_VERSION_STRING "Version ${wsjtx_VERSION}"
|
||||||
|
- MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME}"
|
||||||
|
- MACOSX_BUNDLE_BUNDLE_EXECUTABLE_NAME "${PROJECT_NAME}"
|
||||||
|
- MACOSX_BUNDLE_COPYRIGHT "${PROJECT_COPYRIGHT}"
|
||||||
|
- MACOSX_BUNDLE_GUI_IDENTIFIER "org.kn4crd.js8call"
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-target_include_directories (js8call PRIVATE ${FFTW3_INCLUDE_DIRS})
|
||||||
|
-if (APPLE)
|
||||||
|
- target_link_libraries (js8call wsjt_fort wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES})
|
||||||
|
-else ()
|
||||||
|
- target_link_libraries (js8call wsjt_fort_omp wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES})
|
||||||
|
- if (OpenMP_C_FLAGS)
|
||||||
|
- set_target_properties (js8call PROPERTIES
|
||||||
|
- COMPILE_FLAGS "${OpenMP_C_FLAGS}"
|
||||||
|
- LINK_FLAGS "${OpenMP_C_FLAGS}"
|
||||||
|
- )
|
||||||
|
- endif ()
|
||||||
|
- set_target_properties (js8call PROPERTIES
|
||||||
|
- Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp
|
||||||
|
- )
|
||||||
|
- if (WIN32)
|
||||||
|
- set_target_properties (js8call PROPERTIES
|
||||||
|
- LINK_FLAGS -Wl,--stack,16777216
|
||||||
|
- )
|
||||||
|
- endif ()
|
||||||
|
-endif ()
|
||||||
|
-qt5_use_modules (js8call SerialPort) # not sure why the interface link library syntax above doesn't work
|
||||||
|
-
|
||||||
|
# if (UNIX)
|
||||||
|
# if (NOT WSJT_SKIP_MANPAGES)
|
||||||
|
# add_subdirectory (manpages)
|
||||||
|
@@ -976,38 +926,10 @@
|
||||||
|
#
|
||||||
|
# installation
|
||||||
|
#
|
||||||
|
-install (TARGETS js8call
|
||||||
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
- BUNDLE DESTINATION . COMPONENT runtime
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
install (TARGETS js8 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
)
|
||||||
|
|
||||||
|
-install (PROGRAMS
|
||||||
|
- ${RIGCTL_EXE}
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- RENAME rigctl-local${CMAKE_EXECUTABLE_SUFFIX}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-install (PROGRAMS
|
||||||
|
- ${RIGCTLD_EXE}
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- RENAME rigctld-local${CMAKE_EXECUTABLE_SUFFIX}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-install (FILES
|
||||||
|
- README
|
||||||
|
- COPYING
|
||||||
|
- INSTALL
|
||||||
|
- INSTALL-WSJTX
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
install (FILES
|
||||||
|
contrib/Ephemeris/JPLEPH
|
||||||
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}
|
||||||
|
@@ -1061,32 +983,6 @@
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/wsjtx_config.h"
|
||||||
|
)
|
||||||
|
|
||||||
|
-
|
||||||
|
-if (NOT WIN32 AND NOT APPLE)
|
||||||
|
- # install a desktop file so js8call appears in the application start
|
||||||
|
- # menu with an icon
|
||||||
|
- install (
|
||||||
|
- FILES js8call.desktop
|
||||||
|
- DESTINATION /usr/share/applications
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
- install (
|
||||||
|
- FILES icons/Unix/js8call_icon.png
|
||||||
|
- DESTINATION /usr/share/pixmaps
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
- IF("${CMAKE_INSTALL_PREFIX}" STREQUAL "/opt/js8call")
|
||||||
|
- execute_process(COMMAND ln -s /opt/js8call/bin/js8call ljs8call)
|
||||||
|
-
|
||||||
|
- install(FILES
|
||||||
|
- ${CMAKE_BINARY_DIR}/ljs8call DESTINATION /usr/bin/ RENAME js8call
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
- endif()
|
||||||
|
-endif (NOT WIN32 AND NOT APPLE)
|
||||||
|
-
|
||||||
|
-
|
||||||
|
#
|
||||||
|
# bundle fixup only done in Release or MinSizeRel configurations
|
||||||
|
#
|
||||||
|
Only in js8call/: .idea
|
23
openwebrx/docker/files/sdrplay/install-lib.aarch64.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
diff -ur sdrplay-orig/install_lib.sh sdrplay/install_lib.sh
|
||||||
|
--- sdrplay-orig/install_lib.sh 2020-05-24 14:30:06.022483867 +0000
|
||||||
|
+++ sdrplay/install_lib.sh 2020-05-24 14:30:49.093435726 +0000
|
||||||
|
@@ -4,19 +4,6 @@
|
||||||
|
export MAJVERS="3"
|
||||||
|
|
||||||
|
echo "Installing SDRplay RSP API library ${VERS}..."
|
||||||
|
-read -p "Press RETURN to view the license agreement" ret
|
||||||
|
-
|
||||||
|
-more sdrplay_license.txt
|
||||||
|
-
|
||||||
|
-while true; do
|
||||||
|
- echo "Press y and RETURN to accept the license agreement and continue with"
|
||||||
|
- read -p "the installation, or press n and RETURN to exit the installer [y/n] " yn
|
||||||
|
- case $yn in
|
||||||
|
- [Yy]* ) break;;
|
||||||
|
- [Nn]* ) exit;;
|
||||||
|
- * ) echo "Please answer y or n";;
|
||||||
|
- esac
|
||||||
|
-done
|
||||||
|
|
||||||
|
export ARCH=`uname -m`
|
||||||
|
|
40
openwebrx/docker/files/sdrplay/install-lib.armv7l.patch
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
diff -ur sdrplay-orig/install_lib.sh sdrplay/install_lib.sh
|
||||||
|
--- sdrplay-orig/install_lib.sh 2020-05-24 14:13:04.561271707 +0000
|
||||||
|
+++ sdrplay/install_lib.sh 2020-05-24 14:16:20.068329040 +0000
|
||||||
|
@@ -4,19 +4,6 @@
|
||||||
|
MAJVERS="3"
|
||||||
|
|
||||||
|
echo "Installing SDRplay RSP API library ${VERS}..."
|
||||||
|
-read -p "Press RETURN to view the license agreement" ret
|
||||||
|
-
|
||||||
|
-more sdrplay_license.txt
|
||||||
|
-
|
||||||
|
-while true; do
|
||||||
|
- echo "Press y and RETURN to accept the license agreement and continue with"
|
||||||
|
- read -p "the installation, or press n and RETURN to exit the installer [y/n] " yn
|
||||||
|
- case $yn in
|
||||||
|
- [Yy]* ) break;;
|
||||||
|
- [Nn]* ) exit;;
|
||||||
|
- * ) echo "Please answer y or n";;
|
||||||
|
- esac
|
||||||
|
-done
|
||||||
|
|
||||||
|
ARCH=`uname -m`
|
||||||
|
|
||||||
|
@@ -141,16 +128,6 @@
|
||||||
|
echo "SDRplay API ${VERS} Installation Finished"
|
||||||
|
echo " "
|
||||||
|
|
||||||
|
-while true; do
|
||||||
|
- echo "Would you like to add SDRplay USB IDs to the local database for easier
|
||||||
|
-"
|
||||||
|
- read -p "identification in applications such as lsusb? [y/n] " yn
|
||||||
|
- case $yn in
|
||||||
|
- [Yy]* ) break;;
|
||||||
|
- [Nn]* ) exit;;
|
||||||
|
- * ) echo "Please answer y or n";;
|
||||||
|
- esac
|
||||||
|
-done
|
||||||
|
sudo cp scripts/sdrplay_usbids.sh ${INSTALLBINDIR}/.
|
||||||
|
sudo chmod 755 ${INSTALLBINDIR}/sdrplay_usbids.sh
|
||||||
|
sudo cp scripts/sdrplay_ids.txt ${INSTALLBINDIR}/.
|
39
openwebrx/docker/files/sdrplay/install-lib.x86_64.patch
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
diff -ur sdrplay-orig/install_lib.sh sdrplay/install_lib.sh
|
||||||
|
--- sdrplay-orig/install_lib.sh 2020-05-24 13:56:56.622000041 +0000
|
||||||
|
+++ sdrplay/install_lib.sh 2020-05-24 13:58:51.837801559 +0000
|
||||||
|
@@ -4,19 +4,6 @@
|
||||||
|
MAJVERS="3"
|
||||||
|
|
||||||
|
echo "Installing SDRplay RSP API library ${VERS}..."
|
||||||
|
-read -p "Press RETURN to view the license agreement" ret
|
||||||
|
-
|
||||||
|
-more sdrplay_license.txt
|
||||||
|
-
|
||||||
|
-while true; do
|
||||||
|
- echo "Press y and RETURN to accept the license agreement and continue with"
|
||||||
|
- read -p "the installation, or press n and RETURN to exit the installer [y/n] " yn
|
||||||
|
- case $yn in
|
||||||
|
- [Yy]* ) break;;
|
||||||
|
- [Nn]* ) exit;;
|
||||||
|
- * ) echo "Please answer y or n";;
|
||||||
|
- esac
|
||||||
|
-done
|
||||||
|
|
||||||
|
ARCH=`uname -m`
|
||||||
|
OSDIST="Unknown"
|
||||||
|
@@ -157,15 +144,6 @@
|
||||||
|
echo " "
|
||||||
|
echo "SDRplay API ${VERS} Installation Finished"
|
||||||
|
echo " "
|
||||||
|
-while true; do
|
||||||
|
- echo "Would you like to add SDRplay USB IDs to the local database for easier"
|
||||||
|
- read -p "identification in applications such as lsusb? [y/n] " yn
|
||||||
|
- case $yn in
|
||||||
|
- [Yy]* ) break;;
|
||||||
|
- [Nn]* ) exit;;
|
||||||
|
- * ) echo "Please answer y or n";;
|
||||||
|
- esac
|
||||||
|
-done
|
||||||
|
sudo cp scripts/sdrplay_usbids.sh ${INSTALLBINDIR}/.
|
||||||
|
sudo chmod 755 ${INSTALLBINDIR}/sdrplay_usbids.sh
|
||||||
|
sudo cp scripts/sdrplay_ids.txt ${INSTALLBINDIR}/.
|
2
openwebrx/docker/files/services/codecserver/run
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/execlineb -P
|
||||||
|
/usr/local/bin/codecserver
|
2
openwebrx/docker/files/services/sdrplay/run
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/execlineb -P
|
||||||
|
/usr/local/bin/sdrplay_apiService
|
50
openwebrx/docker/files/wsjtx/wsjtx-hamlib.patch
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
--- CMakeLists.txt.orig 2021-03-30 15:28:36.956587995 +0200
|
||||||
|
+++ CMakeLists.txt 2021-03-30 15:29:45.719326832 +0200
|
||||||
|
@@ -106,24 +106,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
-# build and install hamlib locally so it can be referenced by the
|
||||||
|
-# WSJT-X build
|
||||||
|
-#
|
||||||
|
-ExternalProject_Add (hamlib
|
||||||
|
- GIT_REPOSITORY ${hamlib_repo}
|
||||||
|
- GIT_TAG ${hamlib_TAG}
|
||||||
|
- GIT_SHALLOW False
|
||||||
|
- URL ${CMAKE_CURRENT_SOURCE_DIR}/src/${__hamlib_upstream}.tar.gz
|
||||||
|
- URL_HASH MD5=${hamlib_md5sum}
|
||||||
|
- #UPDATE_COMMAND ${CMAKE_COMMAND} -E env "[ -f ./bootstrap ] && ./bootstrap"
|
||||||
|
- PATCH_COMMAND ${PATCH_EXECUTABLE} -p1 -N < ${CMAKE_CURRENT_SOURCE_DIR}/hamlib.patch
|
||||||
|
- CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --disable-shared --enable-static --without-cxx-binding ${EXTRA_FLAGS} # LIBUSB_LIBS=${USB_LIBRARY}
|
||||||
|
- BUILD_COMMAND $(MAKE) all V=1 # $(MAKE) is ExternalProject_Add() magic to do recursive make
|
||||||
|
- INSTALL_COMMAND $(MAKE) install-strip V=1 DESTDIR=""
|
||||||
|
- STEP_TARGETS update install
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-#
|
||||||
|
# custom target to make a hamlib source tarball
|
||||||
|
#
|
||||||
|
add_custom_target (hamlib_sources
|
||||||
|
@@ -161,7 +143,6 @@
|
||||||
|
# build and optionally install WSJT-X using the hamlib package built
|
||||||
|
# above
|
||||||
|
#
|
||||||
|
-ExternalProject_Get_Property (hamlib INSTALL_DIR)
|
||||||
|
ExternalProject_Add (wsjtx
|
||||||
|
GIT_REPOSITORY ${wsjtx_repo}
|
||||||
|
GIT_TAG ${WSJTX_TAG}
|
||||||
|
@@ -186,14 +167,8 @@
|
||||||
|
DEPENDEES build
|
||||||
|
)
|
||||||
|
|
||||||
|
-set_target_properties (hamlib PROPERTIES EXCLUDE_FROM_ALL 1)
|
||||||
|
set_target_properties (wsjtx PROPERTIES EXCLUDE_FROM_ALL 1)
|
||||||
|
|
||||||
|
-add_dependencies (wsjtx-configure hamlib-install)
|
||||||
|
-add_dependencies (wsjtx-build hamlib-install)
|
||||||
|
-add_dependencies (wsjtx-install hamlib-install)
|
||||||
|
-add_dependencies (wsjtx-package hamlib-install)
|
||||||
|
-
|
||||||
|
# export traditional targets
|
||||||
|
add_custom_target (build ALL DEPENDS wsjtx-build)
|
||||||
|
add_custom_target (install DEPENDS wsjtx-install)
|
316
openwebrx/docker/files/wsjtx/wsjtx.patch
Normal file
|
@ -0,0 +1,316 @@
|
||||||
|
diff -ur wsjtx-orig/CMake/Modules/Findhamlib.cmake wsjtx/CMake/Modules/Findhamlib.cmake
|
||||||
|
--- wsjtx-orig/CMake/Modules/Findhamlib.cmake 2021-05-31 18:56:20.657682124 +0200
|
||||||
|
+++ wsjtx/CMake/Modules/Findhamlib.cmake 2021-05-31 18:57:03.963994898 +0200
|
||||||
|
@@ -85,4 +85,4 @@
|
||||||
|
# Handle the QUIETLY and REQUIRED arguments and set HAMLIB_FOUND to
|
||||||
|
# TRUE if all listed variables are TRUE
|
||||||
|
include (FindPackageHandleStandardArgs)
|
||||||
|
-find_package_handle_standard_args (hamlib DEFAULT_MSG hamlib_INCLUDE_DIRS hamlib_LIBRARIES hamlib_LIBRARY_DIRS)
|
||||||
|
+find_package_handle_standard_args (hamlib DEFAULT_MSG hamlib_INCLUDE_DIRS hamlib_LIBRARIES)
|
||||||
|
diff -ur wsjtx-orig/CMakeLists.txt wsjtx/CMakeLists.txt
|
||||||
|
--- wsjtx-orig/CMakeLists.txt 2021-05-31 18:56:20.657682124 +0200
|
||||||
|
+++ wsjtx/CMakeLists.txt 2021-05-31 19:08:02.768474060 +0200
|
||||||
|
@@ -122,7 +122,7 @@
|
||||||
|
option (WSJT_QDEBUG_TO_FILE "Redirect Qt debuging messages to a trace file.")
|
||||||
|
option (WSJT_SOFT_KEYING "Apply a ramp to CW keying envelope to reduce transients." ON)
|
||||||
|
option (WSJT_SKIP_MANPAGES "Skip *nix manpage generation.")
|
||||||
|
-option (WSJT_GENERATE_DOCS "Generate documentation files." ON)
|
||||||
|
+option (WSJT_GENERATE_DOCS "Generate documentation files.")
|
||||||
|
option (WSJT_RIG_NONE_CAN_SPLIT "Allow split operation with \"None\" as rig.")
|
||||||
|
option (WSJT_TRACE_UDP "Debugging option that turns on UDP message protocol diagnostics.")
|
||||||
|
option (WSJT_BUILD_UTILS "Build simulators and code demonstrators." ON)
|
||||||
|
@@ -169,74 +169,7 @@
|
||||||
|
)
|
||||||
|
|
||||||
|
set (wsjt_qt_CXXSRCS
|
||||||
|
- qt_helpers.cpp
|
||||||
|
- widgets/MessageBox.cpp
|
||||||
|
- MetaDataRegistry.cpp
|
||||||
|
- Network/NetworkServerLookup.cpp
|
||||||
|
revision_utils.cpp
|
||||||
|
- L10nLoader.cpp
|
||||||
|
- WFPalette.cpp
|
||||||
|
- Radio.cpp
|
||||||
|
- RadioMetaType.cpp
|
||||||
|
- NonInheritingProcess.cpp
|
||||||
|
- models/IARURegions.cpp
|
||||||
|
- models/Bands.cpp
|
||||||
|
- models/Modes.cpp
|
||||||
|
- models/FrequencyList.cpp
|
||||||
|
- models/StationList.cpp
|
||||||
|
- widgets/FrequencyLineEdit.cpp
|
||||||
|
- widgets/FrequencyDeltaLineEdit.cpp
|
||||||
|
- item_delegates/CandidateKeyFilter.cpp
|
||||||
|
- item_delegates/ForeignKeyDelegate.cpp
|
||||||
|
- validators/LiveFrequencyValidator.cpp
|
||||||
|
- GetUserId.cpp
|
||||||
|
- Audio/AudioDevice.cpp
|
||||||
|
- Transceiver/Transceiver.cpp
|
||||||
|
- Transceiver/TransceiverBase.cpp
|
||||||
|
- Transceiver/EmulateSplitTransceiver.cpp
|
||||||
|
- Transceiver/TransceiverFactory.cpp
|
||||||
|
- Transceiver/PollingTransceiver.cpp
|
||||||
|
- Transceiver/HamlibTransceiver.cpp
|
||||||
|
- Transceiver/HRDTransceiver.cpp
|
||||||
|
- Transceiver/DXLabSuiteCommanderTransceiver.cpp
|
||||||
|
- Network/NetworkMessage.cpp
|
||||||
|
- Network/MessageClient.cpp
|
||||||
|
- widgets/LettersSpinBox.cpp
|
||||||
|
- widgets/HintedSpinBox.cpp
|
||||||
|
- widgets/RestrictedSpinBox.cpp
|
||||||
|
- widgets/HelpTextWindow.cpp
|
||||||
|
- SampleDownloader.cpp
|
||||||
|
- SampleDownloader/DirectoryDelegate.cpp
|
||||||
|
- SampleDownloader/Directory.cpp
|
||||||
|
- SampleDownloader/FileNode.cpp
|
||||||
|
- SampleDownloader/RemoteFile.cpp
|
||||||
|
- DisplayManual.cpp
|
||||||
|
- MultiSettings.cpp
|
||||||
|
- validators/MaidenheadLocatorValidator.cpp
|
||||||
|
- validators/CallsignValidator.cpp
|
||||||
|
- widgets/SplashScreen.cpp
|
||||||
|
- EqualizationToolsDialog.cpp
|
||||||
|
- widgets/DoubleClickablePushButton.cpp
|
||||||
|
- widgets/DoubleClickableRadioButton.cpp
|
||||||
|
- Network/LotWUsers.cpp
|
||||||
|
- models/DecodeHighlightingModel.cpp
|
||||||
|
- widgets/DecodeHighlightingListView.cpp
|
||||||
|
- models/FoxLog.cpp
|
||||||
|
- widgets/AbstractLogWindow.cpp
|
||||||
|
- widgets/FoxLogWindow.cpp
|
||||||
|
- widgets/CabrilloLogWindow.cpp
|
||||||
|
- item_delegates/CallsignDelegate.cpp
|
||||||
|
- item_delegates/MaidenheadLocatorDelegate.cpp
|
||||||
|
- item_delegates/FrequencyDelegate.cpp
|
||||||
|
- item_delegates/FrequencyDeltaDelegate.cpp
|
||||||
|
- item_delegates/SQLiteDateTimeDelegate.cpp
|
||||||
|
- models/CabrilloLog.cpp
|
||||||
|
- logbook/AD1CCty.cpp
|
||||||
|
- logbook/WorkedBefore.cpp
|
||||||
|
- logbook/Multiplier.cpp
|
||||||
|
- Network/NetworkAccessManager.cpp
|
||||||
|
- widgets/LazyFillComboBox.cpp
|
||||||
|
- widgets/CheckableItemComboBox.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set (wsjt_qtmm_CXXSRCS
|
||||||
|
@@ -857,7 +790,7 @@
|
||||||
|
#
|
||||||
|
# libhamlib setup
|
||||||
|
#
|
||||||
|
-set (hamlib_STATIC 1)
|
||||||
|
+set (hamlib_STATIC 0)
|
||||||
|
find_package (hamlib 3 REQUIRED)
|
||||||
|
find_program (RIGCTL_EXE rigctl)
|
||||||
|
find_program (RIGCTLD_EXE rigctld)
|
||||||
|
@@ -895,9 +828,6 @@
|
||||||
|
if (WSJT_GENERATE_DOCS)
|
||||||
|
add_subdirectory (doc)
|
||||||
|
endif (WSJT_GENERATE_DOCS)
|
||||||
|
-if (EXISTS ${CMAKE_SOURCE_DIR}/tests AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
|
||||||
|
- add_subdirectory (tests)
|
||||||
|
-endif ()
|
||||||
|
|
||||||
|
#
|
||||||
|
# Library building setup
|
||||||
|
@@ -1380,60 +1310,6 @@
|
||||||
|
target_link_libraries (jt9 wsjt_fort wsjt_cxx fort_qt)
|
||||||
|
endif (${OPENMP_FOUND} OR APPLE)
|
||||||
|
|
||||||
|
-# build the main application
|
||||||
|
-generate_version_info (wsjtx_VERSION_RESOURCES
|
||||||
|
- NAME wsjtx
|
||||||
|
- BUNDLE ${PROJECT_BUNDLE_NAME}
|
||||||
|
- ICON ${WSJTX_ICON_FILE}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-add_executable (wsjtx MACOSX_BUNDLE
|
||||||
|
- ${wsjtx_CXXSRCS}
|
||||||
|
- ${wsjtx_GENUISRCS}
|
||||||
|
- ${WSJTX_ICON_FILE}
|
||||||
|
- ${wsjtx_RESOURCES_RCC}
|
||||||
|
- ${wsjtx_VERSION_RESOURCES}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-if (WSJT_CREATE_WINMAIN)
|
||||||
|
- set_target_properties (wsjtx PROPERTIES WIN32_EXECUTABLE ON)
|
||||||
|
-endif (WSJT_CREATE_WINMAIN)
|
||||||
|
-
|
||||||
|
-set_target_properties (wsjtx PROPERTIES
|
||||||
|
- MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Darwin/Info.plist.in"
|
||||||
|
- MACOSX_BUNDLE_INFO_STRING "${PROJECT_DESCRIPTION}"
|
||||||
|
- MACOSX_BUNDLE_ICON_FILE "${WSJTX_ICON_FILE}"
|
||||||
|
- MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
|
||||||
|
- MACOSX_BUNDLE_SHORT_VERSION_STRING "v${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}"
|
||||||
|
- MACOSX_BUNDLE_LONG_VERSION_STRING "Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}${SCS_VERSION_STR}"
|
||||||
|
- MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_BUNDLE_NAME}"
|
||||||
|
- MACOSX_BUNDLE_BUNDLE_EXECUTABLE_NAME "${PROJECT_NAME}"
|
||||||
|
- MACOSX_BUNDLE_COPYRIGHT "${PROJECT_COPYRIGHT}"
|
||||||
|
- MACOSX_BUNDLE_GUI_IDENTIFIER "org.k1jt.wsjtx"
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-target_include_directories (wsjtx PRIVATE ${FFTW3_INCLUDE_DIRS})
|
||||||
|
-if (APPLE)
|
||||||
|
- target_link_libraries (wsjtx wsjt_fort)
|
||||||
|
-else ()
|
||||||
|
- target_link_libraries (wsjtx wsjt_fort_omp)
|
||||||
|
- if (OpenMP_C_FLAGS)
|
||||||
|
- set_target_properties (wsjtx PROPERTIES
|
||||||
|
- COMPILE_FLAGS "${OpenMP_C_FLAGS}"
|
||||||
|
- LINK_FLAGS "${OpenMP_C_FLAGS}"
|
||||||
|
- )
|
||||||
|
- endif ()
|
||||||
|
- set_target_properties (wsjtx PROPERTIES
|
||||||
|
- Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran_modules_omp
|
||||||
|
- )
|
||||||
|
- if (WIN32)
|
||||||
|
- set_target_properties (wsjtx PROPERTIES
|
||||||
|
- LINK_FLAGS -Wl,--stack,0x1000000,--heap,0x20000000
|
||||||
|
- )
|
||||||
|
- endif ()
|
||||||
|
-endif ()
|
||||||
|
-target_link_libraries (wsjtx Qt5::SerialPort wsjt_cxx wsjt_qt wsjt_qtmm ${hamlib_LIBRARIES} ${FFTW3_LIBRARIES} ${LIBM_LIBRARIES})
|
||||||
|
-
|
||||||
|
# make a library for WSJT-X UDP servers
|
||||||
|
# add_library (wsjtx_udp SHARED ${UDP_library_CXXSRCS})
|
||||||
|
add_library (wsjtx_udp-static STATIC ${UDP_library_CXXSRCS})
|
||||||
|
@@ -1473,47 +1349,9 @@
|
||||||
|
add_executable (wsjtx_app_version AppVersion/AppVersion.cpp ${wsjtx_app_version_VERSION_RESOURCES})
|
||||||
|
target_link_libraries (wsjtx_app_version wsjt_qt)
|
||||||
|
|
||||||
|
-generate_version_info (message_aggregator_VERSION_RESOURCES
|
||||||
|
- NAME message_aggregator
|
||||||
|
- BUNDLE ${PROJECT_BUNDLE_NAME}
|
||||||
|
- ICON ${WSJTX_ICON_FILE}
|
||||||
|
- FILE_DESCRIPTION "Example WSJT-X UDP Message Protocol application"
|
||||||
|
- )
|
||||||
|
-add_resources (message_aggregator_RESOURCES /qss ${message_aggregator_STYLESHEETS})
|
||||||
|
-configure_file (UDPExamples/message_aggregator.qrc.in message_aggregator.qrc @ONLY)
|
||||||
|
-qt5_add_resources (message_aggregator_RESOURCES_RCC
|
||||||
|
- ${CMAKE_CURRENT_BINARY_DIR}/message_aggregator.qrc
|
||||||
|
- contrib/QDarkStyleSheet/qdarkstyle/style.qrc
|
||||||
|
- )
|
||||||
|
-add_executable (message_aggregator
|
||||||
|
- ${message_aggregator_CXXSRCS}
|
||||||
|
- ${message_aggregator_RESOURCES_RCC}
|
||||||
|
- ${message_aggregator_VERSION_RESOURCES}
|
||||||
|
- )
|
||||||
|
-target_link_libraries (message_aggregator wsjt_qt Qt5::Widgets wsjtx_udp-static)
|
||||||
|
-
|
||||||
|
-if (WSJT_CREATE_WINMAIN)
|
||||||
|
- set_target_properties (message_aggregator PROPERTIES WIN32_EXECUTABLE ON)
|
||||||
|
-endif (WSJT_CREATE_WINMAIN)
|
||||||
|
-
|
||||||
|
-if (UNIX)
|
||||||
|
- if (NOT WSJT_SKIP_MANPAGES)
|
||||||
|
- add_subdirectory (manpages)
|
||||||
|
- add_dependencies (wsjtx manpages)
|
||||||
|
- endif (NOT WSJT_SKIP_MANPAGES)
|
||||||
|
- if (NOT APPLE)
|
||||||
|
- add_subdirectory (debian)
|
||||||
|
- add_dependencies (wsjtx debian)
|
||||||
|
- endif (NOT APPLE)
|
||||||
|
-endif (UNIX)
|
||||||
|
-
|
||||||
|
#
|
||||||
|
# installation
|
||||||
|
#
|
||||||
|
-install (TARGETS wsjtx
|
||||||
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
- BUNDLE DESTINATION . COMPONENT runtime
|
||||||
|
- )
|
||||||
|
|
||||||
|
# install (TARGETS wsjtx_udp EXPORT udp
|
||||||
|
# RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
@@ -1532,12 +1370,7 @@
|
||||||
|
# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/wsjtx
|
||||||
|
# )
|
||||||
|
|
||||||
|
-install (TARGETS udp_daemon message_aggregator wsjtx_app_version
|
||||||
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
- BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-install (TARGETS jt9 wsprd fmtave fcal fmeasure
|
||||||
|
+install (TARGETS wsjtx_app_version jt9 wsprd
|
||||||
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT runtime
|
||||||
|
)
|
||||||
|
@@ -1549,38 +1382,6 @@
|
||||||
|
)
|
||||||
|
endif(WSJT_BUILD_UTILS)
|
||||||
|
|
||||||
|
-install (PROGRAMS
|
||||||
|
- ${RIGCTL_EXE}
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- RENAME rigctl-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-install (PROGRAMS
|
||||||
|
- ${RIGCTLD_EXE}
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- RENAME rigctld-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-install (PROGRAMS
|
||||||
|
- ${RIGCTLCOM_EXE}
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- RENAME rigctlcom-wsjtx${CMAKE_EXECUTABLE_SUFFIX}
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
-install (FILES
|
||||||
|
- README
|
||||||
|
- COPYING
|
||||||
|
- AUTHORS
|
||||||
|
- THANKS
|
||||||
|
- NEWS
|
||||||
|
- BUGS
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
install (FILES
|
||||||
|
cty.dat
|
||||||
|
cty.dat_copyright.txt
|
||||||
|
@@ -1589,13 +1390,6 @@
|
||||||
|
#COMPONENT runtime
|
||||||
|
)
|
||||||
|
|
||||||
|
-install (DIRECTORY
|
||||||
|
- example_log_configurations
|
||||||
|
- DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||||||
|
- FILES_MATCHING REGEX "^.*[^~]$"
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
-
|
||||||
|
#
|
||||||
|
# Mac installer files
|
||||||
|
#
|
||||||
|
@@ -1648,22 +1442,6 @@
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
-if (NOT WIN32 AND NOT APPLE)
|
||||||
|
- # install a desktop file so wsjtx appears in the application start
|
||||||
|
- # menu with an icon
|
||||||
|
- install (
|
||||||
|
- FILES wsjtx.desktop message_aggregator.desktop
|
||||||
|
- DESTINATION share/applications
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
- install (
|
||||||
|
- FILES icons/Unix/wsjtx_icon.png
|
||||||
|
- DESTINATION share/pixmaps
|
||||||
|
- #COMPONENT runtime
|
||||||
|
- )
|
||||||
|
-endif (NOT WIN32 AND NOT APPLE)
|
||||||
|
-
|
||||||
|
-
|
||||||
|
#
|
||||||
|
# bundle fixup only done in non-Debug configurations
|
||||||
|
#
|
||||||
|
Only in wsjtx/: CMakeLists.txt.orig
|
||||||
|
Only in wsjtx/: .idea
|
31
openwebrx/docker/scripts/install-connectors.sh
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
BUILD_PACKAGES="git cmake make gcc g++"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/jketterl/owrx_connector.git
|
||||||
|
cmakebuild owrx_connector 0.5.0
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
44
openwebrx/docker/scripts/install-dependencies-airspy.sh
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0-0"
|
||||||
|
BUILD_PACKAGES="git libusb-1.0-0-dev cmake make gcc g++ pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/airspy/airspyone_host.git
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild airspyone_host 652fd7f1a8f85687641e0bd91f739694d7258ecc
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyAirspy.git
|
||||||
|
cmakebuild SoapyAirspy 10d697b209e7f1acc8b2c8d24851d46170ef77e3
|
||||||
|
|
||||||
|
git clone https://github.com/airspy/airspyhf.git
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild airspyhf 8891387edddcd185e2949e9814e9ef35f46f0722
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyAirspyHF.git
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild SoapyAirspyHF 5488dac5b44f1432ce67b40b915f7e61d3bd4853
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
32
openwebrx/docker/scripts/install-dependencies-fcdpp.sh
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libhidapi-hidraw0 libhidapi-libusb0 libasound2"
|
||||||
|
BUILD_PACKAGES="git cmake make gcc g++ libhidapi-dev libasound2-dev"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyFCDPP.git
|
||||||
|
cmakebuild SoapyFCDPP soapy-fcdpp-0.1.1
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
41
openwebrx/docker/scripts/install-dependencies-hackrf.sh
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0-0 libfftw3-3 udev"
|
||||||
|
BUILD_PACKAGES="git cmake make patch wget sudo gcc g++ libusb-1.0-0-dev libfftw3-dev pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/mossmann/hackrf.git
|
||||||
|
cd hackrf
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
git checkout 6e5cbda2945c3bab0e6e1510eae418eda60c358e
|
||||||
|
cmakebuild host
|
||||||
|
cd ..
|
||||||
|
rm -rf hackrf
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyHackRF.git
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild SoapyHackRF 7d530872f96c1cbe0ed62617c32c48ce7e103e1d
|
||||||
|
|
||||||
|
SUDO_FORCE_REMOVE=yes apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
46
openwebrx/docker/scripts/install-dependencies-hpsdr.sh
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
BUILD_PACKAGES="git wget gcc libc6-dev"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $BUILD_PACKAGES
|
||||||
|
|
||||||
|
pushd /tmp
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
GOVERSION=1.15.5
|
||||||
|
|
||||||
|
case ${ARCH} in
|
||||||
|
x86_64)
|
||||||
|
PACKAGE=go${GOVERSION}.linux-amd64.tar.gz
|
||||||
|
;;
|
||||||
|
armv*)
|
||||||
|
PACKAGE=go${GOVERSION}.linux-armv6l.tar.gz
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
PACKAGE=go${GOVERSION}.linux-arm64.tar.gz
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
wget https://golang.org/dl/${PACKAGE}
|
||||||
|
tar xfz $PACKAGE
|
||||||
|
|
||||||
|
git clone https://github.com/jancona/hpsdrconnector.git
|
||||||
|
pushd hpsdrconnector
|
||||||
|
git checkout v0.4.2
|
||||||
|
/tmp/go/bin/go build
|
||||||
|
install -m 0755 hpsdrconnector /usr/local/bin
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
rm -rf hpsdrconnector
|
||||||
|
rm -rf go
|
||||||
|
rm $PACKAGE
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
32
openwebrx/docker/scripts/install-dependencies-limesdr.sh
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0-0 libatomic1"
|
||||||
|
BUILD_PACKAGES="git libusb-1.0-0-dev cmake make gcc g++"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
SIMD_FLAGS=""
|
||||||
|
if [[ 'x86_64' == `uname -m` ]] ; then
|
||||||
|
SIMD_FLAGS="-DDEFAULT_SIMD_FLAGS=SSE3"
|
||||||
|
fi
|
||||||
|
|
||||||
|
git clone https://github.com/myriadrf/LimeSuite.git
|
||||||
|
cd LimeSuite
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
git checkout 9526621f8b4c9e2a7f638b5ef50c45560dcad22a
|
||||||
|
mkdir builddir
|
||||||
|
cd builddir
|
||||||
|
cmake .. -DENABLE_EXAMPLES=OFF -DENABLE_DESKTOP=OFF -DENABLE_LIME_UTIL=OFF -DENABLE_QUICKTEST=OFF -DENABLE_OCTAVE=OFF -DENABLE_GUI=OFF -DCMAKE_CXX_STANDARD_LIBRARIES="-latomic" ${SIMD_FLAGS}
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf LimeSuite
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
27
openwebrx/docker/scripts/install-dependencies-perseus.sh
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0-0 libudev1"
|
||||||
|
BUILD_PACKAGES="git make gcc autoconf automake libtool libusb-1.0-0-dev xxd"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/Microtelecom/libperseus-sdr.git
|
||||||
|
cd libperseus-sdr
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
git checkout c2c95daeaa08bf0daed0e8ada970ab17cc264e1b
|
||||||
|
./bootstrap.sh
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
ldconfig /etc/ld.so.conf.d
|
||||||
|
cd ..
|
||||||
|
rm -rf libperseus-sdr
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
39
openwebrx/docker/scripts/install-dependencies-plutosdr.sh
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. ${3:-}
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0-0 libxml2"
|
||||||
|
BUILD_PACKAGES="git libusb-1.0-0-dev cmake make gcc g++ libxml2-dev flex bison pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/analogdevicesinc/libiio.git
|
||||||
|
cmakebuild libiio v0.21 -DCMAKE_INSTALL_PREFIX=/usr/local
|
||||||
|
|
||||||
|
git clone https://github.com/analogdevicesinc/libad9361-iio.git
|
||||||
|
cmakebuild libad9361-iio v0.2
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyPlutoSDR.git
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild SoapyPlutoSDR 93717b32ef052e0dfa717aa2c1a4eb27af16111f
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
37
openwebrx/docker/scripts/install-dependencies-radioberry.sh
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0-0 libfftw3-3 udev"
|
||||||
|
BUILD_PACKAGES="git cmake make patch wget sudo gcc g++ libusb-1.0-0-dev libfftw3-dev pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/pa3gsb/Radioberry-2.x
|
||||||
|
cd Radioberry-2.x/SBC/rpi-4
|
||||||
|
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild SoapyRadioberrySDR 8d17de6b4dc076e628900a82f05c7cf0b16cbe24
|
||||||
|
cd ../../..
|
||||||
|
rm -rf Radioberry-2.x
|
||||||
|
|
||||||
|
SUDO_FORCE_REMOVE=yes apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
|
@ -0,0 +1,36 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0-0"
|
||||||
|
BUILD_PACKAGES="git libusb-1.0-0-dev cmake make gcc g++ pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/osmocom/rtl-sdr.git
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild rtl-sdr ed0317e6a58c098874ac58b769cf2e609c18d9a5
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyRTLSDR.git
|
||||||
|
cmakebuild SoapyRTLSDR soapy-rtl-sdr-0.3.1
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
33
openwebrx/docker/scripts/install-dependencies-rtlsdr.sh
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0.0"
|
||||||
|
BUILD_PACKAGES="git libusb-1.0.0-dev cmake make gcc g++ pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/osmocom/rtl-sdr.git
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild rtl-sdr ed0317e6a58c098874ac58b769cf2e609c18d9a5
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
32
openwebrx/docker/scripts/install-dependencies-runds.sh
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES=""
|
||||||
|
BUILD_PACKAGES="git cmake make gcc g++ pkg-config"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/jketterl/runds_connector.git
|
||||||
|
cmakebuild runds_connector 0.2.0
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
57
openwebrx/docker/scripts/install-dependencies-sdrplay.sh
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0.0 udev"
|
||||||
|
BUILD_PACKAGES="git cmake make patch wget sudo gcc g++ libusb-1.0-0-dev"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
|
case $ARCH in
|
||||||
|
x86_64)
|
||||||
|
BINARY=SDRplay_RSP_API-Linux-3.07.1.run
|
||||||
|
;;
|
||||||
|
armv*)
|
||||||
|
BINARY=SDRplay_RSP_API-ARM32-3.07.2.run
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
BINARY=SDRplay_RSP_API-ARM64-3.07.1.run
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
wget https://www.sdrplay.com/software/$BINARY
|
||||||
|
sh $BINARY --noexec --target sdrplay
|
||||||
|
patch --verbose -Np0 < /install-lib.$ARCH.patch
|
||||||
|
|
||||||
|
cd sdrplay
|
||||||
|
./install_lib.sh
|
||||||
|
cd ..
|
||||||
|
rm -rf sdrplay
|
||||||
|
rm $BINARY
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapySDRPlay3.git
|
||||||
|
# latest from master as of 2021-06-19 (reliability fixes)
|
||||||
|
cmakebuild SoapySDRPlay3 a869f25364a1f0d5b16169ff908aa21a2ace475d
|
||||||
|
|
||||||
|
SUDO_FORCE_REMOVE=yes apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
32
openwebrx/docker/scripts/install-dependencies-soapyremote.sh
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="avahi-daemon libavahi-client3"
|
||||||
|
BUILD_PACKAGES="git cmake make gcc g++ libavahi-client-dev"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyRemote.git
|
||||||
|
cmakebuild SoapyRemote soapy-remote-0.5.2
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
33
openwebrx/docker/scripts/install-dependencies-soapysdr.sh
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libudev1"
|
||||||
|
BUILD_PACKAGES="git cmake make patch wget sudo gcc g++"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapySDR
|
||||||
|
# latest from master as of 2020-09-04
|
||||||
|
cmakebuild SoapySDR 580b94f3dad46899f34ec0a060dbb4534e844e57
|
||||||
|
|
||||||
|
SUDO_FORCE_REMOVE=yes apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
60
openwebrx/docker/scripts/install-dependencies-uhd.sh
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libusb-1.0.0 libboost-chrono1.67.0 libboost-date-time1.67.0 libboost-filesystem1.67.0 libboost-program-options1.67.0 libboost-regex1.67.0 libboost-test1.67.0 libboost-serialization1.67.0 libboost-thread1.67.0 libboost-system1.67.0 python3-numpy python3-mako"
|
||||||
|
BUILD_PACKAGES="git cmake make gcc g++ libusb-1.0-0-dev libboost-dev libboost-chrono-dev libboost-date-time-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-test-dev libboost-serialization-dev libboost-thread-dev libboost-system-dev"
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/EttusResearch/uhd.git
|
||||||
|
# 3.15.0.0 Release
|
||||||
|
mkdir -p uhd/host/build
|
||||||
|
cd uhd/host/build
|
||||||
|
git checkout v3.15.0.0
|
||||||
|
# see https://github.com/EttusResearch/uhd/issues/350
|
||||||
|
case `uname -m` in
|
||||||
|
arm*)
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_UTILS=OFF -DENABLE_PYTHON_API=OFF -DENABLE_EXAMPLES=OFF -DENABLE_TESTS=OFF -DENABLE_OCTOCLOCK=OFF -DENABLE_MAN_PAGES=OFF -DSTRIP_BINARIES=ON \
|
||||||
|
-DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -Wno-psabi" \
|
||||||
|
-DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -Wno-psabi" \
|
||||||
|
-DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -g" ..
|
||||||
|
;;
|
||||||
|
aarch64*)
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_UTILS=OFF -DENABLE_PYTHON_API=OFF -DENABLE_EXAMPLES=OFF -DENABLE_TESTS=OFF -DENABLE_OCTOCLOCK=OFF -DENABLE_MAN_PAGES=OFF -DSTRIP_BINARIES=ON \
|
||||||
|
-DCMAKE_CXX_FLAGS:STRING="-march=armv8-a -mtune=cortex-a72 -Wno-psabi" \
|
||||||
|
-DCMAKE_C_FLAGS:STRING="-march=armv8-a -mtune=cortex-a72 -Wno-psabi" \
|
||||||
|
-DCMAKE_ASM_FLAGS:STRING="-march=armv8-a -mtune=cortex-a72 -g" ..
|
||||||
|
;;
|
||||||
|
x86_64)
|
||||||
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_UTILS=OFF -DENABLE_PYTHON_API=OFF -DENABLE_EXAMPLES=OFF -DENABLE_TESTS=OFF -DENABLE_OCTOCLOCK=OFF -DENABLE_MAN_PAGES=OFF -DSTRIP_BINARIES=ON ..
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../../..
|
||||||
|
rm -rf uhd
|
||||||
|
|
||||||
|
git clone https://github.com/pothosware/SoapyUHD.git
|
||||||
|
cmakebuild SoapyUHD soapy-uhd-0.4.1
|
||||||
|
|
||||||
|
SUDO_FORCE_REMOVE=yes apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
116
openwebrx/docker/scripts/install-dependencies.sh
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ${CMAKE_ARGS:-} ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="sox libfftw3-bin python3 python3-setuptools netcat-openbsd libsndfile1 liblapack3 libusb-1.0-0 libqt5core5a libreadline7 libgfortran4 libgomp1 libasound2 libudev1 ca-certificates libqt5gui5 libqt5sql5 libqt5printsupport5 libpulse0 libfaad2 libopus0 libboost-program-options1.67.0 libboost-log1.67.0"
|
||||||
|
BUILD_PACKAGES="wget git libsndfile1-dev libfftw3-dev cmake make gcc g++ liblapack-dev texinfo gfortran libusb-1.0-0-dev qtbase5-dev qtmultimedia5-dev qttools5-dev libqt5serialport5-dev qttools5-dev-tools asciidoctor asciidoc libasound2-dev libudev-dev libhamlib-dev patch xsltproc qt5-default libfaad-dev libopus-dev libboost-dev libboost-program-options-dev libboost-log-dev libboost-regex-dev"
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install auto-apt-proxy
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
case `uname -m` in
|
||||||
|
arm*)
|
||||||
|
PLATFORM=armhf
|
||||||
|
;;
|
||||||
|
aarch64*)
|
||||||
|
PLATFORM=aarch64
|
||||||
|
;;
|
||||||
|
x86_64*)
|
||||||
|
PLATFORM=amd64
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
wget https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-${PLATFORM}.tar.gz
|
||||||
|
tar xzf s6-overlay-${PLATFORM}.tar.gz -C /
|
||||||
|
rm s6-overlay-${PLATFORM}.tar.gz
|
||||||
|
|
||||||
|
JS8CALL_VERSION=2.2.0
|
||||||
|
JS8CALL_DIR=js8call
|
||||||
|
JS8CALL_TGZ=js8call-${JS8CALL_VERSION}.tgz
|
||||||
|
wget http://files.js8call.com/${JS8CALL_VERSION}/${JS8CALL_TGZ}
|
||||||
|
tar xfz ${JS8CALL_TGZ}
|
||||||
|
# patch allows us to build against the packaged hamlib
|
||||||
|
patch -Np1 -d ${JS8CALL_DIR} < /js8call-hamlib.patch
|
||||||
|
rm /js8call-hamlib.patch
|
||||||
|
CMAKE_ARGS="-D CMAKE_CXX_FLAGS=-DJS8_USE_HAMLIB_THREE" cmakebuild ${JS8CALL_DIR}
|
||||||
|
rm ${JS8CALL_TGZ}
|
||||||
|
|
||||||
|
WSJT_DIR=wsjtx-2.4.0
|
||||||
|
WSJT_TGZ=${WSJT_DIR}.tgz
|
||||||
|
wget http://physics.princeton.edu/pulsar/k1jt/${WSJT_TGZ}
|
||||||
|
tar xfz ${WSJT_TGZ}
|
||||||
|
patch -Np0 -d ${WSJT_DIR} < /wsjtx-hamlib.patch
|
||||||
|
mv /wsjtx.patch ${WSJT_DIR}
|
||||||
|
cmakebuild ${WSJT_DIR}
|
||||||
|
rm ${WSJT_TGZ}
|
||||||
|
|
||||||
|
git clone --depth 1 -b 1.6 https://github.com/wb2osz/direwolf.git
|
||||||
|
cd direwolf
|
||||||
|
# hamlib is present (necessary for the wsjt-x and js8call builds) and would be used, but there's no real need.
|
||||||
|
# this patch prevents direwolf from linking to it, and it can be stripped at the end of the script.
|
||||||
|
patch -Np1 < /direwolf-hamlib.patch
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf direwolf
|
||||||
|
# strip lots of generic documentation that will never be read inside a docker container
|
||||||
|
rm /usr/local/share/doc/direwolf/*.pdf
|
||||||
|
# examples are pointless, too
|
||||||
|
rm -rf /usr/local/share/doc/direwolf/examples/
|
||||||
|
|
||||||
|
git clone https://github.com/drowe67/codec2.git
|
||||||
|
cd codec2
|
||||||
|
# latest commit from master as of 2020-10-04
|
||||||
|
git checkout 55d7bb8d1bddf881bdbfcb971a718b83e6344598
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
install -m 0755 src/freedv_rx /usr/local/bin
|
||||||
|
cd ../..
|
||||||
|
rm -rf codec2
|
||||||
|
|
||||||
|
wget https://downloads.sourceforge.net/project/drm/dream/2.1.1/dream-2.1.1-svn808.tar.gz
|
||||||
|
tar xvfz dream-2.1.1-svn808.tar.gz
|
||||||
|
pushd dream
|
||||||
|
patch -Np0 < /dream.patch
|
||||||
|
qmake CONFIG+=console
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
popd
|
||||||
|
rm -rf dream
|
||||||
|
rm dream-2.1.1-svn808.tar.gz
|
||||||
|
|
||||||
|
git clone https://github.com/mobilinkd/m17-cxx-demod.git
|
||||||
|
cmakebuild m17-cxx-demod v2.0
|
||||||
|
|
||||||
|
git clone https://github.com/hessu/aprs-symbols /usr/share/aprs-symbols
|
||||||
|
pushd /usr/share/aprs-symbols
|
||||||
|
git checkout 5c2abe2658ee4d2563f3c73b90c6f59124839802
|
||||||
|
# remove unused files (including git meta information)
|
||||||
|
rm -rf .git aprs-symbols.ai aprs-sym-export.js
|
||||||
|
popd
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
53
openwebrx/docker/scripts/install-owrx-tools.sh
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
export MAKEFLAGS="-j4"
|
||||||
|
|
||||||
|
function cmakebuild() {
|
||||||
|
cd $1
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
git checkout $2
|
||||||
|
fi
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ${CMAKE_ARGS:-} ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ../..
|
||||||
|
rm -rf $1
|
||||||
|
}
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
|
||||||
|
STATIC_PACKAGES="libfftw3-bin libprotobuf17"
|
||||||
|
BUILD_PACKAGES="git autoconf automake libtool libfftw3-dev pkg-config cmake make gcc g++ libprotobuf-dev protobuf-compiler"
|
||||||
|
apt-get update
|
||||||
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
||||||
|
|
||||||
|
git clone https://github.com/jketterl/js8py.git
|
||||||
|
pushd js8py
|
||||||
|
git checkout 0.1.0
|
||||||
|
python3 setup.py install
|
||||||
|
popd
|
||||||
|
rm -rf js8py
|
||||||
|
|
||||||
|
git clone https://github.com/jketterl/csdr.git
|
||||||
|
cd csdr
|
||||||
|
git checkout 0.17.0
|
||||||
|
autoreconf -i
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ..
|
||||||
|
rm -rf csdr
|
||||||
|
|
||||||
|
git clone https://github.com/jketterl/codecserver.git
|
||||||
|
mkdir -p /usr/local/etc/codecserver
|
||||||
|
cp codecserver/conf/codecserver.conf /usr/local/etc/codecserver
|
||||||
|
cmakebuild codecserver 0.1.0
|
||||||
|
|
||||||
|
git clone https://github.com/jketterl/digiham.git
|
||||||
|
cmakebuild digiham 0.5.0
|
||||||
|
|
||||||
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
||||||
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
37
openwebrx/docker/scripts/run.sh
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
mkdir -p /etc/openwebrx/openwebrx.conf.d
|
||||||
|
mkdir -p /var/lib/openwebrx
|
||||||
|
mkdir -p /tmp/openwebrx/
|
||||||
|
if [[ ! -f /etc/openwebrx/openwebrx.conf.d/20-temporary-directory.conf ]] ; then
|
||||||
|
cat << EOF > /etc/openwebrx/openwebrx.conf.d/20-temporary-directory.conf
|
||||||
|
[core]
|
||||||
|
temporary_directory = /tmp/openwebrx
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
if [[ ! -f /etc/openwebrx/bands.json ]] ; then
|
||||||
|
cp bands.json /etc/openwebrx/
|
||||||
|
fi
|
||||||
|
if [[ ! -f /etc/openwebrx/openwebrx.conf ]] ; then
|
||||||
|
cp openwebrx.conf /etc/openwebrx/
|
||||||
|
fi
|
||||||
|
if [[ ! -z "${OPENWEBRX_ADMIN_USER:-}" ]] && [[ ! -z "${OPENWEBRX_ADMIN_PASSWORD:-}" ]] ; then
|
||||||
|
if ! python3 openwebrx.py admin --silent hasuser "${OPENWEBRX_ADMIN_USER}" ; then
|
||||||
|
OWRX_PASSWORD="${OPENWEBRX_ADMIN_PASSWORD}" python3 openwebrx.py admin --noninteractive adduser "${OPENWEBRX_ADMIN_USER}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
_term() {
|
||||||
|
echo "Caught signal!"
|
||||||
|
kill -TERM "$child" 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
trap _term SIGTERM SIGINT
|
||||||
|
|
||||||
|
python3 openwebrx.py $@ &
|
||||||
|
|
||||||
|
child=$!
|
||||||
|
wait "$child"
|
||||||
|
|
0
openwebrx/htdocs/__init__.py
Normal file
BIN
openwebrx/htdocs/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
openwebrx/htdocs/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 17 KiB |
162
openwebrx/htdocs/css/admin.css
Normal file
|
@ -0,0 +1,162 @@
|
||||||
|
@import url("openwebrx-header.css");
|
||||||
|
@import url("openwebrx-globals.css");
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin-bottom: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
background: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttons {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background-color: #222;
|
||||||
|
z-index: 2;
|
||||||
|
padding: 10px;
|
||||||
|
text-align: right;
|
||||||
|
border-top: 1px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row .map-input {
|
||||||
|
margin: 15px 15px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-section h3 {
|
||||||
|
margin-top: 1em;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 1em 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.matrix {
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.q65-matrix {
|
||||||
|
grid-template-columns: repeat(5, auto);
|
||||||
|
}
|
||||||
|
|
||||||
|
.imageupload .image-container {
|
||||||
|
max-width: 100%;
|
||||||
|
padding: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imageupload img.webrx-top-photo {
|
||||||
|
max-height: 350px;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-grid > div {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-grid .btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
|
padding: 20px;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-body {
|
||||||
|
overflow: auto;
|
||||||
|
border: 1px solid #444;
|
||||||
|
border-top: none;
|
||||||
|
border-bottom-left-radius: 0.25rem;
|
||||||
|
border-bottom-right-radius: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-body .form-group {
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookmarks table .frequency, .bookmark-list table .frequency {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookmarks table input, .bookmarks table select {
|
||||||
|
width: initial;
|
||||||
|
text-align: inherit;
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookmark-list table .form-check-input {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actions {
|
||||||
|
margin: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.actions .btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wsjt-decoding-depths-table {
|
||||||
|
width: auto;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wsjt-decoding-depths-table td:first-child {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sdr-device-list .list-group-item,
|
||||||
|
.sdr-profile-list .list-group-item {
|
||||||
|
background: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sdr-device-list .sdr-profile-list {
|
||||||
|
max-height: 20rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.removable-group.removable, .add-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.removable-group.removable .removable-item, .add-group .add-group-select {
|
||||||
|
flex: 1 0 auto;
|
||||||
|
margin-right: .25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.removable-group.removable .option-remove-button, .add-group .option-add-button {
|
||||||
|
flex: 0 0 70px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.option-add-button, .option-remove-button {
|
||||||
|
width: 70px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scheduler-static-time-inputs {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scheduler-static-time-inputs > * {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
width: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scheduler-static-time-inputs > select {
|
||||||
|
flex: 1 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
margin-top: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.imageupload.is-invalid ~ .invalid-feedback {
|
||||||
|
display: block;
|
||||||
|
}
|
12
openwebrx/htdocs/css/bootstrap.min.css
vendored
Normal file
34
openwebrx/htdocs/css/login.css
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
@import url("openwebrx-header.css");
|
||||||
|
@import url("openwebrx-globals.css");
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-container {
|
||||||
|
flex: 1;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
|
||||||
|
width: 500px;
|
||||||
|
|
||||||
|
padding: 20px;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 1px solid #575757;
|
||||||
|
box-shadow: 0 0 20px #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login .btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login {
|
||||||
|
height: 50px;
|
||||||
|
}
|
65
openwebrx/htdocs/css/map.css
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
@import url("openwebrx-header.css");
|
||||||
|
@import url("openwebrx-globals.css");
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-map {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 10px 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin-block-start: 5px;
|
||||||
|
margin-block-end: 5px;
|
||||||
|
padding-inline-start: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* don't show the filter in it's initial position */
|
||||||
|
.openwebrx-map-legend {
|
||||||
|
display: none;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 10px;
|
||||||
|
margin: 10px;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* show it as soon as google maps has moved it to its container */
|
||||||
|
.openwebrx-map .openwebrx-map-legend {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-map-legend ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-map-legend ul li {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-map-legend ul li.disabled {
|
||||||
|
opacity: .3;
|
||||||
|
filter: grayscale(70%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-map-legend li.square .illustration {
|
||||||
|
display: inline-block;
|
||||||
|
width: 30px;
|
||||||
|
height: 20px;
|
||||||
|
margin-right: 10px;
|
||||||
|
border-width: 2px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-map-legend select {
|
||||||
|
background-color: #FFF;
|
||||||
|
border-color: #DDD;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
7
openwebrx/htdocs/css/openwebrx-globals.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
html, body
|
||||||
|
{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
height: 100%;
|
||||||
|
font-family: "DejaVu Sans", Verdana, Geneva, sans-serif;
|
||||||
|
}
|
227
openwebrx/htdocs/css/openwebrx-header.css
Normal file
|
@ -0,0 +1,227 @@
|
||||||
|
.webrx-top-container {
|
||||||
|
position: relative;
|
||||||
|
z-index:1000;
|
||||||
|
background-color: #575757;
|
||||||
|
|
||||||
|
background-image: url(../gfx/openwebrx-top-photo.jpg);
|
||||||
|
background-position-x: center;
|
||||||
|
background-position-y: top;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-description-container {
|
||||||
|
transition-property: height, opacity;
|
||||||
|
transition-duration: 1s;
|
||||||
|
transition-timing-function: ease-out;
|
||||||
|
opacity: 0;
|
||||||
|
height: 0;
|
||||||
|
/* originally, top-bar + description was 350px */
|
||||||
|
max-height: 283px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-description-container.expanded {
|
||||||
|
opacity: 1;
|
||||||
|
height: 283px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-top-bar {
|
||||||
|
height:67px;
|
||||||
|
|
||||||
|
background: rgba(128, 128, 128, 0.15);
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-top-bar > * {
|
||||||
|
flex: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-top-container, .webrx-top-container * {
|
||||||
|
line-height: initial;
|
||||||
|
box-sizing: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-top-logo {
|
||||||
|
width: 261px;
|
||||||
|
padding: 12px;
|
||||||
|
filter: drop-shadow(0 0 2.5px rgba(0, 0, 0, .9));
|
||||||
|
/* overwritten by media queries */
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-avatar {
|
||||||
|
background-color: rgba(154, 154, 154, .5);
|
||||||
|
margin: 7px;
|
||||||
|
|
||||||
|
width: 46px;
|
||||||
|
height: 46px;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-sizing: content-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-texts {
|
||||||
|
/* minimum layout width */
|
||||||
|
width: 0;
|
||||||
|
/* will be getting wider with flex */
|
||||||
|
flex: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
margin: auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-texts div, .webrx-rx-texts h1 {
|
||||||
|
margin: 0 10px;
|
||||||
|
padding: 3px;
|
||||||
|
white-space:nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
color: #909090;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-title {
|
||||||
|
font-family: "DejaVu Sans", Verdana, Geneva, sans-serif;
|
||||||
|
font-size: 11pt;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-desc {
|
||||||
|
font-size: 10pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-main-buttons .button {
|
||||||
|
display: block;
|
||||||
|
width: 55px;
|
||||||
|
cursor:pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-main-buttons .button[data-toggle-panel] {
|
||||||
|
/* will be enabled by javascript if the panel is present in the DOM */
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-main-buttons .button img,
|
||||||
|
.openwebrx-main-buttons .button svg {
|
||||||
|
height: 38px;
|
||||||
|
filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-main-buttons a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-main-buttons .button:hover {
|
||||||
|
background-color: rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-main-buttons .button:active {
|
||||||
|
background-color: rgba(255, 255, 255, 0.55);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.openwebrx-main-buttons {
|
||||||
|
padding: 5px 15px;
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
margin:0;
|
||||||
|
color: white;
|
||||||
|
text-shadow: 0px 0px 4px #000000;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 9pt;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-photo-title {
|
||||||
|
margin: 10px 15px;
|
||||||
|
color: white;
|
||||||
|
font-size: 16pt;
|
||||||
|
text-shadow: 1px 1px 4px #444;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-photo-desc {
|
||||||
|
margin: 10px 15px;
|
||||||
|
color: white;
|
||||||
|
font-size: 10pt;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: 0px 0px 6px #444;
|
||||||
|
opacity: 1;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webrx-rx-photo-desc a {
|
||||||
|
color: #5ca8ff;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-photo-trigger {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Responsive stuff
|
||||||
|
*/
|
||||||
|
|
||||||
|
@media (min-width: 576px) {
|
||||||
|
.webrx-rx-texts {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 992px) {
|
||||||
|
.webrx-top-logo {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* RX details arrow up/down switching
|
||||||
|
*/
|
||||||
|
|
||||||
|
.openwebrx-rx-details-arrow {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-rx-details-arrow svg {
|
||||||
|
height: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-rx-details-arrow .up {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-rx-details-arrow--up .down {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-rx-details-arrow--up .up {
|
||||||
|
display: initial;
|
||||||
|
}
|
1364
openwebrx/htdocs/css/openwebrx.css
Normal file
BIN
openwebrx/htdocs/favicon.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
25
openwebrx/htdocs/features.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<HTML><HEAD>
|
||||||
|
<TITLE>OpenWebRX Feature report</TITLE>
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico" />
|
||||||
|
<link rel="stylesheet" href="static/css/bootstrap.min.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="static/css/admin.css" />
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.0/showdown.min.js"></script>
|
||||||
|
<script src="static/lib/jquery-3.2.1.min.js"></script>
|
||||||
|
<script src="static/lib/Header.js"></script>
|
||||||
|
<script src="static/features.js"></script>
|
||||||
|
</HEAD><BODY>
|
||||||
|
${header}
|
||||||
|
<div class="container">
|
||||||
|
${breadcrumb}
|
||||||
|
<h1>OpenWebRX Feature Report</h1>
|
||||||
|
<table class="features table">
|
||||||
|
<tr>
|
||||||
|
<th>Feature</th>
|
||||||
|
<th>Requirement</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Available</th>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
${breadcrumb}
|
||||||
|
</div>
|
||||||
|
</BODY></HTML>
|
23
openwebrx/htdocs/features.js
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
$(function(){
|
||||||
|
var converter = new showdown.Converter();
|
||||||
|
$.ajax('api/features').done(function(data){
|
||||||
|
var $table = $('table.features');
|
||||||
|
$.each(data, function(name, details) {
|
||||||
|
var requirements = $.map(details.requirements, function(r, name){
|
||||||
|
return '<tr>' +
|
||||||
|
'<td></td>' +
|
||||||
|
'<td>' + name + '</td>' +
|
||||||
|
'<td>' + converter.makeHtml(r.description) + '</td>' +
|
||||||
|
'<td>' + (r.available ? 'YES' : 'NO') + '</td>' +
|
||||||
|
'</tr>';
|
||||||
|
});
|
||||||
|
$table.append(
|
||||||
|
'<tr>' +
|
||||||
|
'<td colspan=3>' + name + '</td>' +
|
||||||
|
'<td>' + (details.available ? 'YES' : 'NO') + '</td>' +
|
||||||
|
'</tr>' +
|
||||||
|
requirements.join("")
|
||||||
|
);
|
||||||
|
})
|
||||||
|
});
|
||||||
|
});
|
BIN
openwebrx/htdocs/fonts/RobotoMono-Regular.ttf
Normal file
BIN
openwebrx/htdocs/fonts/RobotoMono-Regular.woff
Normal file
BIN
openwebrx/htdocs/fonts/RobotoMono-Regular.woff2
Normal file
BIN
openwebrx/htdocs/gfx/favicon128.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
openwebrx/htdocs/gfx/favicon32.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
openwebrx/htdocs/gfx/favicon44.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
openwebrx/htdocs/gfx/favicon64.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
openwebrx/htdocs/gfx/favicon96.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
openwebrx/htdocs/gfx/openwebrx-avatar.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
openwebrx/htdocs/gfx/openwebrx-background-cool-blue.png
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
openwebrx/htdocs/gfx/openwebrx-background-cool-blue.webp
Normal file
After Width: | Height: | Size: 22 KiB |
1
openwebrx/htdocs/gfx/openwebrx-directcall.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><defs><filter id="a" x="-.25" y="-.25" width="1.5" height="1.5" color-interpolation-filters="sRGB"><feFlood flood-color="#000" flood-opacity=".4" result="flood"/><feComposite in="flood" in2="SourceGraphic" operator="in" result="composite1"/><feGaussianBlur in="composite1" result="blur" stdDeviation="66.6"/><feOffset result="offset"/><feComposite in="SourceGraphic" in2="offset" result="composite2"/></filter></defs><path d="M550.98 541.91c-.99-28.904-4.377-57.939-9.421-86.393-6.111-34.469-13.889-85.002-43.983-107.46-17.404-12.988-39.941-17.249-59.865-25.081-9.697-3.81-18.384-7.594-26.537-11.901-27.518 30.176-63.4 45.962-105.19 45.964-41.774 0-77.652-15.786-105.17-45.964-8.153 4.308-16.84 8.093-26.537 11.901-19.924 7.832-42.461 12.092-59.863 25.081-30.096 22.463-37.873 72.996-43.983 107.46-5.045 28.454-8.433 57.489-9.422 86.393-.766 22.387 10.288 25.525 29.017 32.284 23.453 8.458 47.666 14.737 72.041 19.884 47.077 9.941 95.603 17.582 143.92 17.924 48.318-.343 96.844-7.983 143.92-17.924 24.375-5.145 48.59-11.424 72.041-19.884 18.736-6.757 29.789-9.895 29.023-32.284zM306 325.99c90.56-.01 123.15-90.68 131.68-165.17C448.19 69.06 404.8 0 306 0c-98.78 0-142.19 69.055-131.68 160.82C182.86 235.304 215.434 326 306 325.99z" filter="url(#a)" transform="matrix(.42446 0 0 .42484 70.12 69)" fill="#fff"/></svg>
|
After Width: | Height: | Size: 1.3 KiB |
1
openwebrx/htdocs/gfx/openwebrx-groupcall.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><defs><filter id="a" x="-.25" y="-.25" width="1.5" height="1.5" color-interpolation-filters="sRGB"><feFlood flood-color="#000" flood-opacity=".4" result="flood"/><feComposite in="flood" in2="SourceGraphic" operator="in" result="composite1"/><feGaussianBlur in="composite1" result="blur" stdDeviation="66.6"/><feOffset result="offset"/><feComposite in="SourceGraphic" in2="offset" result="composite2"/></filter></defs><g fill="#fff"><g transform="matrix(.42446 0 0 .42484 129.12 42)" filter="url(#a)"><path d="M27.982.002c-98.778 0-142.188 69.056-131.678 160.823 8.54 74.484 41.112 165.183 131.678 165.173 90.558-.01 123.148-90.682 131.678-165.173C170.17 69.063 126.781.002 27.982.002zm277.996 0C207.2.002 163.79 69.058 174.3 160.825c8.54 74.484 41.113 165.183 131.678 165.173 90.559-.01 123.148-90.682 131.678-165.173C448.166 69.063 404.777.002 305.978.002zM-77.209 311.093c-8.153 4.308-16.84 8.09-26.537 11.898-19.924 7.833-42.463 12.095-59.863 25.084-30.095 22.463-37.871 72.996-43.98 107.46-5.045 28.454-8.435 57.492-9.424 86.395-.766 22.388 10.288 25.523 29.015 32.284 23.453 8.458 47.665 14.737 72.04 19.884 47.075 9.941 95.6 17.583 143.916 17.925 46.64-.33 93.461-7.487 138.998-16.923 45.538 9.437 92.359 16.593 138.999 16.923 48.317-.343 96.841-7.984 143.917-17.925 24.374-5.145 48.593-11.424 72.043-19.884 18.736-6.757 29.786-9.894 29.02-32.284h.01c-.99-28.903-4.38-57.941-9.424-86.395-6.111-34.47-13.886-85.002-43.98-107.46-17.404-12.989-39.94-17.252-59.863-25.084-9.697-3.81-18.384-7.59-26.537-11.898-27.517 30.177-63.398 45.962-105.186 45.965-41.773 0-77.65-15.787-105.17-45.965-8.153 4.308-16.84 8.09-26.537 11.898-2.394.941-4.828 1.826-7.284 2.685-2.456-.859-4.89-1.744-7.284-2.685-9.697-3.81-18.383-7.59-26.537-11.898-27.517 30.177-63.397 45.962-105.186 45.965-41.773 0-77.65-15.787-105.17-45.965z"/></g><g transform="matrix(.42446 0 0 .42484 70.12 102)" filter="url(#a)"><path d="M550.98 541.91c-.99-28.904-4.377-57.939-9.421-86.393-6.111-34.469-13.889-85.002-43.983-107.46-17.404-12.988-39.941-17.249-59.865-25.081-9.697-3.81-18.384-7.594-26.537-11.901-27.518 30.176-63.4 45.962-105.19 45.964-41.774 0-77.652-15.786-105.17-45.964-8.153 4.308-16.84 8.093-26.537 11.901-19.924 7.832-42.461 12.092-59.863 25.081-30.096 22.463-37.873 72.996-43.983 107.46-5.045 28.454-8.433 57.489-9.422 86.393-.766 22.387 10.288 25.525 29.017 32.284 23.453 8.458 47.666 14.737 72.041 19.884 47.077 9.941 95.603 17.582 143.92 17.924 48.318-.343 96.844-7.983 143.92-17.924 24.375-5.145 48.59-11.424 72.041-19.884 18.736-6.757 29.789-9.895 29.023-32.284zM306 325.99c90.56-.01 123.15-90.68 131.68-165.17C448.19 69.06 404.8 0 306 0c-98.78 0-142.19 69.055-131.68 160.82C182.86 235.304 215.434 326 306 325.99z"/></g></g></svg>
|
After Width: | Height: | Size: 2.7 KiB |
BIN
openwebrx/htdocs/gfx/openwebrx-scale-background.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
openwebrx/htdocs/gfx/openwebrx-top-photo.jpg
Normal file
After Width: | Height: | Size: 69 KiB |
28
openwebrx/htdocs/gfx/svg-defs.svg
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<defs>
|
||||||
|
<g id="top-logo"><g fill="none" stroke="#fff" stroke-linecap="square" stroke-linejoin="round" stroke-width="6"><path d="M517.23 68.215a35.5 33.2 0 0 1-11.936-26.458 35.5 33.2 0 0 1 14.593-25.266M561.62 16.49a35.5 33.2 0 0 1 14.593 25.266 35.5 33.2 0 0 1-11.936 26.458M551.57 29.079a18.4 19 0 0 1 7.564 14.46 18.4 19 0 0 1-6.187 15.142M528.56 58.681a18.4 19 0 0 1-6.187-15.142 18.4 19 0 0 1 7.564-14.46"/></g><g fill="none"><path d="M540.75 40.25v41.5h-322v-.5h322" stroke="#fff" stroke-width="4.5"/><path d="M13 81.5h58zm76 0h128z" stroke="#ccc" stroke-width="5"/></g><g aria-label="OpenWebRX"><path d="M207.85 45.906c0-11.755-5.104-17.787-14.771-17.787-5.877 0-10.363 2.475-13.688 7.579v-6.574h-6.96v42.301h6.96V47.53c0-8.352 4.717-13.379 12.141-13.379 6.264 0 9.357 4.022 9.357 11.987v25.288h6.96zm-53.515.619h-24.747c.696-7.966 5.645-12.528 13.301-12.528 6.805 0 11.368 4.794 11.445 12.528zm6.96 2.01c0-12.683-7.192-20.416-18.483-20.416-12.605 0-20.725 8.662-20.725 22.581 0 13.301 8.352 21.808 21.963 21.808 5.336 0 10.595-1.082 15.621-3.248v-6.573c-4.872 2.63-9.821 3.944-15.235 3.944-9.203 0-14.461-5.104-15.08-14.693h31.939zm-54.907 1.78c0 10.44-4.64 16.394-11.832 16.394-7.192 0-11.832-5.955-11.832-16.395s4.64-16.395 11.832-16.395c7.192 0 11.832 5.955 11.832 16.395zm-23.664 14.77c2.939 5.027 7.347 7.424 13.533 7.424 10.053 0 17.323-8.661 17.323-22.195S106.31 28.12 96.257 28.12c-6.187 0-10.595 2.397-13.533 7.424v-6.419h-6.96v58.387h6.96zm-44.389-51.04c-15.699 0-26.139 11.291-26.139 29.232 0 18.02 10.44 29.232 26.139 29.232s26.061-11.29 26.061-29.232-10.363-29.232-26.061-29.232zm0 6.187c10.827 0 18.019 8.506 18.019 23.045s-7.192 23.045-18.019 23.045-18.096-8.507-18.096-23.045 7.27-23.045 18.096-23.045z" fill="#ccc"/><path d="m480.99 42.658 18.792-27.608h-15.235l-12.296 18.173-12.373-18.173h-15.157l18.792 27.608-19.565 28.768h15.235l13.069-19.256 13.147 19.256h15.157zm-76.405 7.424h4.099c5.026 0 7.269 2.01 9.898 7.347l6.883 13.997h15.467l-7.888-16.008c-2.939-5.955-5.8-9.358-10.13-10.363 7.268-2.243 10.826-7.038 10.826-14.461 0-10.904-6.883-15.544-21.499-15.544h-22.195v56.376h14.54zm6.11-10.053h-6.11V25.568h6.11c5.954 0 8.506 1.933 8.506 7.192s-2.552 7.27-8.507 7.27zm-62.873-4.485V12.653h-6.96v58.773h6.96v-6.342c2.939 5.027 7.347 7.424 13.533 7.424 10.053 0 17.323-8.66 17.323-22.195s-7.269-22.195-17.323-22.195c-6.186 0-10.595 2.398-13.533 7.424zm23.664 14.77c0 10.44-4.64 16.396-11.832 16.396s-11.832-5.955-11.832-16.395 4.64-16.395 11.832-16.395 11.832 5.954 11.832 16.395zm-48.72-3.789H298.02c.696-7.965 5.646-12.528 13.301-12.528 6.806 0 11.368 4.795 11.445 12.528zm6.96 2.011c0-12.683-7.192-20.416-18.483-20.416-12.605 0-20.725 8.661-20.725 22.581 0 13.301 8.352 21.808 21.963 21.808 5.336 0 10.595-1.083 15.621-3.248v-6.573c-4.872 2.63-9.821 3.944-15.235 3.944-9.202 0-14.46-5.104-15.08-14.693h31.94zm-112.75-33.485 14.152 56.376h9.59l11.987-48.952 11.909 48.952h9.589l14.152-56.376h-7.733L268.79 62.688l-11.832-47.637h-8.584l-11.832 47.637-11.832-47.637z" fill="#fff"/></g></g>
|
||||||
|
<g id="panel-log" stroke="#fff"><g fill="none" stroke-linecap="round" stroke-width="3.5"><path d="M21 57h39M21 48.5h39M21 40h34M21 31.5h39M21 23h39"/></g><g fill="#fff" stroke-linejoin="round" stroke-width="2.1"><path d="M13.5 63.5c0 2.5 2.5 5 5 5h45c2.5 0 5-2.5 5-5v-46c0-2.5-2.5-5-5-5H25l-11.5 16z" fill-opacity=".35" style="mix-blend-mode:normal"/><path d="M25 12.5s-1.323 7.847 4 15c-9.294-1.268-15.5 1-15.5 1"/></g></g>
|
||||||
|
<g id="panel-status" fill="#fff" stroke="#fff" stroke-linejoin="round" stroke-width="2.1"><g fill-opacity=".35"><path d="M9.683 26.483c-3.13 0-5.666-2.455-5.666-5.483 0-3.029 2.536-5.484 5.666-5.484h48.634c3.13 0 5.666 2.455 5.666 5.484 0 3.028-2.537 5.483-5.666 5.483zM19.113 44.913c-3.13 0-5.666-2.455-5.666-5.483s2.537-5.484 5.666-5.484h48.634c3.13 0 5.666 2.455 5.666 5.484s-2.537 5.483-5.666 5.483zM9.683 63.483c-3.13 0-5.666-2.455-5.666-5.483s2.536-5.484 5.666-5.484h48.634c3.13 0 5.666 2.455 5.666 5.484s-2.537 5.483-5.666 5.483z"/></g><path d="M10.06 26.456c-3.322 0-6.016-2.443-6.016-5.456 0-3.013 2.694-5.456 6.016-5.456h5.932c3.322 0 6.016 2.443 6.016 5.456 0 3.013-2.694 5.456-6.016 5.456zM19.48 44.886c-3.317 0-6.007-2.443-6.007-5.456 0-3.013 2.69-5.456 6.007-5.456h32.516c3.317 0 6.007 2.443 6.007 5.456 0 3.014-2.69 5.456-6.007 5.456zM10.052 63.456c-3.318 0-6.008-2.443-6.008-5.456 0-3.013 2.69-5.456 6.008-5.456h24.944c3.318 0 6.008 2.443 6.008 5.456 0 3.013-2.69 5.456-6.008 5.456z"/></g>
|
||||||
|
<g id="panel-receiver" stroke="#fff" stroke-width="2.1"><path d="M66 29.05 12 10" fill="none" stroke-linecap="round" stroke-linejoin="round"/><rect x="6.8" y="29.05" width="67.5" height="38.5" rx="5" ry="5" fill="#fff" fill-opacity=".35"/><g fill="#fff" stroke-linecap="round" stroke-linejoin="round" fill-opacity=".35"><rect x="12.3" y="34.05" width="28.5" height="9.5" rx="2" ry="2"/><circle cx="56.55" cy="48.55" r="13.5"/><g transform="translate(0 -.5)"><circle cx="17.05" cy="50.55" r="3"/><circle cx="26.3" cy="50.55" r="3"/><circle cx="35.55" cy="50.55" r="3"/><circle cx="17.05" cy="57.05" r="3"/><circle cx="26.3" cy="57.05" r="3"/><circle cx="35.55" cy="57.05" r="3"/></g></g></g>
|
||||||
|
<g id="panel-map" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.1"><g stroke-opacity=".989"><path d="m30 11-19 8v50l19-5 19 5 20-5V11l-10.844 4.879a11.93 11.93 0 0 1 2.394 7.172c0 2.111-.55 4.09-1.507 5.814h.004L49 47 38.279 29.256h.013a11.922 11.922 0 0 1-1.742-6.205c0-2.905 1.034-5.568 2.752-7.644z" fill="#fff" fill-opacity=".35"/><g fill="none"><path d="M30 11v53M49 47v22M11 59l19-25 19 18 20-6"/></g></g><circle cx="48.55" cy="23.05" r="6.5" fill="none" stroke-opacity=".989"/><path d="M48.551 11.051c-6.627 0-12 5.373-12 12 0 2.274.643 4.393 1.742 6.205h-.013L49 47l10.048-18.135h-.004a11.935 11.935 0 0 0 1.507-5.814c0-6.628-5.372-12-12-12z" fill="#fff" fill-opacity=".2"/></g>
|
||||||
|
<g id="panel-settings" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.6"><path d="m39.855 10-1 .021c-1.041.04-2.078.134-3.11.282-.546.078-.853.587-.78 1.135a7.876 7.876 0 0 1-.022 1.841 6.504 6.504 0 0 1-5.428 5.428 7.889 7.889 0 0 1-1.992 0 6.501 6.501 0 0 1-4.156-2.463c-.336-.437-.916-.581-1.358-.25a29.998 29.998 0 0 0-6.017 6.016c-.331.442-.188 1.02.25 1.355a6.505 6.505 0 0 1 2.465 4.158 7.885 7.885 0 0 1 0 1.993 6.504 6.504 0 0 1-5.428 5.427 7.862 7.862 0 0 1-1.992-.002c-.461-.072-.904.256-.983.803a30.012 30.012 0 0 0-.002 8.51c.079.547.588.853 1.135.781a7.876 7.876 0 0 1 1.842.022 6.504 6.504 0 0 1 5.428 5.427 7.889 7.889 0 0 1 0 1.992 6.501 6.501 0 0 1-2.463 4.157c-.438.336-.581.915-.25 1.357a29.998 29.998 0 0 0 6.015 6.018c.442.33 1.02.187 1.356-.25a6.505 6.505 0 0 1 4.158-2.465 7.885 7.885 0 0 1 1.992 0 6.504 6.504 0 0 1 5.428 5.428 7.862 7.862 0 0 1-.002 1.992c-.072.46.256.904.803.982a30.012 30.012 0 0 0 8.51.002c.546-.078.853-.59.78-1.136a7.859 7.859 0 0 1 .022-1.84 6.504 6.504 0 0 1 5.428-5.428 7.889 7.889 0 0 1 1.992 0 6.501 6.501 0 0 1 4.156 2.463c.336.437.916.581 1.358.25a29.998 29.998 0 0 0 6.017-6.016c.331-.442.188-1.02-.25-1.355a6.505 6.505 0 0 1-2.465-4.158 7.885 7.885 0 0 1 0-1.993 6.504 6.504 0 0 1 5.428-5.427 7.862 7.862 0 0 1 1.992.002c.461.072.904-.258.983-.805a29.977 29.977 0 0 0 .002-8.508c-.079-.546-.59-.853-1.137-.781a7.859 7.859 0 0 1-1.84-.022 6.504 6.504 0 0 1-5.427-5.427 7.889 7.889 0 0 1 0-1.992 6.501 6.501 0 0 1 2.462-4.157c.438-.336.582-.915.25-1.357a29.998 29.998 0 0 0-6.015-6.018c-.442-.33-1.02-.187-1.356.25a6.505 6.505 0 0 1-4.158 2.465 7.885 7.885 0 0 1-1.992 0 6.504 6.504 0 0 1-5.428-5.428 7.862 7.862 0 0 1 .002-1.992c.072-.46-.256-.904-.803-.982a30.002 30.002 0 0 0-4.4-.305zM40 26.5A13.5 13.5 0 0 1 53.5 40 13.5 13.5 0 0 1 40 53.5 13.5 13.5 0 0 1 26.5 40 13.5 13.5 0 0 1 40 26.5z" fill="#fff" fill-opacity=".35"/><circle cx="40" cy="40" r="13.5" fill="#fff" fill-opacity=".2"/><circle cx="40" cy="40" r="8" fill="none"/></g>
|
||||||
|
<g id="zoom-in" stroke="#fff"><circle cx="31.75" cy="32" r="27.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="m57.147 47.242 20.644 20.645a4 4 90 0 1 0 5.657l-3.748 3.748a4 4 180 0 1-5.656 0L47.743 56.647" fill="#fff" stroke-width="2.1"/><path d="M31.75 18.5v27M18.25 32h27" fill="none" stroke-linecap="round" stroke-width="10"/></g>
|
||||||
|
<g id="zoom-out" stroke="#fff"><circle cx="31.75" cy="32" r="27.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="8"/><path d="m57.147 47.242 20.644 20.645a4 4 90 0 1 0 5.657l-3.748 3.748a4 4 180 0 1-5.656 0L47.743 56.647" fill="#fff" stroke-width="2.1"/><path d="M18.25 32h27" fill="none" stroke-linecap="round" stroke-width="10"/></g>
|
||||||
|
<g id="zoom-out-total" stroke="#fff"><circle cx="44.001" cy="51.307" r="16.326" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="4.75"/><path d="M59.079 60.356 71.6 72.877a2 2 90 0 1 0 2.829l-2.755 2.754a2 2 180 0 1-2.828 0L53.496 65.94" fill="#fff" stroke-width="1.247"/><path d="m20.893 1.244-16.199 16.9 16.199 16.9V21.698H59.5v13.346l16.199-16.9L59.5 1.244V14.7H20.893z" fill="#fff"/></g>
|
||||||
|
<g id="zoom-in-total" stroke="#fff"><circle cx="44.701" cy="51.307" r="16.326" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="4.75"/><path d="M59.779 60.356 72.3 72.877a2 2 90 0 1 0 2.829l-2.755 2.754a2 2-180 0 1-2.828 0L54.196 65.94" fill="#fff" stroke-width="1.247"/><path d="M4.8 1.244v33.801L17.595 21.7H62.4l12.793 13.346v-33.8L62.296 14.698H17.698z" fill="#fff"/></g>
|
||||||
|
<g id="speaker" stroke="#fff"><path d="M33.5 7.15 16.74 25.201H2.65v31.7h16.041L33.5 72.848z" fill="#fff" stroke-width="2.1"/><g fill="none"><path d="M46.336 16.041A20 30 0 0 1 54.3 40a20 30 0 0 1-7.964 23.959" stroke-width="3"/><path d="M52.716 9.652A30.6 38 0 0 1 64.9 40a30.6 38 0 0 1-12.184 30.348" stroke-width="4.2"/><path d="M59.035 2.065A41.1 47.5 0 0 1 75.4 40a41.1 47.5 0 0 1-16.365 37.935" stroke-width="5.4"/></g></g>
|
||||||
|
<g id="speaker-muted"><path d="M33.5 7.15 16.74 25.201H2.65v31.7h16.041L33.5 72.848z" fill="#fff" stroke="#fff" stroke-width="2.1"/></g>
|
||||||
|
<g id="waterfall-auto"><path d="M33.512 72.05s3.393-64.129 8.24-64.093c4.48.034 4.392 28.286 9.98 28.198 4.775-.074 5.279-13.721 6.33-17.88 1.013-4.004 2.915-5.172 5.321-4.894 2.993.346 8.205 5.925 10.588 13.761 4.16 13.677 5.53 44.907 5.53 44.907z" fill="#ccc" stroke="#ccc"/><path d="M29.3 68.8 18.4 54 7.5 68.8zM7.5 11.2 18.4 26l10.9-14.8zM18.4 26v28" fill="#fff" stroke="#fff" stroke-width="7.5"/></g>
|
||||||
|
<g id="waterfall-default"><path d="M36.356 75.295s3.187-34.502 7.74-34.482c4.207.018 4.125 15.218 9.374 15.171 4.485-.04 4.958-7.382 5.945-9.62.951-2.154 2.738-2.782 4.998-2.632 2.812.186 7.707 3.187 9.945 7.403 3.906 7.358 5.193 24.16 5.193 24.16z" fill="#ccc" stroke="#ccc" stroke-width=".711"/><path d="M18.4 25.424v29.075m-10.9 0L18.4 69.3l10.9-14.801zm10.9-43.875L7.5 25.425h21.801z" fill="#fff" stroke="#fff" stroke-width="7.5"/></g>
|
||||||
|
<g id="squelch" fill="#fff" stroke-width=".767"><path d="M33.333 24.7c-.058-14.132-5.913-21.9-16.58-21.9-10.145 0-16 7.673-16 20.963 0 10.575 3.305 15.722 11.884 18.343l5.913 1.872c5.797 1.778 7.942 4.399 7.942 9.92 0 5.71-3.246 9.172-8.521 9.172-5.913 0-9.218-4.024-9.508-11.324H0C.521 66.345 6.724 74.3 17.506 74.3c10.899 0 17.333-8.142 17.333-22.087 0-10.762-3.362-16.378-11.188-18.81l-6.609-2.06c-6.203-1.965-8-3.93-8-8.89 0-5.148 2.782-8.423 7.304-8.423 5.507 0 8.58 3.743 8.87 10.669zM75.362 62.508C78.202 56.893 80 47.534 80 38.363c0-10.014-2.203-19.653-5.913-26.11C70.435 5.887 65.681 2.8 59.653 2.8S48.87 5.888 45.218 12.252C41.45 18.71 39.305 28.35 39.305 38.55s2.203 19.84 5.913 26.298c3.652 6.364 8.406 9.452 14.435 9.452 4.405 0 7.594-1.404 10.956-4.68l4.986 7.581L80 69.621zM64.638 46.13l-4.406 7.58 4.464 6.833c-1.391 1.123-3.246 1.778-5.101 1.778C52.638 62.321 48 52.869 48 38.549c0-14.412 4.58-23.771 11.652-23.771s11.652 9.358 11.652 23.864c0 5.615-.638 10.67-1.913 14.787z"/></g>
|
||||||
|
<g id="trashcan"><path d="M56.667 13.333V6.666A6.67 6.67 0 0 0 50 0H30a6.67 6.67 0 0 0-6.666 6.666v6.667H6.667V20h6.666v53.333A6.67 6.67 0 0 0 20 79.999h40a6.67 6.67 0 0 0 6.667-6.666V20h6.666v-6.667zM30 6.666h20v6.667H30zm30 66.667H20V20h40zM36.667 26.666H30v40h6.667zm13.333 0h-6.667v40H50z" fill="#fff"/></g>
|
||||||
|
<g id="edit"><path d="m52.5 7.5-45 45v20h20l45-45zm12.93 20-4.697 4.697-12.93-12.93L52.5 14.57zM15.302 51.768l4.06-4.06c1.533 1.125 3.575 2.002 5.81 2.002 2.148 0 4.453-.8 6.595-2.942l10-10c2.52-2.52 4.622-7.728.968-12.43l1.535-1.535 12.93 12.93L28.23 64.698zm22.93-18.535-10 10c-2.062 2.058-4.007 1.595-5.27.875L39.14 27.93c1.465 2.485-.27 4.643-.907 5.303zM12.5 56.035 23.965 67.5H12.5z" fill="#fff"/></g>
|
||||||
|
<g id="bookmark"><path d="M62.5 0h-45A7.5 7.5 0 0 0 10 7.5V80l30-17.5L70 80V7.5A7.5 7.5 0 0 0 62.5 0zm0 66.942L40 53.817 17.5 66.942V8.437a.938.938 0 0 1 .938-.938h43.124c.518 0 .938.42.938.937z" fill="#fff"/></g>
|
||||||
|
<g id="rx-details-arrow-down"><path d="M5 0C2.5 0 0 2.5 0 5v7h43V5c0-2.5-2.5-5-5-5zm8 4h17l-8.5 6.5z" fill="#999" fill-opacity=".196"/><path d="M13 4h17l-8.5 6.5z" fill="#848484" fill-opacity=".592"/></g>
|
||||||
|
<g id="rx-details-arrow-up"><path d="M5 0C2.5 0 0 2.5 0 5v7h43V5c0-2.5-2.5-5-5-5zm16.5 3L30 9.5H13z" fill="#999" fill-opacity=".196"/><path d="M30 9.5H13L21.5 3z" fill="#848484" fill-opacity=".592"/></g>
|
||||||
|
<g id="maps-pin" transform="translate(-965.78 -331.788) scale(1.1856)"><path d="M817.11 282.97c-1.258 1.343-2.046 3.299-2.016 5.139.064 3.845 1.797 5.3 4.569 10.592.998 2.328 2.04 4.792 3.031 8.873.138.602.272 1.16.334 1.21.062.048.197-.513.334-1.115.991-4.081 2.033-6.543 3.032-8.872 2.77-5.291 4.504-6.747 4.568-10.592.03-1.84-.76-3.797-2.018-5.14-1.437-1.534-3.605-2.67-5.916-2.717-2.311-.047-4.48 1.088-5.918 2.622z" fill="#ff4646" stroke="#d73534"/><circle cx="823.03" cy="288.25" r="3.035" fill="#590000"/></g>
|
||||||
|
<g id="play-button"><circle cx="350" cy="350" r="330" fill="none" stroke="#fff" stroke-width="36"/><path d="M195 211v278l366-139z" fill="#fff"/></g>
|
||||||
|
<g id="meta-mute" stroke="#fff" stroke-width="5"><path stroke-linejoin="round" style="paint-order:fill" fill="none" d="m21.989 47.699 17.4 15.051V13.769L22.235 28.606H6v19.093z" transform="matrix(5.3513 0 0 5.3723 -.73 -1.542)"/><path d="m48.652 50.27 20.743-24.299M69.395 50.27 48.652 25.971" stroke-linecap="round" transform="matrix(5.3513 0 0 5.3723 -.73 -1.542)"/></g>
|
||||||
|
<g id="waterfall-continuous"><g stroke="#fff" stroke-width="8"><path d="M5 40A35 35 0 0 1 26.606 7.664a35 35 0 0 1 38.143 7.587" fill="none"/><path d="m68.284 11.716 2.828 9.9-9.899-2.829z" fill="#fff"/></g><path d="m48.008 48.144 2.816 8.624h9.035L45.075 14h-9.739L20.141 56.768h8.976l2.875-8.624zm-2.405-7.333H34.456l5.573-16.72z" fill="#fff" aria-label="A"/><g stroke="#fff" stroke-width="8"><path d="M75 40a35 35 0 0 1-21.606 32.336 35 35 0 0 1-38.143-7.587" fill="none"/><path d="m11.716 68.284-2.828-9.9 9.899 2.829z" fill="#fff"/></g></g>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 15 KiB |