US weather forecast
Fetch National Weather Service forecast evidence through the governed HTTP front, producing a sealed provider packet for downstream weather planning.
You’re reading version sha-199f43ba99da. Go to the current version
Overview
Fetch public National Weather Service forecast evidence through runx HTTP.
It uses the governed HTTP front, not an ad hoc client: the receipt records the NWS
endpoint, response status, graph step receipts, and the exact authority surface.
No API key is required. The default runner fetches the actual NWS gridpoint
forecast; the locate runner discovers the gridpoint for a latitude/longitude.
In the manual
Runners
forecastlocate
Declared by its execution profile. Read the profile
SKILL.md
NWS Weather
Fetch public National Weather Service forecast evidence through runx HTTP.
It uses the governed HTTP front, not an ad hoc client: the receipt records the NWS
endpoint, response status, graph step receipts, and the exact authority surface.
No API key is required. The default runner fetches the actual NWS gridpoint
forecast; the locate runner discovers the gridpoint for a latitude/longitude.
What this skill does
nws-weather makes read-only calls to api.weather.gov. The locate
runner calls /points/{lat},{lon} to discover gridId, gridX, gridY, and
forecast URLs. The default forecast runner calls
/gridpoints/{office}/{grid_x},{grid_y}/forecast to fetch forecast periods and
shapes them into the forecast it returns.
When to use this skill
- You need real public weather evidence with no credentials.
- A graph needs to prove a weather data read went through runx's governed HTTP path.
- You have an NWS office/gridpoint and need the current public forecast.
- You have latitude and longitude in the United States and need the NWS gridpoint before running the forecast path.
When not to use this skill
- For locations outside NWS coverage. Return
needs_inputwith the coverage limitation. - For emergency, medical, aviation, maritime, evacuation, or life-safety decisions.
- To notify users, reschedule events, deploy changes, or mutate operations based on weather. Those actions need their own authority gate.
- To call private networks, untrusted hosts, or non-NWS endpoints.
Procedure
- If the caller has only coordinates, run
locatewithlatandlon. - Extract
gridId,gridX, andgridYfrom the sealed locate output. - Run the default
forecastrunner withoffice,grid_x, andgrid_y. - Confirm the HTTP status is 2xx and the response contains forecast periods.
- Preserve the NWS source URL, generated timestamp, gridpoint, and receipt refs.
- Return the shaped forecast; planning prose belongs to the agent that uses it. Do not invent guidance inside this provider fetch.
- Return
needs_inputfor malformed coordinates or gridpoints; returnneeds_more_evidencefor NWS outages, missing periods, or stale data.
Edge cases and stop conditions
- Invalid coordinates: return
needs_input; NWS point lookup requires decimal latitude and longitude. - Unsupported location: return
needs_input; NWS coverage is not global. - Provider outage or non-2xx response: return
needs_more_evidenceand preserve the HTTP status in the receipt. - Missing forecast periods: return
needs_more_evidence; do not summarize a forecast that is not present. - Life-safety use: return
refusedand direct the user to official weather or emergency channels. - Action requested from weather: stop at provider evidence and require the downstream action skill with its own gate and receipt.
Output schema
decision: ready | needs_input | needs_more_evidence | refused
runtime_path: http
provider: national-weather-service
provider_evidence:
endpoint: string
http_status: string
gridpoint:
office: string
grid_x: string
grid_y: string
generated_at: string
forecast_periods: array
receipt_refs: array
stop_conditions: arrayWorked example
- Run
locatefor38.8894,-77.0352. - The sealed NWS points response returns
gridId: LWX,gridX: 97,gridY: 71, and a forecast URL. - Run the default
forecastrunner withoffice: LWX,grid_x: "97",grid_y: "71". - Hand the sealed forecast JSON to the downstream agent that plans with it.
Inputs
office(default runner, required): NWS office id such asLWX.grid_x(default runner, required): NWS grid X coordinate.grid_y(default runner, required): NWS grid Y coordinate.lat(locaterunner, required): decimal latitude for point lookup.lon(locaterunner, required): decimal longitude for point lookup.
Published execution profile
The execution profile published with sha-199f43ba99da, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:43c1c5a5bc788d501985fcef65ad677ed96731badebf0fc4ae82bda194d536a5 |
skill: nws-weather
version: "0.1.8"
catalog:
kind: graph
audience: public
visibility: public
role: canonical
provider: national-weather-service
execution: read
completion: provider_readback
approval: none
category: data
connectors:
national-weather-service:
operations: [forecast.read, points.read]
runners:
forecast:
default: true
inputs:
office:
type: string
required: true
description: NWS forecast office id, for example LWX.
grid_x:
type: string
required: true
description: NWS grid X coordinate.
grid_y:
type: string
required: true
description: NWS grid Y coordinate.
result_from: [forecast]
steps:
- id: forecast
operation: national-weather-service/forecast.read
input:
office: $input.office
grid_x: $input.grid_x
grid_y: $input.grid_y
locate:
inputs:
lat:
type: string
required: true
description: Latitude with no more than four decimal places.
lon:
type: string
required: true
description: Longitude with no more than four decimal places.
result_from: [points]
steps:
- id: points
operation: national-weather-service/points.read
input:
lat: $input.lat
lon: $input.lon
harness:
files: [fixtures/support/composed.graph]
cases: []
Published package and test evidence.
This exact version passed its recorded harness run: 3 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-199f43ba99da |
| Recorded result | 3 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Test record | Open the recorded run |
Inspect receipt references
sha256:93b083c0a18f274f810451761df4fd3fb7890394f8b58898a62f1c4b4d54aa59sha256:112e85175648059363c2ae16d34862aa5d06077bac53e1373d0445c1d92e119fsha256:ac58bb59daf7208bb4e04171c1614f76de7fcd4111bab6ab1e63eb6d2418d784Package identity
| Published revision | sha-199f43ba99da |
|---|---|
| Content digest | sha256:199f43ba99da9f974564217c43d142ef96d78fcb1d4c5c030bbbcac57e8e1211 |
| SKILL.md digest | sha256:55212e7a00917d3bf74355903a513c92bcc56af6bdd63b627130b311ba59ac51 |
| Execution profile digest | sha256:43c1c5a5bc788d501985fcef65ad677ed96731badebf0fc4ae82bda194d536a5 |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.1.9Content digest sha256:c4049c3a056c89f90abb21b2780d97cd1851c9b093b6163e81f969814eef5881sha-199f43ba99daViewingContent digest sha256:199f43ba99da9f974564217c43d142ef96d78fcb1d4c5c030bbbcac57e8e1211