From a2bd0e27f99495c68a8cd55772c31f24bbd6d7ff Mon Sep 17 00:00:00 2001 From: James Smith Date: Thu, 19 Mar 2026 23:52:14 +0000 Subject: [PATCH] Fix weather sat handoff: remove defunct METEOR-M2, fire change event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove 'METEOR-M2' (NORAD 40069) from WEATHER_SAT_KEYS — it has no entry in WEATHER_SATELLITES and no dropdown option, so the Capture button was silently scheduling against the wrong satellite - Dispatch a 'change' event after setting satSelect.value in preSelect() and startPass() so any UI listeners (frequency display, mode info) update correctly when the satellite is set programmatically Co-Authored-By: Claude Sonnet 4.6 --- static/js/modes/weather-satellite.js | 6 +++++- templates/satellite_dashboard.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/modes/weather-satellite.js b/static/js/modes/weather-satellite.js index 20adc73..e5fc916 100644 --- a/static/js/modes/weather-satellite.js +++ b/static/js/modes/weather-satellite.js @@ -332,7 +332,10 @@ const WeatherSat = (function() { */ function preSelect(satellite) { const satSelect = document.getElementById('weatherSatSelect'); - if (satSelect) satSelect.value = satellite; + if (satSelect) { + satSelect.value = satellite; + satSelect.dispatchEvent(new Event('change')); + } } /** @@ -342,6 +345,7 @@ const WeatherSat = (function() { const satSelect = document.getElementById('weatherSatSelect'); if (satSelect) { satSelect.value = satellite; + satSelect.dispatchEvent(new Event('change')); } start(); } diff --git a/templates/satellite_dashboard.html b/templates/satellite_dashboard.html index e260197..3622ec6 100644 --- a/templates/satellite_dashboard.html +++ b/templates/satellite_dashboard.html @@ -2194,7 +2194,7 @@ // Satellites that can be handed off to the weather-satellite capture mode const WEATHER_SAT_KEYS = new Set([ - 'METEOR-M2', 'METEOR-M2-3', 'METEOR-M2-4' + 'METEOR-M2-3', 'METEOR-M2-4' ]); function renderPassList() {