User Tools

Site Tools


data_core:met_office_api

Met Office API

The Met Office API data source driver provides a means to integrate with the Met Office Data Hub that can be configured to historise weather forecast data.

An independent subscription to the Met Office Data Hub is required to use this driver.

Supported Forecasts

The driver integrates with Met Office site-specific forecasts:

  • Global hourly spot data
  • Global three hourly spot data
  • Global daily spot data

Configuration

API Key

Field Name: ApiKey

Register with the Met Office Data Hub to obtain an API key for your subscription.

Locations

One or more locations should be submitted in the format:

(name, latitude, longitude)

Example:

(Intelligent Plant HQ, 57.1430, -2.1112)

Met Office Plan

Field Name: MetOfficePlan

Select your Met Office API subscription plan from the available site-specific forecasts:

  • Global hourly spot data
  • Global three hourly spot data
  • Global daily spot data

Forecast Parameters

The following forecast parameters are available:

  • feelsLikeTemperature
  • max10mWindGust
  • maxScreenAirTemp
  • minScreenAirTemp
  • mslp
  • precipitationRate
  • probOfPrecipitation
  • screenDewPointTemperature
  • screenRelativeHumidity
  • screenTemperature
  • significantWeatherCode
  • totalPrecipAmount
  • totalSnowAmount
  • uvIndex
  • visibility
  • windDirectionFrom10m
  • windGustSpeed10m
  • windSpeed10m

Tag Format

Forecast parameters are presented as tags with the following format:

<location>/<met-office-plan>/<forecast-parameter>/<forecast-offset>

Where:

  • <location> - The location name as configured
  • <met-office-plan> - The subscription plan (e.g., hourly, three-hourly, daily)
  • <forecast-parameter> - One of the forecast parameters listed above
  • <forecast-offset> - Time offset relative to the tag value timestamp (when the forecast was made)

Example:

Intelligent Plant HQ/hourly/probOfPrecipitation/006Hrs

This tag represents the probability of precipitation at Intelligent Plant HQ, 6 hours from when the forecast was generated.

Recording Forecast History

The Met Office API driver can be configured in conjunction with a historian and data stream rule to record forecast history.

By setting up a data stream that maps Met Office API forecast tags to historian tags, you can:

  • Build a historical record of weather forecasts over time
  • Compare forecast accuracy against actual weather conditions
  • Analyze forecast trends and patterns
  • Correlate forecast data with operational data stored in your historian

This configuration allows you to capture not just current forecasts, but maintain a record of how forecasts change over time for any given location and parameter.

data_core/met_office_api.txt · Last modified: 2026/04/28 11:54 by 127.0.0.1