The demo portal consists of two war-files that can be hosted on any webserver, which has support for java servlets. The first war-file contains the User interface, written in with Bootstrap, AngularJS and JQuery. The second war-file contains the REST services that collect the data from the server and make the availabel for the UI and Services, that prepare and the CS simulator.
- Install JDK 8
- Install Tomcat 7
- Run
mvn package
to build the two WAR files - Rename
demo-gui-0.1-SNAPSHOT.war
todemo-gui.war
anddemo-rest-0.1-SNAPSHOT.war
todemo-rest.war
- Copy
demo-gui.war
anddemo-rest.war
to$CATALINA_HOME/webapps
- Create a directory named
d4c-simulator
in$CATALINA_HOME
- Copy the latest build of
benchcs-1.0-jar-with-dependencies.jar
to$CATALINA_HOME/d4c-simulator
- Create a directory named
demo-rest
in$CATALINA_HOME/conf
- Copy the content of
$DEMO_ROOT/demo-rest/src/main/config
to the directory created above - Make any required changes to demo-configuration.json in the configuration directory created above. Specifically:
simulatorPath
must point to$CATALINA_HOME/d4c-simulator/benchcs-1.0-jar-with-dependencies.jar
, where$CATALINA_HOME
must be replace with the actual pathsimulatorWorkDir
must point to the working directory for the simulator, e.g.$CATALINA_HOME/d4c-simulator/work
, where$CATALINA_HOME
must be replace with the actual pathhdbUrl
must point to KairosDB, e.g. "http://localhost:8081"energisUrl
must point to the Energis endpoint used to upload alerts, e.g. "http://localhost/energiscloud-gateway/restful/api"energisApiKey
is the key to authenticate to the Energis API- It is not necessary to change the testbed configuration unless you want to change the default simulation parameters
- Make sure KairosDB is listening at
http://localhost:8081
(or the same address stated inhdbUrl
) - Start Tomcat
- Install Energis as per the relevant instructions
- Open a browser to
localhost:8080/demo-gui
to launch a simulation
The list of available testbeds is defined in demo-configuration.json
. Each testbed id must correspond to a subdirectory of the testbeds
directory. For each testbed the following directory structure must be respected:
- testbed-id
- ctrl-backend
- goal-configuration.json
- technical-configuration.json
- easc
- AppConfig.yaml
- Config.yaml
- ServerConfig.yaml (optional, required only when the shared energy service must be used)
- erds
- datacenter-id-1
- erds1-in-dc1
- list of day profile CSVs
- erds2-in-dc1
- list of day profile CSVs
- erds1-in-dc1
- datacenter-id-2
- erds1-in-dc2
- list of day profile CSVs
- erds2-in-dc2
- list of day profile CSVs
- erds1-in-dc2
- datacenter-id-1
- ctrl-backend
These are the files that will be used to create the simulator environment for running the simulation of a scenario. Parameters chosen in the GUI (e.g. renewable percentage objective, date) overwrite the corresponding values in the testbed configuration files, while all other values are preserved as-is.