General

AVAMET is the Valencian Association of Meteorology who, among other things, manages weather stations at point of interest to the Association. The data is accessible online via an API. Note the API currently only returns the latest value only. 

Authentication

The project id and token is provided in the import properties as a string.

Configuration example

This example is configured to import the most recent scalar observations from AVAMET. The json response contains many locations and parameters. Each entry in the json is for a location, with a fixed list of parameters. The parameter names will have to match external parameters in the configuration to be imported.

Example AVAMET Import
<import>
   <general>
      <importType>AVAMET</importType>
      <serverUrl>https://www.avamet.org/_api/_projecte_genera.php</serverUrl>
      <idMapId>IdImportAVAMET</idMapId>
	  <importTimeZone>
           <timeZoneOffset>+02:00</timeZoneOffset>
      </importTimeZone>
   </general>
   <properties>
      <string key="token" value="long_token_value_string"></string>
      <string key="proj_id" value="project_id"></string>
   </properties>
   <timeSeriesSet>
      <moduleInstanceId>Import_AVAMET</moduleInstanceId>
      <valueType>scalar</valueType>
      <parameterId>P.obs</parameterId>
      <locationId>c01m038e01</locationId>
      <timeSeriesType>external historical</timeSeriesType>
      <timeStep unit="nonequidistant"/>
      <readWriteMode>read only</readWriteMode>
   </timeSeriesSet>
</import>






  • No labels