NAME

Textforecast - Textual weather forecast for all parts of the country

DESCRIPTION

This module returns textforecasts according to specified parameters.

Schema

The schema for the xml delivered by this product is available from https://api.met.no/weatherapi/textforecast/1.6/schema .

Available

A list of available data may be retrieved using the 'available' action, using the url https://api.met.no/weatherapi/textforecast/1.6/available .

Parameters

forecast

Valid forecasts are:

easter-forecast is only available during easter.

Gale-forecast also includes storm and is issued whenever gale is expected (on the coast), it is not available at all times. obs forecast is also only available whenever the situation makes it necessary

The forecasts sea and landmerge is the same as the three corresponding forecasts, landmerge contains the same as landday0, landday1, landday2 and landlong. The merged forecast contains non-overlapping time periods.

type

Forecast lists can be filtered on specified type, currently aerodrome, iga and route. Note that not all forecasts currently have a type.

This feature is only present in available.

language

nb:

Norwegian bokmål

nn:

Norwegian nynorsk (does not seem to be in use)

en:

English

Note that most warnings are only available in bokmål.

Sample request URLs:

https://api.met.no/weatherapi/textforecast/1.6/?forecast=landday0&language=nb
https://api.met.no/weatherapi/textforecast/1.6/?forecast=landmerge&language=nb
https://api.met.no/weatherapi/textforecast/1.6/?forecast=seahigh&language=en

Change log

gale and obs removed, 2018-06-07

gale* and obs* are no longer permitted values in the forecast parameter

gale and obs soon to be discontinued, 2017-12-13

The gale and obs warnings are now available in CAP format from the metalerts section of the API, and will shortly be discontinued in textforecast. The following values will then no longer be allowed in the forecast parameter and will result in a 400 Bad Request:

gale
gale_id
obs
obs_va
obs_vn
obs_vv

version 1.6, 2012-05-10

New version 1.6 available:

Use of latitude and longitude is removed, use Textlocation instead for this functionality. extreme forecasts are moved to their own product

Version 1.5 available until 2012-09-04

version 1.5, 2009-03-11

New version 1.5 available:

New parameters latitude and longitude available

Version 1.4 is available until 2009-04-25

version 1.4, 2008-11-26

New version 1.4 available:

The format for Obsvarsel is reversed to be like 1.2. The format from 1.3 is available as forecast=obs_merge.

Version 1.3 is available until 2009-02-18

version 1.3, 2008-11-04

New version 1.3 available:

New tag in merged forecasts, origin_forecast which contains the name of the forecast this part is coming from.

obs forecast is changed to be a merged forecast. The XML-format is slightly changed, and might contain more than one time period.

extreme forecast might contain more than one situation at the time, following the merged syntax. Phase D forecasts will only be shown in six hours instead of 12 hours.

Version 1.2 is available until 2009-02-18

version 1.2, 2008-03-05

New version 1.2 available:

landday1 has changed XML. IDs are now consistent and counties are thin area-elements. land is also affected by this change.

Version 1.1 is available until 2008-06-01

version 1.1 : 2007-06-13

New version 1.1 available:

Landshort has changed name to landday1.

landday1, landday2 and landlong has a new element in their XML called area. This element is used to group the counties.

Two new merged forecasts, land and seabank.

Two new forecasts available, gale and extreme.

Version 1.0 is available until 2007-08-15