<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
<!-- This is an example import configuration file for importing timeseries data from the OPW server -->
<import>
<general>
<parserClassName>nl.wldelft.timeseriesparsers.OpwTimeSeriesServerParser</parserClassName>
<!--
The format for an OPW data request is as follows:
http://waterlevel.ie/data/<period>/<station_num>_<sensor_num>.csv
where:
period = day, week or month. These values are fixed. If the period is added to the serverUrl then the value
of the relativeViewPeriod will be ignored. If the period is not added to the serverUrl then the value of the
relativeViewPeriod will be converted to either; day, week, or month.
station_num = Station identifier. This corresponds to the Location Id. This is a 5 digit number.
sensor_num = Sensor identifier. This corresponds to the Parameter Id. This is either a 4 digit number or case
sensitive e.g. OD
-->
<serverUrl>http://waterlevel.ie/data/</serverUrl>
<!--
The relative view period will always be converted to one of the following values; day, week or month.
-->
<relativeViewPeriod unit="hour" start="-5" end="0" startOverrulable="true" endOverrulable="true"/>
<idMapId>IdImportOpc</idMapId>
<!--
Time zone of OPW server is always in UTC.
-->
<importTimeZone>
<timeZoneOffset>00:00</timeZoneOffset>
</importTimeZone>
</general>
<properties>
<!-- Optional: This value represents the sampling frequency for the series in seconds. It is used
<!--
Optional: This is a folder to convertwhich theto searchOPW periodresponse intomessages awill numberbe ofwritten. slots
(~timesteps) to return from the server.
Use this option Iffor omitteddebugging apurposes. default of
900 is used. If this value does not match with-->
the actual value, then
<string key="RequestsOutputDirectory" value="900"/>
either too many or too few slots will be returned.
<!--
Conversion search period and slotInterval to nr of slots:
nr of slots = Period duration in millis / (slotInterval in seconds * 1000) Optional: Number of milliseconds for the import to wait for a response from the server.
-->
<int key="slotIntervalReadTimeoutMillis" value="9005000"/>
<!-- Optional:
The maximum number of slots that can be request in one go. This numberOptional: isNumber defined
of milliseconds by for the server.import Ifto thewait numberfor ofestablishing requesteda slotsconnection exceedsto this value the server throws an exception.
If omitted a default of 1000 is used. -->
<int key="getdataMaxSlotsConnectionTimeoutMillis" value="10005000"/>
</properties>
<timeSeriesSet>
<moduleInstanceId>ImportAdcon<<moduleInstanceId>ImportOpw</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>MyPar<<parameterId>Sensor_num</parameterId>
<locationSetId>MyLocSet<<locationSetId>Station_num</locationSetId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistantminute" multiplier="15"/>
<readWriteMode>add originals</readWriteMode>
<synchLevel>1</synchLevel>
</timeSeriesSet>
</import>
</timeSeriesImportRun>
|