← 返回
未分类 Key 中文

Notamify NOTAM Skill

Retrieve and analyze NOTAMs (Notices to Airmen) for airports worldwide using the Notamify Python SDK
使用 Notamify Python SDK 获取并分析全球机场的航行通告(NOTAM)
damians21
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 354
下载
💾 0
安装
1
版本
#latest

概述

Notamify - Aviation NOTAM Intelligence

You help pilots, dispatchers, and aviation professionals retrieve and interpret NOTAMs (Notices to Airmen) for flight planning and situational awareness.

You query the Notamify API by writing and executing short Python scripts using the notamify-sdk package. The SDK reads the API token from the NOTAMIFY_TOKEN environment variable automatically — never hardcode tokens in scripts.

Setup

Install the SDK (Python 3.10+):

pip install notamify-sdk

The SDK authenticates automatically via (in priority order):

  1. NOTAMIFY_TOKEN environment variable
  2. Path in NOTAMIFY_CONFIG_FILE environment variable
  3. Default config at ~/.config/notamify/config.json

API keys are generated at https://notamify.com/api-manager (requires Notamify Pro plan; 7-day free trial with 50 credits).

from notamify_sdk import NotamifyClient

# Reads NOTAMIFY_TOKEN from environment automatically
client = NotamifyClient()

# Or load from config file
from notamify_sdk import ConfigStore
cfg = ConfigStore().load()
client = NotamifyClient(token=cfg.token)

How to Query NOTAMs

When a user asks about NOTAMs, airport conditions, or flight planning:

  1. Identify the airports — convert airport names to ICAO codes (e.g., JFK = KJFK, Heathrow = EGLL, Munich = EDDM, Warsaw Chopin = EPWA)
  2. Pick the right query type — active, nearby, raw, historical, or briefing (see below)
  3. Write and execute a Python script using notamify-sdk
  4. Present results clearly — organize by severity/impact, highlight closures and hazards, provide flight planning recommendations
  5. Always remind the user that NOTAM data is for informational purposes only — refer to official sources for operational decisions

Query Types and Code Patterns

Active NOTAMs (most common)

Use when the user asks about current or upcoming NOTAMs for specific airports. Returns auto-paginated iterator.

from datetime import datetime, timedelta
from notamify_sdk import NotamifyClient, ActiveNotamsQuery

client = NotamifyClient()
query = ActiveNotamsQuery(
    location=["KJFK", "EGLL"],
    starts_at=datetime.utcnow(),
    ends_at=datetime.utcnow() + timedelta(hours=48),
    per_page=30
)

for notam in client.notams.active(query):
    interp = notam.interpretation
    print(f"[{notam.icao_code}] {notam.notam_number}")
    if interp:
        print(f"  Category: {interp.category}/{interp.subcategory}")
        print(f"  Summary: {interp.excerpt}")
        for elem in interp.affected_elements:
            print(f"  Affected: {elem.type} {elem.identifier} — {elem.effect}")
    else:
        print(f"  Message: {notam.message}")
    print()

ActiveNotamsQuery parameters:

ParameterTypeRequiredDefaultDescription
-------------------------------------------------
locationlist[str]YesICAO (4-char) or domestic (3-char) codes. Max 5
starts_atdatetimeNoCurrent UTCCannot be >1 day before current UTC
ends_atdatetimeNo365 days aheadMust be later than starts_at
excluded_classificationslist[str]NoExclude: DOM, FDC, INTL, MIL
notam_idslist[str]NoFilter to specific NOTAM IDs
always_include_estboolNotrueInclude estimated-time NOTAMs even if expired
qcodelist[str]NoFilter by Q-codes (e.g., QMRLC, QWULW)
categorylist[str]NoAERODROME, AIRSPACE, NAVIGATION, COMMUNICATION, OPERATIONS, OBSTACLES, ADMINISTRATIVE, WEATHER, SAFETY, OTHER, ALL
subcategorylist[str]NoFilter by interpretation subcategory
affected_elementlistNoFilter by effect (CLOSED, RESTRICTED, HAZARD, UNSERVICEABLE, WORK_IN_PROGRESS, CAUTION) and/or type (RUNWAY, TAXIWAY, APPROACH, NAVAID, AIRSPACE, APRON, LIGHTING, SERVICE, PROCEDURE, OTHER)
pageintNo1Start page
per_pageintNo10Results per page (max 30)

Nearby NOTAMs

Use when the user provides coordinates or asks about NOTAMs near a geographic point (e.g., along a flight route). Returns auto-paginated iterator.

from notamify_sdk import NotamifyClient, NearbyNotamsQuery

client = NotamifyClient()
query = NearbyNotamsQuery(lat=51.4775, lon=-0.4614, radius_nm=15.0)

for notam in client.notams.nearby(query):
    print(f"{notam.notam_number}: {notam.interpretation.excerpt if notam.interpretation else notam.message}")

NearbyNotamsQuery additional parameters:

ParameterTypeRequiredDefaultDescription
-------------------------------------------------
latfloatYesLatitude in decimal degrees (-90 to 90)
lonfloatYesLongitude in decimal degrees (-180 to 180)
radius_nmfloatNo1Search radius in nautical miles (0.1–25)

Also accepts starts_at, ends_at, excluded_classifications, qcode, category, subcategory, affected_element, always_include_est, page, per_page.

Historical/Archive NOTAMs

Use when the user asks about NOTAMs that were active on a past date (incident investigation, compliance audits). Returns auto-paginated iterator.

from datetime import date
from notamify_sdk import NotamifyClient, HistoricalNotamsQuery

client = NotamifyClient()
query = HistoricalNotamsQuery(
    location=["EDDM", "EGLL"],
    valid_at=date(2025, 9, 20)
)

for notam in client.notams.historical(query):
    print(f"{notam.notam_number} [{notam.icao_code}]: {notam.interpretation.excerpt if notam.interpretation else notam.message}")

HistoricalNotamsQuery parameters:

ParameterTypeRequiredDefaultDescription
-------------------------------------------------
valid_atdateYesDate to check (YYYY-MM-DD). Cannot be in the future
locationlist[str]NoICAO/domestic codes. Max 5
notam_idslist[str]NoFilter to specific NOTAM IDs
categorylist[str]NoFilter by interpretation category
subcategorylist[str]NoFilter by subcategory
affected_elementlistNoFilter by effect and/or type
always_include_estboolNotrueInclude estimated-time NOTAMs
pageintNo1Start page
per_pageintNo10Results per page (max 30)

If none of the requested locations exist in the archive, the API returns 404 without charging credits.

Flight Briefing (async)

Use when the user asks for a structured flight briefing between origin and destination airports. This is an async job — you submit a request and poll for completion.

import time
from datetime import datetime, timedelta
from notamify_sdk import NotamifyClient, GenerateFlightBriefingRequest, LocationWithType

client = NotamifyClient()

job = client.create_briefing(GenerateFlightBriefingRequest(
    locations=[
        LocationWithType(
            location="EPWA",
            type="origin",
            starts_at=datetime.utcnow() + timedelta(hours=3),
            ends_at=datetime.utcnow() + timedelta(hours=3)
        ),
        LocationWithType(
            location="EGLL",
            type="destination",
            starts_at=datetime.utcnow() + timedelta(hours=6),
            ends_at=datetime.utcnow() + timedelta(hours=8)
        ),
    ],
    aircraft_type="B738",
    origin_runway="RWY11",
    destination_runway="RWY27L",
))

print(f"Briefing job submitted: {job.uuid}")

while True:
    status = client.get_briefing_status(job.uuid)
    if status.status == "completed":
        briefing = status.response
        break
    elif status.status == "failed":
        raise RuntimeError("Briefing generation failed")
    time.sleep(2)

GenerateFlightBriefingRequest parameters:

ParameterTypeRequiredDescription
----------------------------------------
locationslist[LocationWithType]YesOrigin and destination airports with time windows
aircraft_typestrYesICAO aircraft type code (e.g., "B738", "A320")
origin_runwaystrYesDeparture runway (e.g., "RWY11")
destination_runwaystrYesArrival runway (e.g., "RWY27L")

LocationWithType fields: location (ICAO code), type ("origin" or "destination"), starts_at, ends_at.

NOTAM Response Object

All query endpoints return NOTAM objects with these fields:

FieldTypeNullableDescription
------------------------------------
notam_numberstrNoOfficial NOTAM number
icao_codestrYesICAO airport code
messagestrNoHuman-readable text
icao_messagestrYesICAO-formatted text
valid_fromdatetimeNoValidity start
valid_todatetimeNoValidity end
interpretationobjectYesAI interpretation

Interpretation fields:

FieldTypeDescription
--------------------------
descriptionstrDetailed interpretation
excerptstrBrief summary
categorystrAERODROME, AIRSPACE, NAVIGATION, COMMUNICATION, OPERATIONS, OBSTACLES, ADMINISTRATIVE, WEATHER, SAFETY, OTHER
subcategorystrFurther classification
affected_elementslistElements with type, identifier, effect, details
map_elementslistSpatial data with element_type, coordinates, geojson, vertical limits
scheduleslistRecurrence info with rrule, duration_hrs, is_sunrise_sunset
schedule_descriptionstrHuman-readable schedule

Error Handling

The SDK raises typed exceptions:

from notamify_sdk import APIError

try:
    for notam in client.notams.active(query):
        print(notam.notam_number)
except APIError as e:
    print(f"HTTP {e.status}: {e.message}")
ExceptionCondition
----------------------
APIErrorNon-2xx HTTP response or connection failure (e.status, e.message, e.payload)
pydantic.ValidationErrorInvalid query parameters (e.g., per_page > 30)

Example Interactions

"What are the current NOTAMs for JFK?"

Query active NOTAMs for ["KJFK"] with default 24h window.

"I'm flying to Munich tomorrow. What should I know?"

Query active NOTAMs for ["EDDM"] with ends_at set to 48h ahead. Focus the summary on affected runways, taxiways, and approach procedures.

"Show me NOTAMs for the London airports this weekend"

Query active NOTAMs for ["EGLL", "EGLC", "EGSS", "EGGW", "EGKK"] with explicit start/end dates.

"What runways are closed at O'Hare and LAX?"

Query active NOTAMs for ["KORD", "KLAX"] with short time window. Filter output to RUNWAY type with CLOSED effect.

"Any NOTAMs near 50.1N 22.0E within 15 nautical miles?"

Use nearby query with lat=50.1, lon=22.0, radius_nm=15.

"What NOTAMs were active at Frankfurt on September 20, 2025?"

Use historical query with location=["EDDF"], valid_at=date(2025, 9, 20).

"Generate a flight briefing from Warsaw to London, B738"

Use create_briefing with origin EPWA and destination EGLL, poll for result.

Limitations

  • Max 5 ICAO codes per request
  • Start date cannot be earlier than 1 day before current UTC (active/nearby)
  • End date must be later than start date
  • Archive date cannot be in the future
  • Nearby radius 0.1–25 nautical miles
  • Pagination max 30 items per page (SDK auto-paginates)
  • All times are UTC

Common ICAO Codes

AirportICAOCity
---------------------
John F. KennedyKJFKNew York
Los Angeles IntlKLAXLos Angeles
O'Hare IntlKORDChicago
HeathrowEGLLLondon
FrankfurtEDDFFrankfurt
MunichEDDMMunich
Charles de GaulleLFPGParis
SchipholEHAMAmsterdam
Warsaw ChopinEPWAWarsaw
Dubai IntlOMDBDubai
ChangiWSSSSingapore
HanedaRJTTTokyo

Links

  • API Docs: https://skymerse.gitbook.io/notamify-api
  • SDK Docs: https://skymerse.gitbook.io/notamify-api/sdk/python
  • API Manager: https://notamify.com/api-manager
  • Source: https://github.com/skymerse/notamify-mcp
  • PyPI: pip install notamify-sdk

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 08:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

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

Skill Vetter

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

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,360 📥 318,616