kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Porównaj commity
2 Commity
30b1e18763
...
45a9a862f1
Autor | SHA1 | Data |
---|---|---|
Mark Jessop | 45a9a862f1 | |
Mark Jessop | a96c60d7ee |
|
@ -244,7 +244,7 @@ def start_decoder(freq, sonde_type, continuous=False):
|
|||
_exp_sonde_type = sonde_type
|
||||
|
||||
if continuous:
|
||||
_timeout = 0
|
||||
_timeout = 3600*6 # 6 hours before a 'continuous' decoder gets restarted automatically.
|
||||
else:
|
||||
_timeout = config["rx_timeout"]
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ from queue import Queue
|
|||
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
|
||||
# PATCH - Small changes, or minor feature additions.
|
||||
|
||||
__version__ = "1.7.1"
|
||||
__version__ = "1.7.2-beta1"
|
||||
|
||||
|
||||
# Global Variables
|
||||
|
|
|
@ -71,7 +71,7 @@ def test_sdr(
|
|||
f"{ss_iq_path} "
|
||||
f"-f {check_freq} "
|
||||
f"-s 48000 "
|
||||
f"-r {sdr_hostname} -q {sdr_port} -n 48000 - > /dev/null 2> /dev/null"
|
||||
f"-r {sdr_hostname} -q {sdr_port} -n 48000 - > /dev/null"
|
||||
)
|
||||
|
||||
logging.debug(f"SpyServer - Testing using command: {_cmd}")
|
||||
|
@ -85,6 +85,12 @@ def test_sdr(
|
|||
logging.critical(
|
||||
f"SpyServer ({sdr_hostname}:{sdr_port}) - ss_iq call failed with return code {e.returncode}."
|
||||
)
|
||||
# Look at the error output in a bit more details.
|
||||
_output = e.output.decode("ascii")
|
||||
if "outside currently allowed range" in _output:
|
||||
logging.critical(
|
||||
f"SpyServer ({sdr_hostname}:{sdr_port}) - SpyServer does not cover required frequency {check_freq}, please check your SpyServer configuration!"
|
||||
)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
Ładowanie…
Reference in New Issue