@dangahagan/weather-mcp 1.48.0 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +14 -12
  2. package/dist/config/cache.d.ts +3 -0
  3. package/dist/config/cache.d.ts.map +1 -1
  4. package/dist/config/cache.js +16 -0
  5. package/dist/config/cache.js.map +1 -1
  6. package/dist/config/tools.d.ts +4 -1
  7. package/dist/config/tools.d.ts.map +1 -1
  8. package/dist/config/tools.js +4 -1
  9. package/dist/config/tools.js.map +1 -1
  10. package/dist/handlers/currentConditionsHandler.d.ts +2 -1
  11. package/dist/handlers/currentConditionsHandler.d.ts.map +1 -1
  12. package/dist/handlers/currentConditionsHandler.js +41 -10
  13. package/dist/handlers/currentConditionsHandler.js.map +1 -1
  14. package/dist/handlers/droughtMonitorLine.d.ts +33 -0
  15. package/dist/handlers/droughtMonitorLine.d.ts.map +1 -0
  16. package/dist/handlers/droughtMonitorLine.js +80 -0
  17. package/dist/handlers/droughtMonitorLine.js.map +1 -0
  18. package/dist/handlers/weatherImageryHandler.d.ts +4 -3
  19. package/dist/handlers/weatherImageryHandler.d.ts.map +1 -1
  20. package/dist/handlers/weatherImageryHandler.js +113 -13
  21. package/dist/handlers/weatherImageryHandler.js.map +1 -1
  22. package/dist/server/weatherServer.d.ts.map +1 -1
  23. package/dist/server/weatherServer.js +7 -2
  24. package/dist/server/weatherServer.js.map +1 -1
  25. package/dist/services/basemap.d.ts +29 -3
  26. package/dist/services/basemap.d.ts.map +1 -1
  27. package/dist/services/basemap.js +47 -4
  28. package/dist/services/basemap.js.map +1 -1
  29. package/dist/services/gibs.d.ts +6 -0
  30. package/dist/services/gibs.d.ts.map +1 -1
  31. package/dist/services/gibs.js +7 -2
  32. package/dist/services/gibs.js.map +1 -1
  33. package/dist/services/usdm.d.ts +49 -0
  34. package/dist/services/usdm.d.ts.map +1 -0
  35. package/dist/services/usdm.js +201 -0
  36. package/dist/services/usdm.js.map +1 -0
  37. package/dist/types/imagery.d.ts +7 -4
  38. package/dist/types/imagery.d.ts.map +1 -1
  39. package/dist/types/usdm.d.ts +44 -0
  40. package/dist/types/usdm.d.ts.map +1 -0
  41. package/dist/types/usdm.js +16 -0
  42. package/dist/types/usdm.js.map +1 -0
  43. package/dist/utils/composite.d.ts +12 -0
  44. package/dist/utils/composite.d.ts.map +1 -1
  45. package/dist/utils/composite.js +41 -2
  46. package/dist/utils/composite.js.map +1 -1
  47. package/dist/utils/droughtMonitor.d.ts +69 -0
  48. package/dist/utils/droughtMonitor.d.ts.map +1 -0
  49. package/dist/utils/droughtMonitor.js +246 -0
  50. package/dist/utils/droughtMonitor.js.map +1 -0
  51. package/dist/utils/loggedFailure.d.ts +2 -2
  52. package/dist/utils/loggedFailure.js +2 -2
  53. package/dist/utils/serviceStatusCoverage.d.ts.map +1 -1
  54. package/dist/utils/serviceStatusCoverage.js +2 -1
  55. package/dist/utils/serviceStatusCoverage.js.map +1 -1
  56. package/package.json +1 -1
package/README.md CHANGED
@@ -3,12 +3,12 @@
3
3
  [![npm version](https://badge.fury.io/js/@dangahagan%2Fweather-mcp.svg)](https://www.npmjs.com/package/@dangahagan/weather-mcp)
4
4
  [![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.dgahagan/weather-mcp)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
- [![Tests](https://img.shields.io/badge/tests-8%2C329%20passing-brightgreen)](./docs/testing/TEST_SUITE_README.md)
6
+ [![Tests](https://img.shields.io/badge/tests-8%2C483%20passing-brightgreen)](./docs/testing/TEST_SUITE_README.md)
7
7
  [![Node](https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white)](https://nodejs.org)
8
8
 
9
9
  **Give your AI assistant real weather data — 18 tools, zero API keys, zero signup, zero cost.**
10
10
 
11
- Weather MCP is a [Model Context Protocol](https://modelcontextprotocol.io) server that connects AI assistants (Claude, Cursor, Cline, Zed, and any other MCP client) to live weather data: forecasts, current conditions, alerts, air quality, marine conditions, lightning, radar, rivers, wildfires, aviation weather, and 85+ years of historical weather. It's built entirely on free public data sources — NOAA, the NOAA Aviation Weather Center, the NOAA Storm Prediction Center, NOAA Tides & Currents (CO-OPS), the NOAA National Data Buoy Center, Open-Meteo, MET Norway, USGS, NIFC, NASA FIRMS, RainViewer, and Blitzortung.org — so there is nothing to sign up for and no key to paste in. (A few optional keys unlock extras — see [Optional API keys](#optional-api-keys) — but no tool ever requires one.)
11
+ Weather MCP is a [Model Context Protocol](https://modelcontextprotocol.io) server that connects AI assistants (Claude, Cursor, Cline, Zed, and any other MCP client) to live weather data: forecasts, current conditions, alerts, air quality, marine conditions, lightning, radar, rivers, wildfires, aviation weather, and 85+ years of historical weather. It's built entirely on free public data sources — NOAA, the NOAA Aviation Weather Center, the NOAA Storm Prediction Center, NOAA Tides & Currents (CO-OPS), the NOAA National Data Buoy Center, the US Drought Monitor, Open-Meteo, MET Norway, USGS, NIFC, NASA FIRMS, RainViewer, and Blitzortung.org — so there is nothing to sign up for and no key to paste in. (A few optional keys unlock extras — see [Optional API keys](#optional-api-keys) — but no tool ever requires one.)
12
12
 
13
13
  ```bash
14
14
  claude mcp add weather -- npx -y @dangahagan/weather-mcp@latest
@@ -58,7 +58,7 @@ Choose this one if you want:
58
58
 
59
59
  - **Genuinely free** — every data source is a free public API. No trial that expires, no credit card, no rate-limited "free tier" bait.
60
60
  - **No API keys** — install to first forecast in under a minute. Nothing to configure, nothing to leak into a repo. ([Four optional keys](#optional-api-keys) add extras if you want them; the default configuration needs none.)
61
- - **Fully open source** — MIT licensed, readable TypeScript, 8,329 tests. Audit it, fork it, fix it.
61
+ - **Fully open source** — MIT licensed, readable TypeScript, 8,483 tests. Audit it, fork it, fix it.
62
62
  - **Privacy-respecting** — your queries go directly from your machine to public weather APIs. No middleman server, and no telemetry unless you opt in.
63
63
  - **Breadth** — 18 tools covering weather, safety hazards (lightning, floods, wildfires), marine conditions, air quality, and historical data back to 1940. Most weather MCPs stop at forecasts.
64
64
 
@@ -71,14 +71,14 @@ All 18 tools, documented in detail in **[docs/TOOLS.md](./docs/TOOLS.md)**:
71
71
  | Tool | What it does | Coverage |
72
72
  |------|-------------|----------|
73
73
  | `get_forecast` | Daily/hourly forecasts up to 16 days by coordinates, saved location, or city name, plus a 2-hour, 15-minute precipitation nowcast in North America and Central Europe (`granularity="minutely"`) (NOAA publishes 7 days daily and ~6.5 days hourly in the US, and says so when you ask for more; `source="openmeteo"` reaches the full range); sunrise/sunset, UV, precipitation probability, optional climate-normals comparison, optional moon phase & twilight almanac, optional five-model agreement comparison; optional NWS forecast discussion (`include_discussion`); `include_solar` adds daily solar radiation (kWh/m², peak sun hours) and sunshine hours on both forecast paths; an automatic SPC convective outlook line at Marginal risk or above (absence is not an all-clear); automatic per-day heat-stress and frostbite lines on both the NOAA and Open-Meteo forecast paths; an automatic per-day precipitation-type line (snow, rain, freezing rain) on the Open-Meteo forecast path. When the National Weather Service has a life-threatening alert active for a point in the United States or an NWS-served territory, its warning is surfaced at the top of the response before the report — absence of the banner is not an all-clear, so call `get_alerts` for the authoritative answer | 🌍 Global |
74
- | `get_current_conditions` | Current weather: temperature, wind, humidity, pressure; NOAA station observations in the US (plus heat index/wind chill, snow depth, optional NOAA fire-weather indices), Open-Meteo model data elsewhere (with an optional computed Fosberg fire-weather index), or real airport station observations worldwide with `source="metar"` (the optional Fosberg index is then computed from the station's own observation). Always states the observation's age, and automatically falls back to a fresher nearby station when the nearest one has gone dark. In extreme conditions automatically adds frostbite time-to-onset (computed wind chill) or heat-stress context (estimated WBGT) When the National Weather Service has a life-threatening alert active for a point in the United States or an NWS-served territory, its warning is surfaced at the top of the response before the report — absence of the banner is not an all-clear, so call `get_alerts` for the authoritative answer | 🌍 Global |
74
+ | `get_current_conditions` | Current weather: temperature, wind, humidity, pressure; NOAA station observations in the US (plus heat index/wind chill, snow depth, optional NOAA fire-weather indices), Open-Meteo model data elsewhere (with an optional computed Fosberg fire-weather index), or real airport station observations worldwide with `source="metar"` (the optional Fosberg index is then computed from the station's own observation). With fire weather on, a point in a US county also gets its county's latest weekly US Drought Monitor category, on every source. Always states the observation's age, and automatically falls back to a fresher nearby station when the nearest one has gone dark. In extreme conditions automatically adds frostbite time-to-onset (computed wind chill) or heat-stress context (estimated WBGT) When the National Weather Service has a life-threatening alert active for a point in the United States or an NWS-served territory, its warning is surfaced at the top of the response before the report — absence of the banner is not an all-clear, so call `get_alerts` for the authoritative answer | 🌍 Global |
75
75
  | `get_alerts` | Active watches, warnings, and advisories sorted by severity; official national warnings for the US (NOAA), Canada (ECCC), 38 European countries (MeteoAlarm), India (NDMA SACHET), the Philippines (PAGASA), Indonesia (BMKG), and Japan (JMA) | 🇺🇸 🇨🇦 🇪🇺 🇮🇳 🇵🇭 🇮🇩 🇯🇵 |
76
76
  | `get_historical_weather` | Hourly/daily observations from 1940 to present; for US points and ranges up to 7 days, nearby NOAA SPC storm reports (tornado, wind, hail); an automatic heating / cooling degree-day totals line on the Open-Meteo archive output (base 65°F / 18°C) | 🌍 Global |
77
77
  | `get_weather_summary` | One-call overview combining current conditions, forecast, and alerts (optionally air quality and lightning); a life-threatening NWS alert is surfaced once above the whole summary, not once per section | 🌍 Global |
78
78
  | `search_location` | Geocode place names to coordinates ("Paris" → 48.85, 2.35) | 🌍 Global |
79
79
  | `get_air_quality` | AQI (US/European scales), pollutants, UV index, health guidance; current pollen levels for European locations (or worldwide with an optional key); optional day-grouped forecast up to 7 days with per-day peak AQI and UV | 🌍 Global |
80
80
  | `get_marine_conditions` | Wave height, swell, ocean currents, sea state on WMO Code Table 3700 (Douglas sea scale) with a severity marker and legend — includes Great Lakes and major US bays; forecast up to 16 days. Near US coasts and the Great Lakes, also the observed picture: tide predictions for the next 48 hours, the current water level and the nearest buoy observation (NOAA CO-OPS and NDBC; observed and preliminary, not for navigation) | 🌍 Global (observed tides, water levels and buoys: US coasts and Great Lakes) |
81
- | `get_weather_imagery` | Precipitation radar (static or 2-hour animated loops) + GOES satellite imagery; `composite: true` returns a finished radar map over a base map as an image | 🌍 Global |
81
+ | `get_weather_imagery` | Precipitation radar (static or 2-hour animated loops) + GOES satellite imagery; `composite: true` returns a finished radar or satellite map as an image | 🌍 Global |
82
82
  | `get_lightning_activity` | Real-time strike detection with 4-level proximity safety assessment | 🌍 Global |
83
83
  | `get_river_conditions` | US: NWPS gauge levels, flood stages, streamflow, rise/fall trends, forecast series. Great Britain: Environment Agency observed river levels against each gauge's published typical range. Elsewhere: GloFAS modeled discharge snapped to the nearest river channel, with ensemble forecast | 🌍 Global |
84
84
  | `get_wildfire_info` | US: named incidents with containment, size, and safety guidance from the nearest *uncontained* fire. Elsewhere: NASA FIRMS satellite heat detections (VIIRS, near real-time), clustered with distance, bearing, and intensity | 🌍 Global |
@@ -140,6 +140,7 @@ All free, all public, no authentication required:
140
140
  | [NOAA NDBC](https://www.ndbc.noaa.gov/) | Latest buoy and coastal-station observations: waves, wind, water and air temperature, pressure (the `get_marine_conditions` observed section) | Mainly US waters |
141
141
  | [Environment Agency](https://environment.data.gov.uk/flood-monitoring/doc/reference) | Observed river levels from the real-time gauge network, with published typical ranges — Open Government Licence v3 | Great Britain |
142
142
  | [RCC ACIS](https://www.rcc-acis.org/) | Daily record high/low temperatures | US |
143
+ | [US Drought Monitor](https://droughtmonitor.unl.edu/) (NDMC–UNL, USDA, NOAA) | Weekly county drought categories (the `include_fire_weather` drought line) | US counties |
143
144
  | [EUMETNET MeteoAlarm](https://meteoalarm.org/) | Official national weather warnings (38 European countries) | Europe |
144
145
  | [MSC GeoMet](https://api.weather.gc.ca/) | Environment and Climate Change Canada weather alerts | Canada |
145
146
  | [NDMA SACHET](https://sachet.ndma.gov.in/) | Official Indian warnings (CAP; polygon geometry served from a separate endpoint, so alerts are matched at country level) — public domain | India |
@@ -149,12 +150,12 @@ All free, all public, no authentication required:
149
150
  | [NIFC WFIGS](https://data-nifc.opendata.arcgis.com/) | Active wildfire perimeters and incidents | US |
150
151
  | [NASA FIRMS](https://firms.modaps.eosdis.nasa.gov/) | Satellite fire detections (VIIRS, near real-time) | Global |
151
152
  | [RainViewer](https://www.rainviewer.com/api.html) | Precipitation radar imagery | Global |
152
- | [NASA GIBS](https://www.earthdata.nasa.gov/engage/open-data-services-software/earthdata-developer-portal/gibs-api) | GOES GeoColor satellite imagery; base map for composited radar | Western Hemisphere (satellite), Global (base map) |
153
+ | [NASA GIBS](https://www.earthdata.nasa.gov/engage/open-data-services-software/earthdata-developer-portal/gibs-api) | GOES GeoColor satellite imagery; base map and outlines for composited maps | Western Hemisphere (satellite), Global (base map) |
153
154
  | [Blitzortung.org](https://www.blitzortung.org/) | Community lightning detection network | Global |
154
155
 
155
156
  Open-Meteo allows 10,000 requests/day for non-commercial use; caching keeps typical AI usage far below that. Please respect the upstream providers' fair-use terms.
156
157
 
157
- Composited radar maps (`get_weather_imagery` with `composite: true`) carry the acknowledgment NASA requests for GIBS imagery, alongside the RainViewer radar credit:
158
+ Composited maps (`get_weather_imagery` with `composite: true`) carry the acknowledgment NASA requests for GIBS imagery, alongside the RainViewer radar credit or the NOAA GOES satellite credit:
158
159
 
159
160
  > Imagery provided by services from NASA's Global Imagery Browse Services (GIBS), part of NASA's Earth Science Data and Information System (ESDIS).
160
161
 
@@ -251,7 +252,7 @@ Control which tools are exposed to reduce context overhead:
251
252
  **Context cost.** Every MCP client puts the `tools/list` result into model context on
252
253
  every turn, so the preset you choose is a standing cost on every request. Measured on
253
254
  the built server: `basic` **14,362 bytes** (~3.6k tokens), `standard` **23,183** (~5.8k),
254
- `full`/`all` **35,249** (~8.8k). It scales with the number of **tools**, not the number of
255
+ `full`/`all` **35,247** (~8.8k). It scales with the number of **tools**, not the number of
255
256
  data sources — adding Japan and India as alert authorities added zero tools and zero bytes.
256
257
 
257
258
  Each tool also carries a display title ("Weather Forecast") and MCP behaviour hints: 16 tools
@@ -296,7 +297,7 @@ Supported on `get_forecast`, `get_current_conditions`, and `get_historical_weath
296
297
  | `WEATHER_UNITS` | `imperial` | Default unit system: `imperial` or `metric` |
297
298
  | `WEATHER_TEMPERATURE_UNIT` … | — | Per-unit overrides: `_TEMPERATURE_`(F/C), `_WIND_SPEED_`(mph/kmh/ms/kn), `_PRECIPITATION_`(inch/mm), `_PRESSURE_`(inHg/hPa), `_DISTANCE_`(mi/km), `_TIME_FORMAT`(12h/24h) |
298
299
  | `CACHE_ENABLED` | `true` | Enable/disable response caching: `true`/`false`/`1`/`0`, any case. Any other value warns on stderr and leaves caching on |
299
- | `CACHE_MAX_SIZE` | `1000` | Max entries per cache (100–10000; a whole number — anything else warns and uses the default). When a cache is full, expired entries are dropped before the least recently used live one. The composite-map cache has its own fixed bound of 32 entries, the SPC storm-report cache 64, and base-map tiles above 32 KiB are used but not cached |
300
+ | `CACHE_MAX_SIZE` | `1000` | Max entries per cache (100–10000; a whole number — anything else warns and uses the default). When a cache is full, expired entries are dropped before the least recently used live one. The composite-map cache has its own fixed bound of 32 entries, the SPC storm-report cache 64, and GIBS base-map and satellite tiles above 32 KiB are used but not cached |
300
301
  | `API_TIMEOUT_MS` | `30000` | Upstream request timeout, end to end on a wall clock — connect, proxy and response body (5000–120000; a whole number — anything else warns and uses the default). A few clients keep a timeout of their own, such as geocoding at 10 s. The requests of one tool call share a budget of `max(API_TIMEOUT_MS, 55 s)`, so a tool that makes several never outlives a 60 s client; a request that starts after the budget is spent fails at once with that service's timed-out message. A direct connection (not through a proxy) that does not open within 5 s fails at 5 s; once connected, the request gets this timeout |
301
302
  | `HTTPS_PROXY` / `NO_PROXY` | — | Send the weather API requests through an HTTP CONNECT proxy (`ALL_PROXY` and lowercase names also work). Credentials go in the URL, percent-encoded: `http://user:p%40ss@proxy:3128` sends the password `p@ss`, so write a literal `%` as `%25` |
302
303
  | `WEATHER_LIGHTNING_PREWARM` | `true` | Subscribe saved locations' geohashes at startup so lightning has coverage before the first query, and keep them subscribed for as long as they stay saved. The saved list is re-read every 30 minutes: a location saved from another client is picked up, and a removed one stops being watched within about an hour, with no restart. Follows the lightning tool (`get_lightning_activity`), not `get_weather_summary`: no effect when the lightning tool is disabled, as it is in the default `basic` preset — use `ENABLED_TOOLS=basic,+lightning` to opt in. A saved location that does not fit the 50-subscription limit is skipped rather than displacing an area you queried. Set `false` (or `0`, any case) to skip pre-warm and the persistent MQTT connection it opens. An unrecognized value warns on stderr and pre-warms. |
@@ -395,7 +396,7 @@ Being honest about what free public data can and can't do:
395
396
  | Weather alerts | ✅ US, Canada, 38 European countries, India, the Philippines, Indonesia, and Japan keyless; ~45+ more territories with an optional key | NWS zone-level precision; Europe and India country-level; Philippines and Indonesia polygon-level; Japan warning-area level |
396
397
  | River conditions | ✅ (GloFAS modeled discharge; Environment Agency gauge observations in Great Britain) | Gauge observations + official flood stages via NWPS |
397
398
  | Wildfires | ✅ (FIRMS satellite detections) | Named incidents with acreage + containment via NIFC |
398
- | Fire weather | ✅ (computed Fosberg index + dryness context) | NOAA-published Haines, grassland, red-flag indices |
399
+ | Fire weather | ✅ (computed Fosberg index + dryness context) | NOAA-published Haines, grassland, red-flag indices; the county's weekly US Drought Monitor category on every source |
399
400
  | Aviation weather (TAF, METAR, SIGMETs, pilot reports) | ✅ (international SIGMETs as received by the Aviation Weather Center) | G-AIRMETs (contiguous US only) |
400
401
  | Pollen | 🇪🇺 Europe keyless (CAMS, grains/m³); elsewhere needs an optional key | Universal Pollen Index with `GOOGLE_POLLEN_API_KEY` |
401
402
 
@@ -408,6 +409,7 @@ Being honest about what free public data can and can't do:
408
409
  - Non-US wildfire results are **satellite heat detections, not managed incidents** — no fire names, sizes, or containment percentages exist in the data, detections can include industrial heat sources or agricultural burns, and a clear result is not an all-clear (cloud cover hides fires; small or new fires evade detection). The output frames all of this explicitly. Keyless data covers the last 24 hours; an optional free [`FIRMS_MAP_KEY`](https://firms.modaps.eosdis.nasa.gov/api/map_key/) unlocks targeted queries and up to 5 days of detection history (`day_range`).
409
410
  - Frostbite-risk and heat-stress (WBGT) lines, on current conditions (every source, including `source="metar"`) and on forecast days (both the NOAA and Open-Meteo paths), are **estimated by this server** from temperature, humidity, and wind — not agency-published ratings. Where NWS publishes a wind chill (a NOAA station on current conditions, the NWS grid on a NOAA forecast), the frostbite line bands off that published value; elsewhere the wind chill is computed with the standard 2001 North American model; the frostbite time bands are adapted from Environment Canada's published categories and the WBGT is the Australian Bureau of Meteorology's *simplified* estimate, which assumes full sun and light wind and so can overestimate in shade or overcast; the heat line says so when the reading is at night or under an overcast sky. Exertion thresholds also genuinely shift with acclimatization. Treat both as context, not as an occupational-safety determination.
410
411
  - Non-US fire weather is a **Fosberg Fire Weather Index computed by this server** from current model values — or, with `source="metar"`, from the station's reported values — not an agency-published rating — US locations get NOAA's own Haines/grassland/red-flag indices instead. The output says which it is and defers to national fire authorities; its category bands are a project heuristic.
412
+ - The US Drought Monitor line in the fire-weather section is **county level**: its percentages are shares of the county's area on the latest weekly map, not a reading at the point. It appears only where Census.gov returns a county and USDM publishes a statistic for it, and it is left out silently when either lookup fails, so its absence does not mean there is no drought.
411
413
  - Non-US river discharge is **modeled**, not observed, and has no official flood-stage thresholds — levels are shown relative to recent history and the forecast ensemble. The ~5km model grid means the reported channel may be a few km from the requested point; the output says so when it is.
412
414
  - Pollen is **Europe-only without a key**: it rides the CAMS European model on the air-quality endpoint, which returns real grains/m³ in Europe and nothing anywhere else. An optional [`GOOGLE_POLLEN_API_KEY`](#optional-api-keys) fills the gap for 65+ countries including the US, as a grass/tree/weed Universal Pollen Index (0–5) rather than per-species counts. Europe keeps the richer keyless data and never contacts Google.
413
415
  - Marine data has limited coastal accuracy and is **not suitable for navigation**.
@@ -422,7 +424,7 @@ npm run typecheck # Typecheck src/ and every test file
422
424
  npm run dev # Run in development mode
423
425
  npm test # Offline tests: unit + integration (what CI runs)
424
426
  npm run test:live # Live-network tests against the real upstreams, by hand
425
- npm test && npm run test:live # Run all 8,329 tests
427
+ npm test && npm run test:live # Run all 8,483 tests
426
428
  npm run test:coverage # Coverage report
427
429
  npm run audit # Dependency vulnerability scan
428
430
  ```
@@ -465,4 +467,4 @@ Contributions are welcome — this is a single-maintainer project and issues, PR
465
467
 
466
468
  ---
467
469
 
468
- *Weather data provided by NOAA (including the Aviation Weather Center), Open-Meteo, MET Norway, USGS, NIFC, RainViewer, and Blitzortung.org. This project is not affiliated with or endorsed by any of these providers. Do not rely on this server as your sole source for safety-critical decisions — always consult official warnings and forecasts.*
470
+ *Weather data provided by NOAA (including the Aviation Weather Center), the US Drought Monitor, Open-Meteo, MET Norway, USGS, NIFC, RainViewer, and Blitzortung.org. This project is not affiliated with or endorsed by any of these providers. Do not rely on this server as your sole source for safety-critical decisions — always consult official warnings and forecasts.*
@@ -40,6 +40,7 @@ export declare const CacheConfig: {
40
40
  readonly aviationStationInfo: number;
41
41
  readonly basemapTiles: number;
42
42
  readonly compositeImage: number;
43
+ readonly satelliteTiles: number;
43
44
  readonly reverseCountry: number;
44
45
  readonly firePerimeters: number;
45
46
  readonly firmsAreaQuery: number;
@@ -56,6 +57,8 @@ export declare const CacheConfig: {
56
57
  readonly waterLevelLatest: number;
57
58
  readonly ndbcLatestObs: number;
58
59
  readonly tropicalConeFile: number;
60
+ readonly countyLookup: number;
61
+ readonly droughtMonitor: number;
59
62
  };
60
63
  };
61
64
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/config/cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAgEH,eAAO,MAAM,WAAW;aAEtB,OAAO;aAIP,OAAO;aAIP,YAAY;aAOZ,0BAA0B;aAG1B,GAAG;iBAGD,eAAe;iBAIf,SAAS;iBAIT,QAAQ;iBAIR,QAAQ;iBAIR,iBAAiB;iBAKjB,iBAAiB;iBAIjB,mBAAmB;iBAInB,MAAM;iBAIN,gBAAgB;iBAIhB,cAAc;iBAKd,OAAO;iBAIP,UAAU;iBAIV,MAAM;iBAIN,aAAa;iBAMb,cAAc;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AOhB,eAAe;iBAKf,gBAAgB;iBAMhB,aAAa;iBAMb,gBAAgB;iBAMhB,YAAY;iBAKZ,cAAc;;CAER,CAAC;AAIX;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CA2BpE"}
@@ -184,6 +184,13 @@ export const CacheConfig = {
184
184
  // nowcast cadence is ~10 minutes, so a repeat call inside that window is
185
185
  // still looking at the same latest frame.
186
186
  compositeImage: 10 * MINUTE,
187
+ // NOAA GOES GeoColor tiles from NASA GIBS (get_weather_imagery satellite
188
+ // composite). The WMTS `default` time is the latest scan, republished about
189
+ // every 10 minutes; tiles carry `Cache-Control: no-store` and no
190
+ // `Last-Modified` (measured 2026-11-30), so the age is ours to bound. The
191
+ // satellite composite cache entry reuses this TTL: it is derived from
192
+ // these tiles and goes stale at the same rate.
193
+ satelliteTiles: 10 * MINUTE,
187
194
  // Nominatim reverse geocoding — country resolution only (zoom=3). Keyed
188
195
  // on coordinates rounded to ~1.1km; countries don't move, so once
189
196
  // resolved (including a "no country" open-ocean result) it's permanent.
@@ -287,6 +294,15 @@ export const CacheConfig = {
287
294
  // wiring refuses `Infinity`, and a storm's advisories turn over every 3-6
288
295
  // hours, so a day bounds memory without a refetch in practice.
289
296
  tropicalConeFile: 24 * HOUR,
297
+ // Census geographies county lookup: a coordinate (4 dp) to a county FIPS,
298
+ // or the not-covered `null`. County lines change rarely but do (Connecticut
299
+ // moved to planning regions in 2022), and `Infinity` is refused by the TTL
300
+ // wiring, so thirty days bounds a stale boundary.
301
+ countyLookup: 30 * DAY,
302
+ // US Drought Monitor county rows, keyed by FIPS and the UTC date. The map
303
+ // is weekly (released Thursday) and the key moves daily; six hours bounds
304
+ // how long a fresh release waits to be seen.
305
+ droughtMonitor: 6 * HOUR,
290
306
  },
291
307
  };
292
308
  const DATE_ONLY = /^(\d{4})-(\d{2})-(\d{2})$/;
@@ -1 +1 @@
1
- {"version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G,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC7C,uEAAuE;YACvE,sEAAsE;YACtE,KAAK,GAAG,GAAG,CAAC,cAAc,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC,WAAW,EAAE,KAAK,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC;gBAC1F,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,IAAI;gBACxC,CAAC,CAAC,GAAG,CAAC;QACV,CAAC;aAAM,CAAC;YACN,KAAK,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC;QACvC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,KAAK,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,WAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC1C,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;IAC/B,OAAO,GAAG,GAAG,WAAW,CAAC,0BAA0B;QACjD,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,gBAAgB;QAClC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC;AACrC,CAAC"}
@@ -74,7 +74,10 @@ export declare const PRESETS: Record<string, ("check_service_status" | "get_air_
74
74
  * Re-measured 2026-11-30 on the built dist with get_forecast's include_solar
75
75
  * (plan-solar-forecast): basic 14,362, standard 23,183, full 35,249. `full` raised from
76
76
  * 35,000 to 36,000 on purpose, leaving 751 bytes of headroom; `basic` stays inside 15,000
77
- * with 638.
77
+ * with 638. Re-measured 2026-11-30 on the built dist with get_weather_imagery's composite
78
+ * description naming satellite maps (plan-satellite-composite): basic 14,362 and standard
79
+ * 23,183 unchanged (neither preset carries the tool), full 35,247 (2 bytes shorter),
80
+ * leaving 753 bytes of headroom. Budgets unchanged.
78
81
  */
79
82
  export declare const TOOLS_LIST_BYTE_BUDGET: Record<'basic' | 'full', number>;
80
83
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/config/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE1E;;GAEG;AAKH,eAAO,MAAM,UAAU,YACrB,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,CACf,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,eAAe,CAAA;CAAE,CA2B3F,CAAC;AA+NF;;GAEG;AACH,cAAM,UAAU;IACd,OAAO,CAAC,YAAY,CAAgB;IAEpC,cASC;IAED;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEjC;IAED;;OAEG;IACH,eAAe,IAAI,QAAQ,EAAE,CAE5B;CACF;AAGD,eAAO,MAAM,UAAU,YAAmB,CAAC;AAG3C,eAAO,MAAM,OAAO,mbAAe,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAGnE,CAAC"}
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/config/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAE1E;;GAEG;AAKH,eAAO,MAAM,UAAU,YACrB,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,CACf,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,eAAe,CAAA;CAAE,CA2B3F,CAAC;AA+NF;;GAEG;AACH,cAAM,UAAU;IACd,OAAO,CAAC,YAAY,CAAgB;IAEpC,cASC;IAED;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAEjC;IAED;;OAEG;IACH,eAAe,IAAI,QAAQ,EAAE,CAE5B;CACF;AAGD,eAAO,MAAM,UAAU,YAAmB,CAAC;AAG3C,eAAO,MAAM,OAAO,mbAAe,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAGnE,CAAC"}
@@ -341,7 +341,10 @@ export const PRESETS = TOOL_PRESETS;
341
341
  * Re-measured 2026-11-30 on the built dist with get_forecast's include_solar
342
342
  * (plan-solar-forecast): basic 14,362, standard 23,183, full 35,249. `full` raised from
343
343
  * 35,000 to 36,000 on purpose, leaving 751 bytes of headroom; `basic` stays inside 15,000
344
- * with 638.
344
+ * with 638. Re-measured 2026-11-30 on the built dist with get_weather_imagery's composite
345
+ * description naming satellite maps (plan-satellite-composite): basic 14,362 and standard
346
+ * 23,183 unchanged (neither preset carries the tool), full 35,247 (2 bytes shorter),
347
+ * leaving 753 bytes of headroom. Budgets unchanged.
345
348
  */
346
349
  export const TOOLS_LIST_BYTE_BUDGET = {
347
350
  basic: 15000,
@@ -1 +1 @@
1
- {"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/config/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;GAEG;AACH,6EAA6E;AAC7E,2FAA2F;AAC3F,4EAA4E;AAC5E,4CAA4C;AAC5C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc;IACd,wBAAwB;IACxB,YAAY;IACZ,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;IACtB,iBAAiB;IACjB,iBAAiB;IACjB,uBAAuB;IACvB,qBAAqB;IACrB,wBAAwB;IACxB,sBAAsB;IACtB,mBAAmB;IACnB,sBAAsB;IACtB,eAAe;IACf,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;CACf,CAAC;AAIX;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAsE;IAC9F,YAAY,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE;IACrG,sBAAsB,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE;IACjH,UAAU,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI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,MAAM,OAAO,GAAG,YAAY,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAqC;IACtE,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,KAAK;CACZ,CAAC"}
@@ -6,9 +6,10 @@ import { OpenMeteoService } from '../services/openmeteo.js';
6
6
  import { NCEIService } from '../services/ncei.js';
7
7
  import { AcisService } from '../services/acis.js';
8
8
  import { AviationWeatherService } from '../services/aviationWeather.js';
9
+ import type { UsdmService } from '../services/usdm.js';
9
10
  import { LocationStore } from '../services/locationStore.js';
10
11
  import { GeocodingService } from '../services/geocoding.js';
11
- export declare function handleGetCurrentConditions(args: unknown, noaaService: NOAAService, openMeteoService: OpenMeteoService, nceiService: NCEIService, locationStore: LocationStore, geocodingService: GeocodingService, acisService?: AcisService, aviationWeatherService?: AviationWeatherService, criticalAlertBanner?: boolean): Promise<{
12
+ export declare function handleGetCurrentConditions(args: unknown, noaaService: NOAAService, openMeteoService: OpenMeteoService, nceiService: NCEIService, locationStore: LocationStore, geocodingService: GeocodingService, acisService?: AcisService, aviationWeatherService?: AviationWeatherService, criticalAlertBanner?: boolean, usdmService?: UsdmService): Promise<{
12
13
  content: Array<{
13
14
  type: string;
14
15
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"currentConditionsHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/currentConditionsHandler.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D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,EAAE,sBAAsB,EAC/C,mBAAmB,CAAC,EAAE,OAAO,EAC7B,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA6J7D"}
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import { resolveLocationAsync, prependLocationLine, prependCriticalAlertBanner } from '../utils/locationResolver.js';
5
5
  import { resolveCriticalAlertBanner, carryCriticalAlertBannerOnError } from './criticalAlertBanner.js';
6
+ import { resolveDroughtLine } from './droughtMonitorLine.js';
6
7
  import { validateOptionalBoolean } from '../utils/validation.js';
7
8
  import { convertToFahrenheit } from '../utils/temperatureConversion.js';
8
9
  import { resolveUnitPreferences } from '../utils/unitPreferences.js';
@@ -39,13 +40,30 @@ function insertNoteAfterHeading(text, note) {
39
40
  // The remainder starts with the original newline(s), so no trailing \n here.
40
41
  return `${text.slice(0, newline)}\n\n${note}${text.slice(newline)}`;
41
42
  }
42
- export async function handleGetCurrentConditions(args, noaaService, openMeteoService, nceiService, locationStore, geocodingService, acisService, aviationWeatherService, criticalAlertBanner) {
43
+ /**
44
+ * The drought line's one suffix, written once for every fire-weather section:
45
+ * `\n<line>\n` when the line resolved, nothing otherwise. Removing that exact
46
+ * suffix restores the output without it (GD8).
47
+ */
48
+ async function droughtLineSuffix(droughtLine) {
49
+ const line = droughtLine ? await droughtLine : '';
50
+ return line ? `\n${line}\n` : '';
51
+ }
52
+ export async function handleGetCurrentConditions(args, noaaService, openMeteoService, nceiService, locationStore, geocodingService, acisService, aviationWeatherService, criticalAlertBanner, usdmService) {
43
53
  // Resolve location from coordinates, a saved location name, or a geocoded city name
44
54
  const resolved = await resolveLocationAsync(args, locationStore, geocodingService);
45
55
  const { latitude, longitude } = resolved;
46
56
  const includeFireWeather = validateOptionalBoolean(args?.include_fire_weather, 'include_fire_weather', false);
47
57
  const includeNormals = validateOptionalBoolean(args?.include_normals, 'include_normals', false);
48
58
  const prefs = resolveUnitPreferences(args);
59
+ // The drought line depends only on the place, so it is started once here,
60
+ // after validation and before the source arms, and overlaps the observation
61
+ // fetch. It is not awaited here: each fire-weather section awaits it at its
62
+ // append site. `resolveDroughtLine` never rejects, so a failed observation
63
+ // that abandons this promise cannot leave an unhandled rejection.
64
+ const droughtPromise = includeFireWeather && usdmService
65
+ ? resolveDroughtLine(usdmService, latitude, longitude, resolved.country_code)
66
+ : undefined;
49
67
  // Get source preference or auto-detect (US = NOAA station observations,
50
68
  // elsewhere = Open-Meteo model data)
51
69
  const requestedSource = args?.source || 'auto';
@@ -71,11 +89,11 @@ export async function handleGetCurrentConditions(args, noaaService, openMeteoSer
71
89
  if (!aviationWeatherService) {
72
90
  throw new ServiceUnavailableError('AviationWeather', 'METAR station observations are not available in this server configuration.');
73
91
  }
74
- output = await formatMetarCurrentConditions(aviationWeatherService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService);
92
+ output = await formatMetarCurrentConditions(aviationWeatherService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService, droughtPromise);
75
93
  }
76
94
  else if (useNOAA) {
77
95
  try {
78
- output = await formatNOAACurrentConditions(noaaService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService);
96
+ output = await formatNOAACurrentConditions(noaaService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService, droughtPromise);
79
97
  }
80
98
  catch (error) {
81
99
  // The US bounding boxes overrun the border (Toronto, Vancouver, Windsor
@@ -94,11 +112,11 @@ export async function handleGetCurrentConditions(args, noaaService, openMeteoSer
94
112
  ...redactCoordinatesForLogging(latitude, longitude),
95
113
  fallback: true
96
114
  });
97
- output = insertNoteAfterHeading(await formatOpenMeteoCurrentConditions(openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService), NOAA_FALLBACK_NOTE);
115
+ output = insertNoteAfterHeading(await formatOpenMeteoCurrentConditions(openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService, droughtPromise), NOAA_FALLBACK_NOTE);
98
116
  }
99
117
  }
100
118
  else {
101
- output = await formatOpenMeteoCurrentConditions(openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService);
119
+ output = await formatOpenMeteoCurrentConditions(openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService, droughtPromise);
102
120
  }
103
121
  }
104
122
  catch (error) {
@@ -230,7 +248,7 @@ function formatThermalStress(effectiveWindChillF, tempF, relativeHumidity, prefs
230
248
  /**
231
249
  * Format current conditions from NOAA station observations (US locations).
232
250
  */
233
- async function formatNOAACurrentConditions(noaaService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService) {
251
+ async function formatNOAACurrentConditions(noaaService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService, droughtLine) {
234
252
  // One station-list fetch drives the freshness loop, the substitution note,
235
253
  // and the timezone — replacing the old getCurrentConditions wrapper call
236
254
  // plus a separate stations re-fetch for the clock (F2/D2).
@@ -587,6 +605,9 @@ async function formatNOAACurrentConditions(noaaService, openMeteoService, nceiSe
587
605
  output += `\n## Fire Weather\n\n`;
588
606
  output += `⚠️ Fire weather data could not be retrieved right now; try again later.\n`;
589
607
  }
608
+ // After the indices and after the failure line alike: the drought line
609
+ // depends only on the place, so a gridpoint failure does not hide it.
610
+ output += await droughtLineSuffix(droughtLine);
590
611
  }
591
612
  // Climate Normals section (optional)
592
613
  // The observation's calendar day in the station's zone, not the server's.
@@ -743,7 +764,7 @@ function formatOpenMeteoTime(time, offsetSeconds, timezone, timeFormat) {
743
764
  * the NOAA QuantitativeValue helpers. There is no station: the data-source
744
765
  * footer carries the model-interpolated caveat instead.
745
766
  */
746
- async function formatOpenMeteoCurrentConditions(openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService) {
767
+ async function formatOpenMeteoCurrentConditions(openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService, droughtLine) {
747
768
  const tempU = temperatureLabel(prefs);
748
769
  const windU = windSpeedLabel(prefs);
749
770
  const precipU = precipitationLabel(prefs);
@@ -856,6 +877,7 @@ async function formatOpenMeteoCurrentConditions(openMeteoService, nceiService, l
856
877
  // model values already in hand; this path never makes a NOAA call.
857
878
  if (includeFireWeather) {
858
879
  output += formatOpenMeteoFireWeather(current.temperature_2m, current.relative_humidity_2m, current.wind_speed_10m, current.vapour_pressure_deficit, current.soil_moisture_0_to_1cm, prefs);
880
+ output += await droughtLineSuffix(droughtLine);
859
881
  }
860
882
  // Climate Normals section (optional)
861
883
  const normalsDay = includeNormals ? getDateComponents(current.time, timezone) : null;
@@ -975,7 +997,7 @@ function formatMetarSky(pick, prefs) {
975
997
  return layers.join(', ');
976
998
  }
977
999
  /** Message shown when no station within any search tier can answer for this point. */
978
- function noStationMessage(prefs) {
1000
+ function noStationMessage(prefs, droughtSuffix = '') {
979
1001
  const far = withLabel(convertDistanceFromKm(250, prefs), distanceLabel(prefs), 0);
980
1002
  let output = `# Current Conditions — No Station Nearby\n\n`;
981
1003
  output += `ℹ️ **No reporting station near this location**\n\n`;
@@ -985,6 +1007,11 @@ function noStationMessage(prefs) {
985
1007
  output += `**Tip:** use \`source: "openmeteo"\` for model-interpolated conditions `;
986
1008
  output += `at these exact coordinates. Those are an estimate rather than a `;
987
1009
  output += `measurement, which is why they are not substituted automatically here.\n`;
1010
+ // The drought line (`include_fire_weather`), in a section of its own before
1011
+ // the footer; nothing at all when there is no line.
1012
+ if (droughtSuffix) {
1013
+ output += `\n## Fire Weather\n${droughtSuffix}`;
1014
+ }
988
1015
  output += `\n---\n`;
989
1016
  output += `*Data source: NOAA Aviation Weather Center (aviationweather.gov) — METAR station observation*\n`;
990
1017
  return output;
@@ -1005,7 +1032,7 @@ function joinFieldNames(names) {
1005
1032
  *
1006
1033
  * See docs/metar-plan.md D5 (output) and D6 (units).
1007
1034
  */
1008
- async function formatMetarCurrentConditions(aviationWeatherService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService) {
1035
+ async function formatMetarCurrentConditions(aviationWeatherService, openMeteoService, nceiService, latitude, longitude, includeFireWeather, includeNormals, prefs, acisService, droughtLine) {
1009
1036
  // Widen the search only as far as it has to go. Each tier is a superset of
1010
1037
  // the last, so a wider box can only find a nearer or fresher station; the
1011
1038
  // picker stays pure and this loop supplies the I/O (assumption A9).
@@ -1026,7 +1053,10 @@ async function formatMetarCurrentConditions(aviationWeatherService, openMeteoSer
1026
1053
  logger.info('No usable METAR station within any search tier', {
1027
1054
  widestTierDegrees: SEARCH_TIERS[SEARCH_TIERS.length - 1]
1028
1055
  });
1029
- return noStationMessage(prefs);
1056
+ // No station, but the drought line is a fact about the place, not about a
1057
+ // station: `source: "metar"` must not drop it. An empty suffix leaves the
1058
+ // no-station bytes unchanged.
1059
+ return noStationMessage(prefs, await droughtLineSuffix(droughtLine));
1030
1060
  }
1031
1061
  const obs = pick.observation;
1032
1062
  // The station's clock, not the caller's — matching how the NOAA path derives
@@ -1187,6 +1217,7 @@ async function formatMetarCurrentConditions(aviationWeatherService, openMeteoSer
1187
1217
  if (isInUS(latitude, longitude)) {
1188
1218
  output += `\nFor a US location, NOAA publishes Haines, grassland and red-flag indices — use \`source: "noaa"\`.\n`;
1189
1219
  }
1220
+ output += await droughtLineSuffix(droughtLine);
1190
1221
  }
1191
1222
  // Climate normals (optional) — supported here exactly as on the other two
1192
1223
  // paths (D7): they need only the coordinates and the date.