← 返回
未分类 Key

Planefilter

Aviation flight lookup — query aircraft type, equipment changes, and confidence scoring for any flight number. Use when: looking up flight aircraft, checking...
{"answer":"航班查询——查询任意航班号的机型、设备变更及置信度评分。适用于查询航班机型、检查……"}
iml1s
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 412
下载
💾 0
安装
1
版本
#latest

概述

PlaneFilter — Flight Aircraft Type Lookup

Look up aircraft type, equipment changes, and confidence scoring for any flight

by querying multiple aviation data sources (OpenSky, AeroDataBox, AirLabs) and

merging results with weighted confidence scoring.

Prerequisites

Required

Optional (more data sources)

  • AIRLABS_KEY — Get from AirLabs (free: 150 req/month)

Commands

1. Search Flight

node {baseDir}/scripts/search_flight.js --flight=CI101 [--date=2026-03-22]

Required env: RAPIDAPI_KEY

Optional env: AIRLABS_KEY (adds another data source for higher confidence)

2. Health Check

node {baseDir}/scripts/health_check.js

Verifies all API keys are set and reachable. Shows which data sources are available.

Output Format

search_flight.js outputs JSON to stdout:

{
  "flightNumber": "CI101",
  "date": "2026-03-22",
  "airline": "China Airlines",
  "origin": "NRT",
  "destination": "TPE",
  "aircraftType": "A333",
  "registration": "B-18311",
  "confidence": 0.6,
  "equipmentChange": null,
  "typeDistribution": { "A333": 1 },
  "sources": ["aerodatabox"]
}

Output Interpretation

When presenting results to the user, follow these rules:

FieldHow to Interpret
------------------------
confidence ≥ 0.8High confidence — present the aircraft type directly
confidence 0.5–0.8Medium — mention "likely" or "most probable"
confidence < 0.5Low — warn that data is uncertain, show typeDistribution
equipmentChange not null⚠️ Important — Highlight this! The actual aircraft differs from the scheduled one. Show from, to, and changeType (upgrade/downgrade/lateral)
typeDistributionShows agreement across sources. Multiple entries = sources disagree
sources emptyNo data found — suggest trying a different date

Note on aircraft type codes: The script automatically normalizes model names (e.g. "Airbus A330-300" → "A333") and filters invalid typecodes. In rare cases, an unrecognized model name may pass through as-is.

How It Works

  1. Parallel query — Hits OpenSky (free, no key) + AeroDataBox (RapidAPI) + AirLabs (optional) simultaneously
  2. Confidence scoring — Weighted votes from each source (AeroDataBox 0.9, OpenSky 0.7, AirLabs 0.6)
  3. Equipment change detection — If scheduled aircraft ≠ actual aircraft, classifies as Upgrade/Downgrade/Lateral

Troubleshooting

ErrorCauseFix
-------------------
RAPIDAPI_KEY not setMissing env varexport RAPIDAPI_KEY=your_key or set in ~/.openclaw/openclaw.json
403 from AeroDataBoxInvalid or expired keyCheck your RapidAPI subscription
No flight data foundFlight not in any databaseTry with a different date or a major airline flight

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 05:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 243,978
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,312
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,217 📥 266,653