diff --git a/auto_rx/auto_rx.py b/auto_rx/auto_rx.py index 901550f..1aaf41a 100644 --- a/auto_rx/auto_rx.py +++ b/auto_rx/auto_rx.py @@ -976,7 +976,7 @@ def main(): else: _ozi_host = None - if config["ozi_port"]: + if config["ozi_enabled"]: # Causes port to be set to None which disables the export. _ozi_port = config["ozi_port"] else: _ozi_port = None @@ -986,7 +986,7 @@ def main(): else: _summary_host = None - if config["payload_summary_port"]: + if config["payload_summary_enabled"]: # Causes port to be set to None which disables the export. _summary_port = config["payload_summary_port"] else: _summary_port = None diff --git a/auto_rx/autorx/config.py b/auto_rx/autorx/config.py index 37e3093..1f88919 100644 --- a/auto_rx/autorx/config.py +++ b/auto_rx/autorx/config.py @@ -771,6 +771,17 @@ def read_auto_rx_config(filename, no_sdr_test=False): logging.debug("Config - Missing rotator azimuth_only option (new in v1.7.5), using default (False)") auto_rx_config['rotator_azimuth_only'] = False + # 1.7.5 - Targeted summary output + try: + auto_rx_config["ozi_host"] = config.get("oziplotter", "ozi_host") + auto_rx_config["payload_summary_host"] = config.get("oziplotter", "payload_summary_host") + except: + logging.warning( + "Config - Missing ozi_host or payload_summary_host option (new in v1.7.5), using default ()" + ) + auto_rx_config["ozi_host"] = "" + auto_rx_config["payload_summary_host"] = "" + # If we are being called as part of a unit test, just return the config now. if no_sdr_test: return auto_rx_config