...
- 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
cardinalTimeStep
should be consistent withfewsSystemTimeUpdateInMinutes
. Indeed, it makes no sense to set it in the WaterCoach to 1 minute, while it is set to 1 hour in the FEWS configuration (although this will not cause any problems in the game). (obsolete as of FEWS release 2013.02) - The element
adjustSystemTimeAutomatically
should be set to 'true', 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
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"/>
- To distinguish the FEWS configuration for the WaterCoach, one could change the name and panel labels. The name of the Explorer window is configured with
systemCaption
and the name of the panels withpanelHeaderLabels
. For example, the term TRAINING or SERIOUS GAME could be added to the captions of these panels. (obsolete as of FEWS release 2013.02 since the FEWS user interface contains a yellow border when operated in WaterCoach mode) Add WaterCoach plugin to Explorer.xml, see configuration examples (Only for the embedded WaterCoach, Delft-FEWS 2016.01 and up).
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.
- the
- Depending on the set-up of the scenario and script database, an additional change could be required, see Scenario and Script database.
- 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.
- Since all data for a scenario is pre-loaded in the FEWS local data store, it is desirable to hide certain data after the current system time, e.g. measurement data. This can be accomplished by specifying
hideExternalHistoricalAfterSystemTime=true
in the fileglobal.properties
, which is located in the FEWS configuration directory. As the name of this key implies, only time series of the type "external historical" are hidden; time series of the types "external forecast", "simulated historical", and "simulated forecast" are completely visible. As of FEWS release 2012.02, this step is no longer required.
Additional steps for embedded WaterCoach (2016.01 and up) - Changes to the global.properties
- add key WATERCOACH_SCENARIO_DATABASE_FOLDER=%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_FOLDER=%REGION_HOME%/WaterCoach
- Create <My_WaterCoachDisplay>.xml in <root_folder>\Config\DisplayConfigFiles\, see configuration examples
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 element <scenarioScriptDatabasePath>
- use key from global.properties to configure <scenarioScriptDatabasePath>
- add element </waterCoachDisplay> to the end of the file
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
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 examples, in which all debug messages in WaterCoach are suppressed.
...