Weather.gov adapter
- Last UpdatedAug 18, 2026
- 1 minute read
- PI System
- Adapter Framework 2.1.0
- Adapters
This sample adapter polls latest observations from Weather.gov and emits normalized dynamic values to OMF egress.
Key Features
Use the Weather.gov sample adapter as a reference implementation for Adapter Framework development. The following features demonstrate common capabilities, design patterns, and framework integrations used when building custom adapters.
Key features include:
-
Polls the latest observations from the public NOAA/National Weather Service REST API (https://api.weather.gov) on framework-managed schedules.
-
Collects per-station measurements such as temperature, dewpoint, relative humidity, wind speed and direction, barometric pressure, visibility, and the text description.
-
Normalizes raw observations into dynamic values and egresses them to OMF endpoints. For example, CONNECT data services or PI Server through PI Web API.
-
Generates stable, station-based stream IDs from a template. For example, WEATHERGOV.STATION.KSEA).
-
Supports station discovery, including seeding discovery from latitude/longitude points.
-
Provides resilient HTTP access with configurable request timeouts, retry count, and retry backoff for transient failures.
-
Optionally drops null measurements so only valid samples are emitted.