You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Weather Observations Website (WOW)

The WOW service is a website hosted by the MetOffice (http://wow.metoffice.gov.uk/) that allows registered users to upload data from measurement stations. Once uploaded the data can be viewed through the WOW website by the general public.

The WOW export implements the automatic upload API. Of which the documentation can be found here (http://wow.metoffice.gov.uk/support/dataformats#automatic). Through this API it is possible to upload a single set of measurement values of a weatherstation for each call.

For uploading data the following information is required:

  • Site identifier: unieque numeric id of the site
  • AWS pin: A pin number that is linked to the site.
  • Date: date of measurement. For encoding see WOW website.
  • Software Type: The name of the software, to identify which piece of software and which version is uploading data.

On the WOW website there is a table Weather Data which describes the accepted parameter keys. Note that the expected units are not metric, so all data values configured in the metric system must be converted to UK units. Furthermore all uploaded times are expected to be in GMT.

Setting up measurement sites occurs through the WOW website. It is necessary to obtain a user account from the MetOffice in order to add sites. When setting up a site location it is necessary to configure a AWS pin number, as without this pin it is not possible to add data through the Automatic Upload API.

Example FEWS Configuration

Example ModuleConfigFile

Configure a TimeSeriesExportRun using the 'serializerClassName' option. It is not necessary to configure a bin directory as the required classes are available in the FEWS-bin directory.

WowModuleConfigFile
<fews:timeSeriesExportRun xmlns:fews="http://www.wldelft.nl/fews">
  <fews:export>
    <fews:general>
      <fews:serializerClassName>nl.wldelft.timeseriesserializers.WowTimeSeriesSerializer</fews:serializerClassName>
      <fews:serverUrl>http://wow.metoffice.gov.uk/automaticreading?</fews:serverUrl>
      <!-- <fews:connectionTimeOutMillis>3000</fews:connectionTimeOutMillis> -->
      <fews:idMapId>WosExportIdMap</fews:idMapId>
      <fews:unitConversionsId>WowExportUnitConversion</fews:unitConversionsId>
      <fews:omitMissingValues>true</fews:omitMissingValues>
      <fews:exportTimeZone>
        <fews:timeZoneName>GMT</fews:timeZoneName>
      </fews:exportTimeZone>
    </fews:general>
    <fews:properties>
      <fews:int key="AWSPin" value="123456">
        <fews:description>Required PIN code for uploading data to station</fews:description>
      </fews:int>
<!--  <fews:int key="ReadTimeoutMillis" value="3000">
        <fews:description>Optional timeout for response message. Defaults to 3000</fews:description>
      </fews:int> -->
<!--  <fews:int key="ConnectionTimeoutMillis" value="3000">
        <fews:description>Optional timeout for establishing connection to server. Defaults to 3000</fews:description>
      </fews:int> -->
      <fews:string key="Softwaretype" value="FewsWowExport1.0">
          <fews:description>Optional identifier of decribing source of datavalues. Defaults to 'FewsWowExport1.0'</fews:description>
      </fews:string>
    </fews:properties>
    <fews:timeSeriesSet>
      <fews:moduleInstanceId>WowExport</fews:moduleInstanceId>
      <fews:valueType>scalar</fews:valueType>
      <fews:parameterId>a valid WOW parameter key</fews:parameterId>
<!--      <fews:locationId>site Id</fews:locationId> -->
      <fews:locationSetId>WowSiteIds</fews:locationSetId>
      <fews:timeSeriesType>external historical</fews:timeSeriesType>
      <fews:timeStep unit="nonequidistant"/>
      <fews:relativeViewPeriod unit="hour" start="-1" end="0" startOverrulable="false" endOverrulable="false">
        <fews:description>If more than one timestep available only latest value is uploaded</fews:description>
      </fews:relativeViewPeriod>
      <fews:readWriteMode>add originals</fews:readWriteMode>
    </fews:timeSeriesSet>
  </fews:export>
</fews:timeSeriesExportRun>

Example IdMap

<fews:idMap version="1.1" xmlns:fews="http://www.wldelft.nl/fews">
    <fews:parameter internal="T.obs" external="tempf"/>
    <fews:parameter internal="P.acc" external="rainin"/>
    <fews:parameter internal="Wind.dir" external="winddir"/>
    <fews:location internal="Fews1" external="120000"/>
    <fews:location internal="Fews2" external="120001"/>
</fews:idMap>
  • No labels