[feat](trx-core): add periodic TLE refresh from CelesTrak
Fetch fresh weather satellite TLEs from CelesTrak on startup and then once every 24 hours. The dynamic TLE store is checked first in tle_for_satellite(), falling back to the existing hardcoded TLEs when the fetch has not yet completed or fails. - Add global TLE_STORE (RwLock<HashMap<norad_id, (line1, line2)>>) - Add parse_tle_response() to parse 3-line TLE format - Add refresh_tles_from_celestrak() async fetch + store update - Add spawn_tle_refresh_task() for startup + daily refresh loop - Refactor tle_for_satellite() into norad_id lookup + store check - Spawn refresh task in trx-server alongside wxsat decoder tasks - Add reqwest (rustls-tls) dependency to trx-core https://claude.ai/code/session_01RB19i93dnemDYLcfrhyhqc Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -794,6 +794,9 @@ fn spawn_rig_audio_stack(
|
||||
}
|
||||
}));
|
||||
|
||||
// Start periodic TLE refresh from CelesTrak (on start + once/day).
|
||||
trx_core::geo::spawn_tle_refresh_task();
|
||||
|
||||
// Spawn weather satellite APT decoder task
|
||||
let wxsat_pcm_rx = pcm_tx.subscribe();
|
||||
let wxsat_state_rx = state_rx.clone();
|
||||
|
||||
Reference in New Issue
Block a user