General
It is possible to import data from another Delft-FEWS application through it's pi web service. It might also be the case that another application uses the same API and hosts a web service in PI format. The importmodule connects to other PI Service through REST, using the JSON format.
Since the PI rest service does not support gridded data, only scalars are supported.
Configuration options
Optional configuration properties are:
- verboseLogging (boolean), which sets all debug messages to info level
- filterId (string), where the requesting system can identify to the PI service the wanted filterId.
- clientId (string), where the requesting system can identify itself at the PI service
- convertDatum (boolean)
- useDisplayUnits (boolean)
- DebugFolderDatePattern (date-time pattern), used in the filenames which are used for backing up de messages. Only relevant in case RequestsOutputDirectory is set.
Example REST url:
http://localhost:8181/FewsWebServices/rest/fewspiservice/v1/
Config example:
<import>
<general>
<importType>pi_json_server</importType>
<serverUrl>$WEBSERVICE_URL$</serverUrl>
<connectionTimeOutMillis>5000</connectionTimeOutMillis>
<relativeViewPeriod unit="minute" start="-30" end="0" startOverrulable="true" endOverrulable="false"/>
<idMapId>IdWABIS</idMapId>
<dataFeedId>WABIS</dataFeedId>
</general>
<properties>
<bool key="verboseLogging" value="false"/>
<string key="RequestsOutputDirectory" value="$IMPORT_BACKUP_FOLDER$/piJson"/>
<string key="clientId" value="FEWS"/>
</properties>
<timeSeriesSet>
<moduleInstanceId>ImportWABIS</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.meting</parameterId>
<locationSetId>WABIS_H.meting</locationSetId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="nonequidistant"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</import>