返回顶部
f

flight-tracker

Flight tracking and scheduling. Track live flights in real-time by region, callsign, or airport using OpenSky Network. Search flight schedules between airports. Use for queries like "What flights are over Switzerland?" or "When do flights from Hamburg arrive in Zurich?" or "Track flight SWR123".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
3,605
下载量
5
收藏
概述
安装方式
版本历史

flight-tracker

# Flight Tracker Track flights in real-time and search flight schedules between airports. ## Quick Commands ### Live Flight Tracking #### Flights over a region (bounding box) ```bash # Switzerland (lat_min, lat_max, lon_min, lon_max) curl -s "https://opensky-network.org/api/states/all?lamin=45.8&lomin=5.9&lamax=47.8&lomax=10.5" | \ jq -r '.states[] | "\(.[1]) - \(.[2]) | Alt: \(.[7])m | Speed: \(.[9])m/s | From: \(.[5])"' ``` ### Track specific flight by callsign ```bash curl -s "https://opensky-network.org/api/states/all?icao24=<aircraft-icao>" | jq . ``` #### Get live flight info ```bash # Use helper script python3 scripts/track.py --region switzerland python3 scripts/track.py --callsign SWR123 python3 scripts/track.py --airport LSZH ``` ### Flight Schedules Search for scheduled flights between airports: ```bash # Basic usage (shows search links) python3 scripts/schedule.py HAM ZRH # With specific date python3 scripts/schedule.py --from HAM --to ZRH --date 2026-01-15 # With API key (optional, for detailed results) export AVIATIONSTACK_API_KEY='your_key_here' python3 scripts/schedule.py HAM ZRH ``` **Without API key:** Shows helpful search links (Google Flights, FlightRadar24, airline websites) **With API key:** Fetches live schedule data with departure/arrival times, terminals, gates, and status Free API key available at [aviationstack.com](https://aviationstack.com) (100 requests/month) ## Regions Pre-defined regions in the script: - **switzerland**: Swiss airspace - **europe**: European airspace (rough bounds) - **zurich**: Area around Zurich - **geneva**: Area around Geneva ## API Endpoints ### All states ```bash GET https://opensky-network.org/api/states/all ``` Optional parameters: - `lamin`, `lomin`, `lamax`, `lomax`: Bounding box - `icao24`: Specific aircraft (hex code) - `time`: Unix timestamp (0 = now) ### Response Format Each flight state contains: ``` [0] icao24 - Aircraft ICAO24 address (hex) [1] callsign - Flight callsign (e.g., "SWR123") [2] origin_country - Country name [5] origin - Origin airport (if available) [7] baro_altitude - Altitude in meters [9] velocity - Speed in m/s [10] heading - Direction in degrees [11] vertical_rate - Climb/descent rate in m/s ``` ## Airport Codes ### ICAO (for live tracking) - **LSZH** - Zurich - **LSGG** - Geneva - **LSZB** - Bern - **LSZA** - Lugano - **LFSB** - Basel-Mulhouse (EuroAirport) ### IATA (for schedules) - **ZRH** - Zurich - **GVA** - Geneva - **BSL** - Basel - **BRN** - Bern - **LUG** - Lugano - **HAM** - Hamburg - **FRA** - Frankfurt - **MUC** - Munich - **BER** - Berlin - **LHR** - London Heathrow - **CDG** - Paris CDG - **AMS** - Amsterdam ## Notes ### Live Tracking (OpenSky Network) - Free API with rate limits (anonymous: 400/day) - Real-time data from ADS-B receivers worldwide - No API key required - Data updated every 10 seconds - Create account for higher limits and historical data ### Flight Schedules (AviationStack) - Optional API key for detailed schedule data - Free tier: 100 requests/month - Without API: provides search links to Google Flights, FlightRadar24, etc. - Supports date-specific queries

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 flight-tracker-1776386110 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 flight-tracker-1776386110 技能

通过命令行安装

skillhub install flight-tracker-1776386110

下载 Zip 包

⬇ 下载 flight-tracker v1.1.0

文件大小: 6.8 KB | 发布时间: 2026-4-17 15:28

v1.1.0 最新 2026-4-17 15:28
**Added flight schedule search feature**

- Introduced scripts/schedule.py for searching scheduled flights between airports.
- Now supports both live flight tracking and schedule lookup via AviationStack API (optional, with API key).
- SKILL.md updated: covers both live tracking (OpenSky) and flight schedule features (AviationStack), explains API usage, and clarifies supported airport code formats.
- Added helpful fallback: without an API key, schedule search provides direct links to external flight search engines.
- Project description updated to reflect new scheduling capabilities.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部