UI History Simulation
Sometimes it can be useful to mock historic data in OpenEMS UI in order to take consistent screenshots or to visualize how a certain Controller would have behaved during a day.
Prepare the mock for the historic view:
-
first copy the example CSV file to your home directory, e.g.
C:\Users\username\
on windows. -
adjust the file to mock all required channel values.
The CSV file is read on every data query by the UI. So in order to update the values, just save the CSV file and click again on 'Today' or 'Yesterday' in the history view to refresh. To provide data for one day, that file should have 288 lines with values. Figure 1. The mocked data in the CSV file
OpenEMS UI creates charts dynamically according to which OpenEMS Components are enabled. To mock the historic view, it is required to activate OpenEMS Component via Apache Felix (see Getting Started) or directly in the UI OpenEMS Settings screen.
-
configure the OpenEMS Components that should be simulated, e.g. a meter, PV inverter,…
-
configure the
Simulator Timedata
service. -
open the OpenEMS UI (see Getting Started), login and open the 'History' view. You should be presented the mocked data.