kopia lustrzana https://github.com/projecthorus/horus-gui
Merge branch 'master' of github.com:projecthorus/horus-gui
commit
e43631db85
|
@ -72,14 +72,14 @@ $ source venv/bin/activate
|
|||
(venv) $ pip install pip -U (Optional - this updates pip)
|
||||
```
|
||||
|
||||
If not using a venv, you may need to replace `pip` with `pip3`, and `python` with `python3` below to ensure you are using Python3. Older linux distributions will likely have both Python 2.7 and Python 3 installed - this software only supports Python 3.
|
||||
If not using a venv, you may need to replace `pip` with `pip3`, and `python` with `python3` below to ensure you are using Python3. Older linux distributions will likely have both Python 2.7 and Python 3 installed - this software only supports Python 3. On linux distros you may need to install `python3-venv`.
|
||||
|
||||
### Install Python Dependencies
|
||||
```console
|
||||
$ pip install -r requirements.txt
|
||||
```
|
||||
|
||||
NOTE: If you get errors relating to pyaudio when trying to install into a venv, make sure that portaudio is installed (`libportaudio-dev` under Linux distros, or `portaudio` under Macports), and then install pyaudio pointing to the portaudio lib by running:
|
||||
NOTE: Under linux based distros, you may also need to install `python3-distutils` and `python-setuptools`. If you get errors relating to pyaudio when trying to install into a venv, make sure that portaudio is installed (`libportaudio-dev` or `portaudio19-dev` under Linux distros, or `portaudio` under Macports), and then install pyaudio pointing to the portaudio lib by running:
|
||||
```
|
||||
(Linux) $ pip install --global-option='build_ext' --global-option='-I/usr/include' --global-option='-L/usr/lib' pyaudio
|
||||
(OSX) $ pip install --global-option='build_ext' --global-option='-I/opt/local/include' --global-option='-L/opt/local/lib' pyaudio
|
||||
|
@ -124,4 +124,4 @@ $ . venv/bin/activate (if using a venv)
|
|||
$ pip install horusdemodlib --upgrade
|
||||
```
|
||||
|
||||
You should then be OK to run horusgui. Configuration settings will be reset when the version number of horus-gui is incremented, until I settle on on a configuration parameter set.
|
||||
You should then be OK to run horusgui. Configuration settings will be reset when the version number of horus-gui is incremented, until I settle on on a configuration parameter set.
|
||||
|
|
|
@ -741,7 +741,11 @@ def handle_new_packet(frame):
|
|||
if widgets["horusUploadSelector"].isChecked():
|
||||
_udp_port = int(widgets["horusUDPEntry"].text())
|
||||
# Add in SNR data
|
||||
_snr = float(widgets["snrLabel"].text())
|
||||
try:
|
||||
_snr = float(widgets["snrLabel"].text())
|
||||
except ValueError as e:
|
||||
logging.error(e)
|
||||
_snr = 0
|
||||
_decoded['snr'] = _snr
|
||||
|
||||
send_payload_summary(_decoded, port=_udp_port)
|
||||
|
|
Ładowanie…
Reference in New Issue