ops-tle-fetcher
TLE Fetcher
Fetches the latest TLE (Two-Line Element set) for a spacecraft from space-track.org. Spacecraft name/alias resolution is delegated to ops-spacecraft-catalogue (invoked as a subprocess); if that lookup doesn't resolve, the raw name is used as a fuzzy space-track.org OBJECT_NAME search term instead. Use this for quick, local TLE lookups from any agent working in this repo. The output feeds directly into ops-orbit-propagator's --tle-line1/--tle-line2/--spacecraft-name flags (and into ops-orbit-propagator/ops-orbit-plotter's --spacecraft flag, which invokes this script the same way). Unlike ops-orbit-propagator, this skill has no offline mode — it always calls space-track.org and requires SPACETRACK_USER/SPACETRACK_PASS in .env.
Usage
Run from the repo root:
uv run skills/ops-tle-fetcher/scripts/fetch_tle.py --spacecraft ISS
Flags
| Flag | Description |
|---|---|
--spacecraft NAME (required) |
Full or partial spacecraft name or alias, e.g. ISS, Sentinel-6, PRETTY, GOES-18. |