mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
fix: rewrite radiosonde station.cfg to match auto_rx v1.8+ format
The config format changed significantly: SDR settings moved to [sdr_1], [positioning] became [location], and many sections are now required. Also enable payload_summary UDP output so telemetry reaches our listener. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -90,46 +90,73 @@ def generate_station_cfg(
|
||||
os.makedirs(log_dir, exist_ok=True)
|
||||
cfg_path = os.path.join(cfg_dir, 'station.cfg')
|
||||
|
||||
# Minimal station.cfg that auto_rx needs
|
||||
# station.cfg matching radiosonde_auto_rx v1.8+ expected format
|
||||
# Use absolute paths since auto_rx runs with cwd set to its install dir
|
||||
cfg = f"""# Auto-generated by INTERCEPT for radiosonde_auto_rx
|
||||
|
||||
[sdr]
|
||||
sdr_type = RTLSDR
|
||||
sdr_quantity = 1
|
||||
|
||||
[sdr_1]
|
||||
device_idx = {device_index}
|
||||
ppm = {ppm}
|
||||
gain = {gain}
|
||||
bias = {str(bias_t)}
|
||||
|
||||
[search_params]
|
||||
min_freq = {freq_min}
|
||||
max_freq = {freq_max}
|
||||
rx_timeout = 180
|
||||
whitelist = []
|
||||
blacklist = []
|
||||
greylist = []
|
||||
only_scan = []
|
||||
never_scan = []
|
||||
always_scan = []
|
||||
|
||||
[sdr]
|
||||
sdr_type = rtlsdr
|
||||
rtlsdr_device_idx = {device_index}
|
||||
rtlsdr_gain = {gain}
|
||||
rtlsdr_ppm = {ppm}
|
||||
rtlsdr_bias = {str(bias_t).lower()}
|
||||
|
||||
[habitat]
|
||||
upload_enabled = False
|
||||
|
||||
[aprs]
|
||||
upload_enabled = False
|
||||
|
||||
[sondehub]
|
||||
upload_enabled = False
|
||||
|
||||
[positioning]
|
||||
[location]
|
||||
station_lat = 0.0
|
||||
station_lon = 0.0
|
||||
station_alt = 0.0
|
||||
|
||||
[habitat]
|
||||
uploader_callsign = INTERCEPT
|
||||
upload_listener_position = False
|
||||
|
||||
[sondehub]
|
||||
sondehub_enabled = False
|
||||
|
||||
[aprs]
|
||||
aprs_enabled = False
|
||||
|
||||
[oziplotter]
|
||||
ozi_enabled = False
|
||||
payload_summary_enabled = True
|
||||
payload_summary_host = 127.0.0.1
|
||||
payload_summary_port = {udp_port}
|
||||
|
||||
[email]
|
||||
email_enabled = False
|
||||
|
||||
[rotator]
|
||||
rotator_enabled = False
|
||||
|
||||
[logging]
|
||||
per_sonde_log = True
|
||||
log_directory = {log_dir}
|
||||
save_system_log = False
|
||||
enable_debug_logging = False
|
||||
|
||||
[advanced]
|
||||
[web]
|
||||
web_host = 127.0.0.1
|
||||
web_port = 0
|
||||
udp_broadcast_port = {udp_port}
|
||||
web_control = False
|
||||
|
||||
[debugging]
|
||||
save_detection_audio = False
|
||||
save_decode_audio = False
|
||||
save_decode_iq = False
|
||||
save_raw_hex = False
|
||||
|
||||
[advanced]
|
||||
synchronous_upload = True
|
||||
"""
|
||||
|
||||
with open(cfg_path, 'w') as f:
|
||||
|
||||
Reference in New Issue
Block a user