Data can be exported to a REST server. An example configuration:

Export Configuration
<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesExportRun 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/timeSeriesExportRun.xsd">
	<export>
		<general>
			<exportType>pi_server</exportType>
			<serverUrl>http://localhost:8080/FewsWebServices/rest/fewspiservice/v1/</serverUrl>
			<backupServerUrl>http://127.0.0.1:8080/FewsWebServices/rest/fewspiservice/v1/</backupServerUrl>
		</general>
		<properties>
			<string key="filterId" value="The_Filter"/>
			<bool key="convertDatum" value="false"/>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>ImportData</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Param</parameterId>
			<locationId>Place</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="second" multiplier="3600"/>
			<readWriteMode>editing visible to all future task runs</readWriteMode>
		</timeSeriesSet>
	</export>
</timeSeriesExportRun>

And the FewsPiService.properties needs the filter and read modes set:

FewsPiService.properties
FILTER_ID=The_Filter
READONLY_MODE=false
  • No labels