Skip to content

Commit

Permalink
Merge pull request #805 from projecthorus/testing
Browse files Browse the repository at this point in the history
v1.7.0 Release
  • Loading branch information
darksidelemm authored Oct 1, 2023
2 parents dbd5ed7 + 5550bf6 commit 18ab0a2
Show file tree
Hide file tree
Showing 21 changed files with 1,076 additions and 106 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ auto_rx/imet54mod
auto_rx/mXXmod
auto_rx/mp3h1mod
auto_rx/mts01mod
auto_rx/weathex301d

m10
meisei100mod
Expand Down Expand Up @@ -82,3 +83,4 @@ rs_module/rs41mod
rs_module/rs92mod
scan/reset_usb
scan/rs_detect
weathex/weathex301d
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SUBDIRS := \
mk2a \
scan \
utils \
weathex \

all: $(SUBDIRS)

Expand Down
10 changes: 7 additions & 3 deletions auto_rx/auto_rx.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def start_scanner():
ppm=autorx.sdr_list[_device_idx]["ppm"],
bias=autorx.sdr_list[_device_idx]["bias"],
save_detection_audio=config["save_detection_audio"],
wideband_sondes=config["wideband_sondes"],
temporary_block_list=temporary_block_list,
temporary_block_time=config["temporary_block_time"],
)
Expand Down Expand Up @@ -272,7 +273,8 @@ def start_decoder(freq, sonde_type, continuous=False):
rs92_ephemeris=rs92_ephemeris,
rs41_drift_tweak=config["rs41_drift_tweak"],
experimental_decoder=config["experimental_decoders"][_exp_sonde_type],
save_raw_hex=config["save_raw_hex"]
save_raw_hex=config["save_raw_hex"],
wideband_sondes=config["wideband_sondes"]
)
autorx.sdr_list[_device_idx]["task"] = autorx.task_list[freq]["task"]

Expand Down Expand Up @@ -651,6 +653,7 @@ def telemetry_filter(telemetry):
or ("LMS" in telemetry["type"])
or ("IMET" in telemetry["type"])
or ("MTS01" in telemetry["type"])
or ("WXR" in telemetry["type"])
):
return "OK"
else:
Expand Down Expand Up @@ -818,8 +821,8 @@ def main():
logging.getLogger("geventwebsocket").setLevel(logging.ERROR)

# Check all the RS utilities exist.
logging.debug("Checking if utils exist")
if not check_rs_utils():
logging.debug("Checking if required binaries exist")
if not check_rs_utils(config):
sys.exit(1)

# Attempt to read in config file
Expand All @@ -832,6 +835,7 @@ def main():
config = _temp_cfg
autorx.sdr_list = config["sdr_settings"]


# Apply any logging changes based on configuration file settings.
if config["save_system_log"]:
# Enable system logging.
Expand Down
2 changes: 1 addition & 1 deletion auto_rx/autorx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.6.2"
__version__ = "1.7.0"


# Global Variables
Expand Down
45 changes: 30 additions & 15 deletions auto_rx/autorx/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def read_auto_rx_config(filename, no_sdr_test=False):
"sondehub_enabled": True,
"sondehub_upload_rate": 30,
# "sondehub_contact_email": "[email protected]" # Commented out to ensure a warning message is shown on startup
"wideband_sondes": False, # Wideband sonde detection / decoding
}

try:
Expand Down Expand Up @@ -455,27 +456,30 @@ def read_auto_rx_config(filename, no_sdr_test=False):
"MEISEI": True,
"MTS01": False, # Until we test it
"MRZ": False, # .... except for the MRZ, until we know it works.
"WXR301": True, # No fsk_demod chain for this yet.
"UDP": False,
}

auto_rx_config["decoder_spacing_limit"] = config.getint(
"advanced", "decoder_spacing_limit"
)
auto_rx_config["experimental_decoders"]["RS41"] = config.getboolean(
"advanced", "rs41_experimental"
)
auto_rx_config["experimental_decoders"]["RS92"] = config.getboolean(
"advanced", "rs92_experimental"
)
auto_rx_config["experimental_decoders"]["M10"] = config.getboolean(
"advanced", "m10_experimental"
)
auto_rx_config["experimental_decoders"]["DFM"] = config.getboolean(
"advanced", "dfm_experimental"
)
auto_rx_config["experimental_decoders"]["LMS6"] = config.getboolean(
"advanced", "lms6-400_experimental"
)
# Use 'experimental' (not really, anymore!) decoders for RS41, RS92, M10, DFM and LMS6-400.
# Don't allow overriding to the FM based decoders.
# auto_rx_config["experimental_decoders"]["RS41"] = config.getboolean(
# "advanced", "rs41_experimental"
# )
# auto_rx_config["experimental_decoders"]["RS92"] = config.getboolean(
# "advanced", "rs92_experimental"
# )
# auto_rx_config["experimental_decoders"]["M10"] = config.getboolean(
# "advanced", "m10_experimental"
# )
# auto_rx_config["experimental_decoders"]["DFM"] = config.getboolean(
# "advanced", "dfm_experimental"
# )
# auto_rx_config["experimental_decoders"]["LMS6"] = config.getboolean(
# "advanced", "lms6-400_experimental"
# )

try:
auto_rx_config["web_control"] = config.getboolean("web", "web_control")
Expand Down Expand Up @@ -760,6 +764,17 @@ def read_auto_rx_config(filename, no_sdr_test=False):
auto_rx_config["email_encrypted_sonde_notifications"] = True


# 1.6.3 - Weathex WXR301d support
try:
auto_rx_config["wideband_sondes"] = config.getboolean(
"advanced", "wideband_sondes"
)
except:
logging.warning(
"Config - Missing wideband_sondes option (new in v1.6.3), using default (False)"
)
auto_rx_config["wideband_sondes"] = False

# If we are being called as part of a unit test, just return the config now.
if no_sdr_test:
return auto_rx_config
Expand Down
Loading

0 comments on commit 18ab0a2

Please sign in to comment.