@dangahagan/weather-mcp 1.49.0 → 1.51.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.
- package/README.md +14 -11
- package/dist/config/cache.d.ts +4 -0
- package/dist/config/cache.d.ts.map +1 -1
- package/dist/config/cache.js +16 -0
- package/dist/config/cache.js.map +1 -1
- package/dist/config/tools.d.ts +4 -1
- package/dist/config/tools.d.ts.map +1 -1
- package/dist/config/tools.js +4 -1
- package/dist/config/tools.js.map +1 -1
- package/dist/handlers/currentConditionsHandler.d.ts +2 -1
- package/dist/handlers/currentConditionsHandler.d.ts.map +1 -1
- package/dist/handlers/currentConditionsHandler.js +41 -10
- package/dist/handlers/currentConditionsHandler.js.map +1 -1
- package/dist/handlers/droughtMonitorLine.d.ts +33 -0
- package/dist/handlers/droughtMonitorLine.d.ts.map +1 -0
- package/dist/handlers/droughtMonitorLine.js +80 -0
- package/dist/handlers/droughtMonitorLine.js.map +1 -0
- package/dist/handlers/forecastHandler.d.ts +13 -1
- package/dist/handlers/forecastHandler.d.ts.map +1 -1
- package/dist/handlers/forecastHandler.js +80 -5
- package/dist/handlers/forecastHandler.js.map +1 -1
- package/dist/handlers/seasonalOutlookSection.d.ts +34 -0
- package/dist/handlers/seasonalOutlookSection.d.ts.map +1 -0
- package/dist/handlers/seasonalOutlookSection.js +69 -0
- package/dist/handlers/seasonalOutlookSection.js.map +1 -0
- package/dist/server/weatherServer.d.ts.map +1 -1
- package/dist/server/weatherServer.js +13 -4
- package/dist/server/weatherServer.js.map +1 -1
- package/dist/services/cpc.d.ts +28 -0
- package/dist/services/cpc.d.ts.map +1 -0
- package/dist/services/cpc.js +125 -0
- package/dist/services/cpc.js.map +1 -0
- package/dist/services/openmeteo.d.ts +12 -1
- package/dist/services/openmeteo.d.ts.map +1 -1
- package/dist/services/openmeteo.js +64 -1
- package/dist/services/openmeteo.js.map +1 -1
- package/dist/services/usdm.d.ts +49 -0
- package/dist/services/usdm.d.ts.map +1 -0
- package/dist/services/usdm.js +201 -0
- package/dist/services/usdm.js.map +1 -0
- package/dist/types/openmeteo.d.ts +16 -0
- package/dist/types/openmeteo.d.ts.map +1 -1
- package/dist/types/usdm.d.ts +44 -0
- package/dist/types/usdm.d.ts.map +1 -0
- package/dist/types/usdm.js +16 -0
- package/dist/types/usdm.js.map +1 -0
- package/dist/utils/droughtMonitor.d.ts +69 -0
- package/dist/utils/droughtMonitor.d.ts.map +1 -0
- package/dist/utils/droughtMonitor.js +246 -0
- package/dist/utils/droughtMonitor.js.map +1 -0
- package/dist/utils/ensoStatus.d.ts +32 -0
- package/dist/utils/ensoStatus.d.ts.map +1 -0
- package/dist/utils/ensoStatus.js +124 -0
- package/dist/utils/ensoStatus.js.map +1 -0
- package/dist/utils/loggedFailure.d.ts +2 -2
- package/dist/utils/loggedFailure.js +2 -2
- package/dist/utils/seasonalOutlook.d.ts +32 -0
- package/dist/utils/seasonalOutlook.d.ts.map +1 -0
- package/dist/utils/seasonalOutlook.js +122 -0
- package/dist/utils/seasonalOutlook.js.map +1 -0
- package/dist/utils/serviceStatusCoverage.d.ts.map +1 -1
- package/dist/utils/serviceStatusCoverage.js +5 -2
- package/dist/utils/serviceStatusCoverage.js.map +1 -1
- package/dist/utils/validation.d.ts +2 -2
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +3 -3
- package/dist/utils/validation.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@dangahagan/weather-mcp)
|
|
4
4
|
[](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.dgahagan/weather-mcp)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](./docs/testing/TEST_SUITE_README.md)
|
|
7
7
|
[](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, the NOAA Climate 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,
|
|
61
|
+
- **Fully open source** — MIT licensed, readable TypeScript, 8,621 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
|
|
|
@@ -70,8 +70,8 @@ All 18 tools, documented in detail in **[docs/TOOLS.md](./docs/TOOLS.md)**:
|
|
|
70
70
|
|
|
71
71
|
| Tool | What it does | Coverage |
|
|
72
72
|
|------|-------------|----------|
|
|
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 |
|
|
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; `granularity="seasonal"` gives monthly temperature and precipitation anomalies for the next several months (ECMWF SEAS5) with the current ENSO status (NOAA CPC). 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 |
|
|
@@ -131,15 +131,17 @@ All free, all public, no authentication required:
|
|
|
131
131
|
| Source | Provides | Coverage |
|
|
132
132
|
|--------|----------|----------|
|
|
133
133
|
| [NOAA Weather API](https://www.weather.gov/documentation/services-web-api) | US forecasts, current conditions, alerts, fire weather | US |
|
|
134
|
-
| [Open-Meteo](https://open-meteo.com/) | Global forecasts, historical data (1940+), air quality, marine, geocoding, climate normals, fire-weather inputs | Global |
|
|
134
|
+
| [Open-Meteo](https://open-meteo.com/) | Global forecasts, historical data (1940+), air quality, marine, geocoding, climate normals, fire-weather inputs, seasonal outlooks (ECMWF SEAS5) | Global |
|
|
135
135
|
| [MET Norway](https://api.met.no/weatherapi/locationforecast/2.0/documentation) | Global forecasts, used only when Open-Meteo fails transiently outside the US (about a nine-day horizon, daily only) — CC BY 4.0 | Global |
|
|
136
136
|
| [NOAA Storm Prediction Center](https://www.spc.noaa.gov/) | Day 1–3 categorical convective outlooks (the `get_forecast` SPC line) and daily preliminary storm reports (the `get_historical_weather` section) | Contiguous US (reports: all US) |
|
|
137
|
+
| [NOAA Climate Prediction Center](https://www.cpc.ncep.noaa.gov/) | ENSO status and synopsis | Global context |
|
|
137
138
|
| [NOAA Aviation Weather Center](https://aviationweather.gov/data/api/) | METAR airport observations, TAFs, SIGMETs, G-AIRMETs and pilot reports | Global (G-AIRMETs: contiguous US) |
|
|
138
139
|
| [NOAA NWPS](https://water.noaa.gov/) | River levels, streamflow, flood stages | US |
|
|
139
140
|
| [NOAA CO-OPS Tides & Currents](https://tidesandcurrents.noaa.gov/) | High and low tide predictions and the current observed water level (the `get_marine_conditions` observed section) | US coasts and Great Lakes |
|
|
140
141
|
| [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
142
|
| [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
143
|
| [RCC ACIS](https://www.rcc-acis.org/) | Daily record high/low temperatures | US |
|
|
144
|
+
| [US Drought Monitor](https://droughtmonitor.unl.edu/) (NDMC–UNL, USDA, NOAA) | Weekly county drought categories (the `include_fire_weather` drought line) | US counties |
|
|
143
145
|
| [EUMETNET MeteoAlarm](https://meteoalarm.org/) | Official national weather warnings (38 European countries) | Europe |
|
|
144
146
|
| [MSC GeoMet](https://api.weather.gc.ca/) | Environment and Climate Change Canada weather alerts | Canada |
|
|
145
147
|
| [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 |
|
|
@@ -250,8 +252,8 @@ Control which tools are exposed to reduce context overhead:
|
|
|
250
252
|
|
|
251
253
|
**Context cost.** Every MCP client puts the `tools/list` result into model context on
|
|
252
254
|
every turn, so the preset you choose is a standing cost on every request. Measured on
|
|
253
|
-
the built server: `basic` **14,
|
|
254
|
-
`full`/`all` **35,
|
|
255
|
+
the built server: `basic` **14,549 bytes** (~3.6k tokens), `standard` **23,370** (~5.8k),
|
|
256
|
+
`full`/`all` **35,434** (~8.9k). It scales with the number of **tools**, not the number of
|
|
255
257
|
data sources — adding Japan and India as alert authorities added zero tools and zero bytes.
|
|
256
258
|
|
|
257
259
|
Each tool also carries a display title ("Weather Forecast") and MCP behaviour hints: 16 tools
|
|
@@ -395,7 +397,7 @@ Being honest about what free public data can and can't do:
|
|
|
395
397
|
| 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
398
|
| River conditions | ✅ (GloFAS modeled discharge; Environment Agency gauge observations in Great Britain) | Gauge observations + official flood stages via NWPS |
|
|
397
399
|
| 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 |
|
|
400
|
+
| 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
401
|
| Aviation weather (TAF, METAR, SIGMETs, pilot reports) | ✅ (international SIGMETs as received by the Aviation Weather Center) | G-AIRMETs (contiguous US only) |
|
|
400
402
|
| Pollen | 🇪🇺 Europe keyless (CAMS, grains/m³); elsewhere needs an optional key | Universal Pollen Index with `GOOGLE_POLLEN_API_KEY` |
|
|
401
403
|
|
|
@@ -408,6 +410,7 @@ Being honest about what free public data can and can't do:
|
|
|
408
410
|
- 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
411
|
- 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
412
|
- 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.
|
|
413
|
+
- 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
414
|
- 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
415
|
- 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
416
|
- Marine data has limited coastal accuracy and is **not suitable for navigation**.
|
|
@@ -422,7 +425,7 @@ npm run typecheck # Typecheck src/ and every test file
|
|
|
422
425
|
npm run dev # Run in development mode
|
|
423
426
|
npm test # Offline tests: unit + integration (what CI runs)
|
|
424
427
|
npm run test:live # Live-network tests against the real upstreams, by hand
|
|
425
|
-
npm test && npm run test:live # Run all 8,
|
|
428
|
+
npm test && npm run test:live # Run all 8,621 tests
|
|
426
429
|
npm run test:coverage # Coverage report
|
|
427
430
|
npm run audit # Dependency vulnerability scan
|
|
428
431
|
```
|
|
@@ -465,4 +468,4 @@ Contributions are welcome — this is a single-maintainer project and issues, PR
|
|
|
465
468
|
|
|
466
469
|
---
|
|
467
470
|
|
|
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.*
|
|
471
|
+
*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.*
|
package/dist/config/cache.d.ts
CHANGED
|
@@ -56,7 +56,11 @@ export declare const CacheConfig: {
|
|
|
56
56
|
readonly tidePredictions: number;
|
|
57
57
|
readonly waterLevelLatest: number;
|
|
58
58
|
readonly ndbcLatestObs: number;
|
|
59
|
+
readonly seasonal: number;
|
|
59
60
|
readonly tropicalConeFile: number;
|
|
61
|
+
readonly countyLookup: number;
|
|
62
|
+
readonly droughtMonitor: number;
|
|
63
|
+
readonly ensoStatus: number;
|
|
60
64
|
};
|
|
61
65
|
};
|
|
62
66
|
/**
|
|
@@ -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;iBAOd,eAAe;iBAMf,eAAe;iBAMf,YAAY;iBAMZ,OAA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oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CA2BpE"}
|
package/dist/config/cache.js
CHANGED
|
@@ -289,11 +289,27 @@ export const CacheConfig = {
|
|
|
289
289
|
// is `max-age=600`, so ten minutes is the file's clock (G7). Row age is
|
|
290
290
|
// never baked in: the selector judges each row against `now` per call.
|
|
291
291
|
ndbcLatestObs: 10 * MINUTE,
|
|
292
|
+
// ECMWF SEAS5 monthly anomalies (Open-Meteo seasonal API), and the stored
|
|
293
|
+
// null for an all-null answer (same key, same TTL: G7). The model runs
|
|
294
|
+
// monthly; half a day bounds the lag after a new run.
|
|
295
|
+
seasonal: 12 * HOUR,
|
|
292
296
|
// NHC 5-day forecast-cone KMZ, as parsed rings, keyed by file name. A cone
|
|
293
297
|
// file is immutable — its name carries the advisory number — but the TTL
|
|
294
298
|
// wiring refuses `Infinity`, and a storm's advisories turn over every 3-6
|
|
295
299
|
// hours, so a day bounds memory without a refetch in practice.
|
|
296
300
|
tropicalConeFile: 24 * HOUR,
|
|
301
|
+
// Census geographies county lookup: a coordinate (4 dp) to a county FIPS,
|
|
302
|
+
// or the not-covered `null`. County lines change rarely but do (Connecticut
|
|
303
|
+
// moved to planning regions in 2022), and `Infinity` is refused by the TTL
|
|
304
|
+
// wiring, so thirty days bounds a stale boundary.
|
|
305
|
+
countyLookup: 30 * DAY,
|
|
306
|
+
// US Drought Monitor county rows, keyed by FIPS and the UTC date. The map
|
|
307
|
+
// is weekly (released Thursday) and the key moves daily; six hours bounds
|
|
308
|
+
// how long a fresh release waits to be seen.
|
|
309
|
+
droughtMonitor: 6 * HOUR,
|
|
310
|
+
// NOAA CPC ENSO discussion page, raw HTML cached whole (cpc.ts). CPC updates it
|
|
311
|
+
// monthly, on the second Thursday; six hours bounds the lag after an update.
|
|
312
|
+
ensoStatus: 6 * HOUR,
|
|
297
313
|
},
|
|
298
314
|
};
|
|
299
315
|
const DATE_ONLY = /^(\d{4})-(\d{2})-(\d{2})$/;
|
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AC,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,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"}
|
package/dist/config/tools.d.ts
CHANGED
|
@@ -77,7 +77,10 @@ export declare const PRESETS: Record<string, ("check_service_status" | "get_air_
|
|
|
77
77
|
* with 638. Re-measured 2026-11-30 on the built dist with get_weather_imagery's composite
|
|
78
78
|
* description naming satellite maps (plan-satellite-composite): basic 14,362 and standard
|
|
79
79
|
* 23,183 unchanged (neither preset carries the tool), full 35,247 (2 bytes shorter),
|
|
80
|
-
* leaving 753 bytes of headroom. Budgets unchanged.
|
|
80
|
+
* leaving 753 bytes of headroom. Budgets unchanged. Re-measured 2026-11-30 on the built dist
|
|
81
|
+
* with get_forecast's seasonal granularity (plan-seasonal-outlook): basic 14,549, standard 23,370,
|
|
82
|
+
* full 35,434. No ceiling raised: `basic` keeps 451 bytes of headroom under 15,000 and `full`
|
|
83
|
+
* keeps 566 under 36,000.
|
|
81
84
|
*/
|
|
82
85
|
export declare const TOOLS_LIST_BYTE_BUDGET: Record<'basic' | 'full', number>;
|
|
83
86
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAGnE,CAAC"}
|
package/dist/config/tools.js
CHANGED
|
@@ -344,7 +344,10 @@ export const PRESETS = TOOL_PRESETS;
|
|
|
344
344
|
* with 638. Re-measured 2026-11-30 on the built dist with get_weather_imagery's composite
|
|
345
345
|
* description naming satellite maps (plan-satellite-composite): basic 14,362 and standard
|
|
346
346
|
* 23,183 unchanged (neither preset carries the tool), full 35,247 (2 bytes shorter),
|
|
347
|
-
* leaving 753 bytes of headroom. Budgets unchanged.
|
|
347
|
+
* leaving 753 bytes of headroom. Budgets unchanged. Re-measured 2026-11-30 on the built dist
|
|
348
|
+
* with get_forecast's seasonal granularity (plan-seasonal-outlook): basic 14,549, standard 23,370,
|
|
349
|
+
* full 35,434. No ceiling raised: `basic` keeps 451 bytes of headroom under 15,000 and `full`
|
|
350
|
+
* keeps 566 under 36,000.
|
|
348
351
|
*/
|
|
349
352
|
export const TOOLS_LIST_BYTE_BUDGET = {
|
|
350
353
|
basic: 15000,
|
package/dist/config/tools.js.map
CHANGED
|
@@ -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,E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AC;CACF;AAED,4BAA4B;AAC5B,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;AAE3C,8CAA8C;AAC9C,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;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,CAA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AAE,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
|
-
|
|
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
|
-
|
|
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.
|