Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configuration example

To import a file placed in the import folder containing GOES data directly from the server, use the following import configuration.
Import.xml

<import>
     <general>
         <importType>GOES_server</importType>
         <serverUrl>https://cdadata.wcda.noaa.gov/</serverUrl>
         <user>username</user>
         <password>dummy_password</password>
         <relativeViewPeriod unit="day" start="-1" end="0" startOverrulable="true"/>

         <idMapId>import_mapping</idMapId>
     </general>

     <properties>
         <int key="minutesOfLatestMeasurement" value="45"/>
     </properties>
     <

     <timeSeriesSet>
         <moduleInstanceId>my_module_Id</moduleInstanceId>
         <valueType>scalar</valueType>
         <parameterId>H.m</parameterId>
         <locationId>Delft</locationId>
         <timeSeriesType>external historical</timeSeriesType>
         <timeStep unit="minute" multiplier="15"/>
         <readWriteMode>add originals</readWriteMode>
     </timeSeriesSet>
</import>

The imported messages always contain slots for 8 parameters, which are provided in a fixed order.

The import_mapping configuration for these 8 parameters is as follow. Note that the external names of the parameters cannot should not be changed . They correspond to the 8 different parameters in the data, in order of appearance.as they actually refer to the hardcoded parameter names. Data is requested based on the external IDs. 

<idMap>
    <location external="518FF43C" internal="Delft"/>    

    <parameter internal="H.m" external="Main Stage"/>
    <parameter internal="SecStage" external="Secondary Stage"/>
    <parameter internal="Precipitation" external="Rainfall"/>
    <parameter internal="Temperature" external="AirTemp"/>
    <parameter internal="Humidity" external="RH"/>
    <parameter internal="InternalHumidity" external="Internal RH"/>
    <parameter internal="RepeaterBattery" external="Repeater Battery"/>
    <parameter internal="MainBattery" external="Main Battery"/>
</idMap>

External ID mapping is needed if the