...
- FEWS configuration file
Explorer.xml
in the directorySystemConfigFiles
- the
dateTime
section- In order to hide the year within FEWS, the
dateTimeFormat
must be configured accordingly. - The element
adjustSystemTimeAutomatically
should be set to 'true' (this is the defaultdefault for a Stand Alone is false), otherwise it will not be possible for the WaterCoach to alter the systemTime during the game. (Also make sure that you don't have a T0 configured in the global.properties file).
- In order to hide the year within FEWS, the
To have a pop-up appear with new messages,
vjdbcServicePortRange
needs to be configured inExplorer.xml
. This same service is also required for the participant mode, and should only be configured for a Stand Alone or a Master application. Note: by specifying this range the vjdbc service is started. This part of the configuration can be kept the same in the live system, but be aware that this means that this service will be started in the live system as well.Code Block xml xml <vjdbcServicePortRange start="40402" end="40402"/>
Note: this change is no longer required with the embedded WaterCoach: The port number
fewsPiPortNumber
for the FEWS PI service has to be in the range of port numbers that must be specified inExplorer.xml
. Note: by specifying this range the PI service is started. This part of the configuration can be kept the same in the live system, but be aware that this means that the PI service will be started in the live system as well.Code Block xml xml <piServicePortRange start="50505" end="50505"/>
- the
- Note: with some configurations at the start-up of fews via the WaterCoach, the error message 'Fault occurred' may occur. This message can be ignored.
- Changes to the global.properties
- add key WATERCOACH_SCENARIO_DATABASE_PATH=%REGION_HOME%/WaterCoach
Note, this is optional, you could also define this location directly in waterCoachDisplay.xml configure localDatastoreFormat=firebird, since the default 2016.01 database is Dirby
Info Note: the shared database approach for the participant mode is only supported for Firebird at the moment
- add key WATERCOACH_SCENARIO_DATABASE_PATH=%REGION_HOME%/WaterCoach
- Create <My_WaterCoachDisplay>.xml in <root_folder>\Config\DisplayConfigFiles\, see configuration example
If you have an existing application_config.xml, make the following changes:- move file to <root_folder>\Config\DisplayConfigFiles\ and rename if you like
- replace root element
config
with root elementwaterCoachDisplay
- add element
config
- remove elements
locale
,fewsExecutable
,fewsRegionDir
,fewsPiPortNumber
- move element
hideYear
under the elementscenarioScriptDatabasePath
- use key from global.properties to configure
scenarioScriptDatabasePath
- add element
/waterCoachDisplay
to the end of the file
- FEWS configuration file
Explorer.xml
in the directorySystemConfigFiles
Add WaterCoach plugin to Explorer.xml, see the configuration example (Only for the embedded WaterCoach, Delft-FEWS 2016.01 and up).
Anchor watercoachplugin watercoachplugin Info title loadAtStartup with embedded WaterCoach (Delft-FEWS 2016.01 and up) Note: with the embedded WaterCoach (Delft-FEWS 2016.01 and up), it is recommended to use the option loadAtStartup in Explorer.xml set to true, when the script_config.xml makes use of the option dataStart . This is because to be able to change the time in the GUI Delft-FEWS needs to restart. After the restart, only those tasks in Explorer.xml with loadAtStartup=true are started. If this option is set to false for the WaterCoachDisplay, the user will have to manually restart the display, just after she started the WaterCoach mode the first time, which can be confusing.
Optional: Modifiy Delft-Fews layout to start with WaterCoach plugin in the front
- Make sure you have configured the WaterCoach plugin in Explorer.xml to
loadAtStartup
is true (see previous step) Start Delft-FEWS
Bring WaterCoach plugin window to the front and
select menu -> File -> Save Layout
- Make sure you have configured the WaterCoach plugin in Explorer.xml to
Managing of the logging from WaterCoach
User category name
nl.wldelft.fews.gui.plugin.watercoach
in Log4jConfig.xml to enter specific rules for logging from WaterCoach.
See configuration example , in which all debug messages in WaterCoach are suppressed.
...