> ## Documentation Index
> Fetch the complete documentation index at: https://www.worldmonitor.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Energy, Fuel & Aviation Collection Pipelines

> US States Grid Disruption Clock, EIA and NYMEX oil-freshness schedules, national retail fuel-price and SGE precious-metals methodology, airport delay and NOTAM closure monitoring, and the Aviation Intelligence panel.

Part of the [Data Sources](https://www.worldmonitor.app/docs/data-sources.md) catalog, which indexes every intelligence domain and its key providers.

***

## US States Grid Disruption Clock

The opt-in US States Grid Disruption Clock covers California, Tennessee, Texas, Florida, New York, and Washington. It shows current warnings, customers reported without electricity, and the change between comparable observations. State totals include only reporting providers. A missing state report is unavailable, not zero. The number of customers tracked within each state is unknown. A decrease is a net change in the reported total. It cannot identify individual restorations, prove a connection to a warning, or predict an outage duration.

| Observation | Source and coverage |
| - | - |
| Customers without power | State aggregates from [MassOutage (massoutage.com)](https://massoutage.com/), refreshed by WorldMonitor every ten minutes. WorldMonitor calculates reported changes from stored snapshots. [Attribution and upstream terms](https://massoutage.com/terms) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
| California grid notices | Active emergency notices for the California ISO operating footprint. [California ISO](https://www.caiso.com/emergency-notifications) |
| Severe weather | Selected actual National Weather Service warnings in each state. The affected areas can cover only part of the state. [NWS](https://www.weather.gov/documentation/services-web-api) |
| Tennessee grid notices | Consult [TVA releases](https://www.tva.com/news-media/releases/press-release-archive) for operator announcements. The clock monitors weather warnings automatically in Tennessee. |
| Texas, Florida, New York, and Washington grid notices | Operator notices are not monitored. These states show reported outage totals and NWS warnings; an absence of weather warnings does not establish normal grid-operator conditions. |

The clock retains up to 24 hours of observations. Missing, delayed, or stale outage reports interrupt the comparison. Earlier notices can remain visible after they drop out of the active list.

## Oil, Fuel & Precious-Metals Freshness and Methodology

Brent and WTI weekly EIA spot averages use the week-ending date. An observation becomes stale after the next week's scheduled EIA release plus a 24-hour grace for the daily cache refresh. The regular release is Wednesday at 10:30 ET; a US federal holiday on the Monday through Wednesday of that week moves it to Thursday at 12:00 ET, computed for any year. Two checked-in overrides record EIA's departures from that rule, including the December 29, 2025 release at 17:00 ET. All other weeks use the rule. Futures quotes use a 30-minute bound during trading. NYMEX daily breaks, weekends, and the checked-in CME energy holiday sessions for 2026–2027 extend that bound through 30 minutes after trading resumes. A quote already more than 30 minutes old at the halt remains stale. The CME table needs updates when CME revises its calendar; unlisted dates use regular hours, and exceptional closures are not detected automatically.

EIA release times follow EIA's published rule, so that schedule does not expire. The Weekly Petroleum Status Report releases Wednesday at 10:30 ET, and a US federal holiday on the Monday through Wednesday of that week moves it to Thursday at 12:00 ET. Only publisher departures from the rule are listed as overrides. The CME table is hand-maintained and fail-closed. After its last listed entry, freshness continues using regular NYMEX session hours, so an unlisted holiday can mark a still-current price stale and expiry never grants indefinite freshness. The daily **Oil Calendar Horizon** GitHub Actions workflow fails when the CME table is within 45 days of its last date (or expired). It also fetches EIA's schedule page and fails when the computed release for any week disagrees with the published table, or when the page layout stops parsing. A failed EIA fetch is a warning, not a failure. Run `node scripts/check-oil-calendar-horizon.mts` to inspect the same status locally. An ISO timestamp argument injects the clock and skips the EIA fetch. CME’s last listed date is December 24, 2027.

The dashboard recalculates oil-price freshness from the observation time. The REST `get-energy-prices` response can retain a previous `stale` flag for four hours in the CDN, plus one hour of stale-while-revalidate. During upstream errors, stale-if-error can extend this further. MCP recalculates oil-price freshness at each tool call, separately from cache transport freshness.

The fuel-price seed preserves local prices and uses shared FX rates to produce
USD/l for the table. Spain uses the publication date in Minetur's station feed
when the date is within the last seven days. The EU Weekly Oil Bulletin provides
a fallback. Mexico's CRE feed supplies no date.
For each grade, WorldMonitor displays the day it first recorded the current
national average in MXN/l. A change in the exchange rate leaves that date intact.

Norway's date is
the first day of the observed month; its monthly data has roughly three weeks
of publication lag and expires 65 days after month end. Gasvaktin is an MIT-licensed
community project scraping company websites, not an official national average.
Its ordinary pump prices exclude discounts; the observation date is the last
Git revision changing the station file (content is fetched at that exact revision),
with a 14-day freshness limit. This date records a file change, not verification
of every station. Credit: Gasvaktin and its contributors.

Canada's row comes from Statistics Canada table 18-10-0001-01 (Statistics
Canada Open Licence): the monthly Canada average for regular unleaded at
self-service stations, dated to the first of the month and expired 65 days
after month end. StatCan publishes diesel for 18 cities but not for Canada, so
the row has no diesel price. StatCan refuses Railway's egress, so the request
falls back to proxy exits, as the StatCan economic seeder does. Western
Australia's row is the median of FuelWatch station prices (CC BY 4.0) on the
newest day, labelled for that state only, with a 5-day freshness limit.

Taiwan's derived national survey mean weights the published, rounded mainland,
offshore and mountain group averages by their report counts. Missing groups with zero reports
are excluded. The observation date is the survey week end, with a 21-day
freshness limit. oil111 data is licensed by the site's open-data declaration
(free reuse with attribution). SSB data is
[CC BY 4.0](https://www.ssb.no/en/diverse/lisens); USD prices are derived by FX
conversion from SSB's published NOK prices. These three optional sources are
omitted on failure or expiry and recorded in the snapshot's source health
metadata. A newly published snapshot never carries old country rows forward. When
the publish gate rejects a run, for example because a required source failed,
nothing is published and the existing snapshot's 10-day cache TTL is reset, so
repeated rejections can keep that snapshot and its rows serving beyond 10 days
after publication. County ranges and LPG
cylinder prices are outside the current petrol/diesel schema.

The physical precious-metals comparison uses the latest valid SGE PM print and
retains its own trade date through weekends and exchange holidays. SHAU is CNY
per gram. SHAG is CNY per kilogram. The daily seed reads the existing COMEX
`GC=F`/`SI=F` and `shared:fx-rates:v1` snapshots; it does not make a second
COMEX or FX request. The conversion is `CNY per gram × CNY/USD × 31.1034768`.
The stored payload includes both raw legs, their observation times, the FX
input, and the derived USD-per-troy-ounce and percentage premiums.

***

## Airport Delay & NOTAM Monitoring

Airports across the Americas, Europe, Asia-Pacific, MENA, and Africa are continuously monitored for delays, ground stops, and closures through independent data sources:

| Source | Coverage | Method |
| - | - | - |
| **FAA ASWS** | 14 US hub airports | Real-time XML feed from `nasstatus.faa.gov` — ground delays, ground stops, arrival/departure delays, closures |
| **AviationStack** | 56 international airports | Last 100 flights per airport — cancellation rate and average delay duration computed from flight records |
| **ICAO NOTAM API** | Watchlist airports worldwide | Real-time NOTAM (Notice to Air Missions) query for active airport/airspace closures |
| **FAA NMS-API** | Same NOTAM watchlist | Worldwide FAA NOTAM store (domestic, FDC, international, military), kept current by daily bulk loads and delta pulls |

**NOTAM closure detection** targets MENA airports where airspace closures due to military activity or security events carry strategic significance. Detection uses two methods: ICAO Q-code matching (aerodrome/airspace closure codes `FA`, `AH`, `AL`, `AW`, `AC`, `AM` combined with closure qualifiers `LC`, `AS`, `AU`, `XX`, `AW`) and free-text regex scanning for closure keywords (`AD CLSD`, `AIRPORT CLOSED`, `AIRSPACE CLOSED`). When a NOTAM closure is detected, it overrides any existing delay alert for that airport with a `severe/closure` classification.

Only a JSON array from ICAO counts as a NOTAM observation, and an empty array is a valid "no closures" result. An HTTP error, an HTML page, malformed or non-array JSON, a timeout, or ICAO's `Reach call limit` quota response leaves `seed-meta:aviation:notam` untouched. The seeder keeps renewing the last closure list while it is within the 240-minute `notamClosures` health budget. After that, `/api/health` reports the feed stale, the seeder stops renewing the list, and it expires at its 2-hour TTL instead of being shown as current.

**FAA NOTAM Management Service.** `scripts/seed-notam-nms.mjs` authenticates with OAuth2 client credentials (`NOTAM_KEY`, `NOTAM_SECRET`). It loads each NOTAM classification in bulk at most once per 24 hours and pulls the changes since its last cursor on every other run, in line with the FAA limits of one bulk load per day and one delta pull per three minutes. Cancelled and replaced NOTAMs are removed, and so are NOTAMs past their end time. Two keys come out of the store:

* `aviation:notam:nms:closures:v1`: aerodromes closed in full (Q-code `FALC` or an `AD CLSD` text) and aerodromes with restrictions in force. A closure with exceptions, such as `AD CLSD EXC MEDEVAC`, or one limited to IFR or night traffic counts as a restriction, and `AD CLSD TO ALL TFC` with no exception counts as closed. A closure to one traffic class that leaves airline service running, such as `AD AP CLSD TO NON SKED TRANSIENT GA ACFT EXC 24HR PPR` at Los Angeles, Boston or Las Vegas, is not counted. The aviation seeder merges this list ahead of ICAO when it is under 30 minutes old, filters it to the same watchlist, and attributes each alert to the source that reported it. The watchlist is the seeder's airport list in `scripts/seed-aviation.mjs`, the only list the Railway container ships, so it has to include every airport in `src/config/airports.ts`; a test enforces that. Once NMS has published in production, an NMS list that is missing or older than 30 minutes makes the aviation seeder keep its last-good closures instead of publishing ICAO alone, so closures do not vanish and re-alert when NMS recovers.
* The same closures key also lists every aerodrome the FAA feed carries a NOTAM for, of any kind (`coveredIcaos`). The list is rebuilt on each bulk load and grows with each delta pull, so after a deploy that introduces it, the list is complete only from the next daily bulk load. A monitored airport that has no FAA or AviationStack delay data used to show **Coverage unavailable**. When the feed carries NOTAMs for that airport and none closes or restricts it, the airport now shows **Open**, with severity normal and source NOTAM. The label makes no claim about delays. An airport the feed carries nothing for still shows Coverage unavailable, because the absence of a closure NOTAM there says nothing. So does an airport whose flight information region (FIR) has an airspace closure in effect: a country-wide closure is filed against the FIR, not against each airport.
* `aviation:notam:airspace:v1`: temporary flight restrictions and prohibited, restricted, danger, military and reserved areas, plus closed airspace, that are in effect now or start within 24 hours. They are drawn by the **Aviation** map layer (deck.gl renderer only). NOTAMs that give a radius are drawn as circles around the Q-line centre the radius is measured from, and radii above 250 NM are drawn as markers. NOTAMs that give a polygon are drawn as polygons. An FDC TFR without a radius, whose shape is described only in the text, is drawn as a marker.

Both keys have a 20-minute health budget. The Railway service `seed-notam-nms` runs every 5 minutes against the FAA production host. The seeder runs a dry run against any non-production host, because staging serves FAA test NOTAMs. With `NMS_ALLOW_NONPROD_WRITE=1` a non-production run publishes the map layer only, never closures or the activation marker.

**Severity thresholds**: Average delay ≥15min or ≥15% delayed flights = minor; ≥30min/30% = moderate; ≥45min/45% = major; ≥60min/60% = severe. Cancellation rate ≥80% with ≥10 flights = closure. AviationStack rates count each operating flight once (a codeshare row counts for the flight it names when that flight has no other row) and read departure times in the airport's own time zone. They are measured over flights already due (scheduled departure passed, or departed) when at least 10 are in the sample. With fewer due flights, the returned flights are the day's later departures, so they can show a closure (at least 80% cancelled) but no lower cancellation level: advance cancellations of later flights are schedule changes, not disruption. All results are cached for 30 minutes in Redis. When no AviationStack API key is configured, the system generates probabilistic simulated delays for demonstration — rush-hour windows and high-traffic airports receive higher delay probability.

## Aviation Intelligence Panel

The Airline Intel panel provides a comprehensive 6-tab aviation monitoring interface covering operations, flights, carriers, tracking, news, and pricing:

| Tab | Data | Source |
| - | - | - |
| **Ops** | Delay percentages, cancellation rates, NOTAM closures, ground stops | FAA ASWS, AviationStack, ICAO |
| **Flights** | Specific flight status with scheduled vs estimated times, divert/cancel flags | AviationStack flight lookup |
| **Airlines** | Per-carrier statistics at monitored airports (delay %, cancellation rate, flight count) | AviationStack carrier ops |
| **Tracking** | Live ADS-B aircraft positions with altitude, ground speed, heading, on-ground status | adsb.lol (ODbL) / Wingbits / OpenSky |
| **News** | 20+ recent aviation news items with entity matching (airlines, airports, aircraft types) | RSS feeds tagged `aviation` |
| **Prices** | Multi-carrier price quotes with cabin selection (Economy/Business), currency conversion, non-stop filters | Travelpayouts cached data |

**Aviation watchlist** — users customize a personal list of airports (IATA codes), airlines, and routes persisted to `localStorage` as `aviation:watchlist:v1`. The default watchlist includes IST, ESB, SAW, LHR, FRA, CDG airports and TK airline, reflecting common monitoring needs. The watchlist drives which airports appear in the Ops tab and which carriers are tracked in the Airlines tab.

Delay severity is classified across five levels — normal, minor, moderate, major, severe — with each alert carrying a severity source (FAA, Eurocontrol, or computed from flight data). The panel auto-refreshes on a 5-minute polling cycle with a live indicator badge, and uses a `SmartPollLoop` with adaptive backoff on failures.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.