Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the general section some web oc wide configurations can be set among which the title, logo etc.

For configurations where images or static files like stylesheets can be configured, either a fully qualified url can be used (https://mydomain.com/images/logo.png) or a relative URL can be used that points to the resources enpoint of PI Rest service:

See: https://fewsdocs.deltares.nl/webservices/rest-api/v1/#get-/resources/images/-id- and https://fewsdocs.deltares.nl/webservices/rest-api/v1/#get-/resources/static/-id-.

When for example a logo is configured as:  <logo>resources/images/my-logo.png</logo>, the my-logo.png file should be in de IconFiles folder of the Delft-FEWS Configuration.

For other non-image resources, like CSS stylesheets, a relative URL resources/static/style.css can be used. The style.css file should be in the PiClientConfigFiles folder of the Delft-FEWS Configuration.

components

In the components section the order of the compontent, name of components and permissions can be configured.

...

Code Block
<?xml version="1.0" encoding="utf-8"?>
<webOperatorClient xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews https://fewsdocs.deltares.nl/schemas/version1.0/webOperatorClient.xsd">
	<!--Optional:-->
	<general>
		<title>Delft-FEWS Web OC</title>
		<icons>
			<logo>resources/images/my-logo.png</logo>
			<favicon>resources/images/favicon.ico</favicon>
		</icons>
	</general>
	<components>
		<dataViewer enabled="true">
			<title>My Data Viewer</title>
			<viewPermission>Forecaster</viewPermission>
		</dataViewer>
		<timeSeriesDisplay enabled="true">
			<title>My Time Series Display</title>
		</timeSeriesDisplay>
		<spatialDisplay enabled="true">
			<title>My Spatial Display</title>
		</spatialDisplay>
		<systemMonitor enabled="true">
			<title>My System Monitor</title>
			<viewPermission>Operator</viewPermission>
		</systemMonitor>
		<archiveDisplay enabled="true">
			<title>My Archive Display</title>
		</archiveDisplay>
	</components>
</webOperatorClient>


Using Images and static resources

For configurations where images or static files like stylesheets can be configured, either a fully qualified url can be used (https://mydomain.com/images/logo.png) or a relative URL can be used that points to the resources enpoint of PI Rest service:

See: https://fewsdocs.deltares.nl/webservices/rest-api/v1/#get-/resources/images/-id- and https://fewsdocs.deltares.nl/webservices/rest-api/v1/#get-/resources/static/-id-.

IconFiles

When for example a logo is configured as:  <logo>resources/images/my-logo.png</logo>, the my-logo.png file should be in de IconFiles folder of the Delft-FEWS Configuration.

PiClientConfigFiles

For other non-image resources, like CSS stylesheets, a relative URL resources/static/style.css can be used. The style.css file should be in the PiClientConfigFiles folder of the Delft-FEWS Configuration.

Multiple Web OC Configurations

...