...
To only import data of specific sensors for a location, properties can be used. See the following configuration example.
A relative view period can be specified in the general section of the import to configure the period for which data should be retrieved. By defaul only the last 12 hours until now will be imported. in the configuration example a RVP is specified for the last 5 days and the timeout is set to 20 seconds.
N.B.: specifying a large period might result in a time-out with the service if a large amount of data is retrieved. To increase the timeout period, the connectionTimeOutMillis can be configured in the general section of the import.
Time is assumed to be specified in GMT and data is assumed to be UTF-8 encoded.
| Code Block | ||||
|---|---|---|---|---|
| ||||
<?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">
<import>
<general>
<importType>IOCSeaLevelMonitoring</importType>
<serverUrl>http://www.ioc-sealevelmonitoring.org/service.php</serverUrl>
<connectionTimeOutMillis>20000</connectionTimeOutMillis>
<relativeViewPeriod unit="day" start="-5" end="0" ></relativeViewPeriod>
<idMapId>IdImportIoc</idMapId>
</general>
<properties>
<!--
Properties are used to filter out specific sensors for a location.
A list of key value pairs can be specified to import only data from a specific sensor for a location.
In the following property only sensors of "bat" are impored for the acaj location.
-->
<string key="acaj" value="bat"/>
</properties>
<timeSeriesSet>
<moduleInstanceId>ImportIOCSeaLevelMonitoring</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.observed</parameterId>
<locationSetId>IOC</locationSetId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistant" />
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</import>
</timeSeriesImportRun>
|
...