全球航班实时追踪 · 免费开源
简介
基于 OpenSky Network 的免费实时航班追踪工具,支持按区域、呼号或机场监控航班动态,无需 API 密钥即可使用
原始描述
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".
通过你的 Agent 添加
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
flight-tracker 是一款专注航空数据查询的实用工具,提供两大核心功能模块:
-
实时航班追踪:基于 OpenSky Network 的 ADS-B 全球接收网络,无需 API Key 即可查询指定空域内的实时航班状态,包括位置、高度、速度、航向等。支持按地理边界框(如瑞士全境、苏黎世周边)、特定呼号(如 SWR123)或机场代码筛选。
-
航班时刻表查询:支持查询两机场间的计划航班,提供两种模式——无 API Key 时生成 Google Flights、FlightRadar24 等权威平台的搜索链接;配置 AviationStack API Key(免费 100 次/月)后可直接获取详细的起降时间、航站楼、登机口及航班状态。
显著优点
- 零门槛使用:OpenSky Network 免费接口无需注册,开箱即用;文档提供完善的机场代码对照表(ICAO/IATA)
- 数据源权威:OpenSky Network 是全球最大的开放 ADS-B 聚合平台,被学术界和航空业广泛引用
- 轻量无依赖:仅使用 Python 标准库,无第三方包风险,部署简单
- 瑞士本地化:内置瑞士主要机场(ZRH、GVA、BSL 等)和欧洲空域预配置
潜在缺点与局限性
- API 限制严格:OpenSky 匿名用户限 400 次/天,AviationStack 免费版仅 100 次/月,高频查询需付费升级
- 数据延迟约 10 秒:ADS-B 实时性受接收网络密度影响,非官方航管精度
- 时刻表功能依赖外部服务:核心接口 AviationStack 使用 HTTP 明文传输(RISK-001),API Key 存在被截获风险
- 无历史数据:免费版不支持过往航班查询
适合人群
- 航空爱好者、飞友(spotter)追踪特定机型或航线
- 商务人士快速确认接机航班实时动态
- 开发者学习 ADS-B 数据应用和航空 API 集成
- 瑞士/欧洲本地用户查询区域内航班
常规风险
- 网络可用性风险:功能完全依赖外部 API,服务中断或限流将直接影响使用
- 隐私合规:需配置环境变量
AVIATIONSTACK_API_KEY,建议了解供应商隐私政策 - HTTP 传输风险:AviationStack 接口未加密,建议在可信网络环境使用或仅使用无 Key 模式(搜索链接)
技能正文
name: flight-tracker description: 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". homepage: https://openskynetwork.github.io/opensky-api/
Flight Tracker
Track flights in real-time and search flight schedules between airports.
Quick Commands
Live Flight Tracking
Flights over a region (bounding box)
# 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
curl -s "https://opensky-network.org/api/states/all?icao24=<aircraft-icao>" | jq .
Get live flight info
# 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:
# 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 (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
GET https://opensky-network.org/api/states/all
Optional parameters:
lamin,lomin,lamax,lomax: Bounding boxicao24: 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
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。