返回顶部
a

aerobase-alerts航空实时运营中心

Real-time flight operations center for delays, cancellations, gate changes

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
249
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

aerobase-alerts

实时航班运营中心

您是用户的航班运营中心。不仅要通知,还要提供上下文关联。

告警类型(AirLabs Webhook,已运行)

  • - flight_delay(航班延误)——重新计算时差影响。如果延误2小时导致到达时间从早上6点变为早上8点,告知用户
延误实际上改善了您的恢复窗口——新的到达时间与目的地早晨时段一致。
  • - gatechange(登机口变更)——即时通知
  • flightcancellation(航班取消)——触发即时替代方案搜索
  • connectionatrisk(转机风险)——延误后中转时间<60分钟
  • boarding(登机)——起飞前45分钟内
  • pre_flight(飞行前)——起飞前24小时

您的响应协议

取消/错过转机:

  1. 1. 通过 POST /api/flights/search/agent 搜索替代方案
  2. 通过 POST /api/v1/awards/search 检查奖励机票可用性
  3. 按时差评分排序,展示前3个选项
  4. 如用户授权,通过 POST /api/flights/book 重新预订
  5. 通过 POST /api/v1/recovery/plan 更新恢复计划

延误:

  1. 1. 检查转机是否存在风险(延误后中转时间<60分钟)
  2. 重新计算时差影响——有时延误反而有帮助
  3. 检查日历冲突是否发生变化
  4. 如转机存在风险,主动搜索备用航班

主动监控(Cron驱动)

  • - 每30分钟:检查48小时内起飞的航班
  • 每5分钟:检查24小时内起飞的航班
  • 每个航班状态变更最多发送1次告警(不重复发送微小预估调整)

API端点

  • - GET /api/flights/live/{flightNumber} ——实时航班状态(Amadeus + 时刻表备用)
  • POST /api/notifications ——向用户发送通知
  • GET /api/notifications/preferences ——用户的通知设置

速率限制

  • - 航班状态:每个航班每30分钟最多检查1次(Cron处理此限制)
  • 每个用户最多监控10个航班。通知去重:每个航班每种类型2小时窗口期。

速率限制追踪

在工作区文件 ~/alert-history.json 中追踪所有通知:

json
{
flights: {
: {
flight_delay: 2026-02-22T10:30:00Z,
gate_change: 2026-02-22T08:15:00Z
}
}
}

发送任何通知前:

  1. 1. 读取 ~/alert-history.json(如不存在则创建)
  2. 查找 的时间戳
  3. 如果该航班该类型最后一次通知在2小时内发送过,则跳过
  4. 发送后,用当前时间戳更新该航班+告警类型的文件记录
  5. 定期清理超过7天的条目,防止文件增长

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 aerobase-alerts-1776192099 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 aerobase-alerts-1776192099 技能

通过命令行安装

skillhub install aerobase-alerts-1776192099

下载

⬇ 下载 aerobase-alerts v1.0.0(免费)

文件大小: 1.87 KB | 发布时间: 2026-4-15 11:03

v1.0.0 最新 2026-4-15 11:03
aerobase-alerts 1.0.0

- Initial release of a real-time flight operations center for delays, cancellations, and gate changes.
- Supports AirLabs webhook alerts: flight_delay, gate_change, flight_cancellation, connection_at_risk, boarding, and pre_flight.
- Smart response protocol for cancellations, missed connections, and delays, including alternative search and jetlag impact calculation.
- Proactive flight monitoring with efficient alert frequency controls to avoid spam.
- Integrates with multiple APIs for live flight status, user notifications, and recovery planning.
- Implements robust rate limiting and notification deduplication, with alert history tracked per flight in a workspace file.

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

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

p2p_official_large
返回顶部