Sample configuration:

To use the import either a token url (with username and password) or a token needs to be configured.

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Computer Services (WL | Delft Hydraulics) -->
<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>Saih</importType>
			<serverUrl>http://192.25.81.25:8000/api/variables/</serverUrl>
			<user>user</user>
			<password>password</password>
			<relativeViewPeriod unit="day" start="-5" end="0" startOverrulable="true" endOverrulable="true"/>
			<idMapId>SaihIdMap</idMapId>
		</general>
		<properties>
			<string key="tokenUrl" value="http://192.25.81.25:8000/api/login/access-token"/>
			<string key="bearerToken" value="token"/>
		</properties>

		<timeSeriesSet>
			<moduleInstanceId>Saih</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>parameter</parameterId>
			<locationId>location</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun> 


  • No labels