From b87623cf6601848ff726e23bb2b6bf4e2b50b9a1 Mon Sep 17 00:00:00 2001 From: Mitch Ross Date: Sat, 7 Feb 2026 15:06:58 -0500 Subject: [PATCH] Update weather_sat.py --- utils/weather_sat.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/utils/weather_sat.py b/utils/weather_sat.py index cd97f41..2d5a7f4 100644 --- a/utils/weather_sat.py +++ b/utils/weather_sat.py @@ -297,7 +297,7 @@ class WeatherSatDecoder: # Auto-detect serial by querying rtl_eeprom, fall back to string index. source_id = self._resolve_device_id(device_index) - cmd = [ + satdump_cmd = [ 'satdump', 'live', sat_info['pipeline'], str(self._capture_output_dir), @@ -308,6 +308,14 @@ class WeatherSatDecoder: '--source_id', source_id, ] + # Wrap with stdbuf to disable output buffering. + # SatDump (C++) fully buffers stdout when writing to a pipe, + # which prevents our reader from seeing any output until exit. + if shutil.which('stdbuf'): + cmd = ['stdbuf', '-o0', '-e0'] + satdump_cmd + else: + cmd = satdump_cmd + if bias_t: cmd.append('--bias')