Sampling data (aggregateWindow) for responsitivity + fixed old values not shown bug + readme
This commit is contained in:
32
README.md
32
README.md
@ -37,12 +37,42 @@ The current server exposes some routes for the graphical part and the control pa
|
||||
|
||||
The way the main page is served (where you can select the instrument you want to interact with) has not been decided yet, even if its code is in this repository.
|
||||
|
||||
### Process
|
||||
### Initialization
|
||||
|
||||
For a selected instrument, there is a single HTML file that holds the application : the `SEAWebClient.html` file, which is served as the main route. It includes all the JS files needed, meaning all the JS files located in the `client/jsFiles` folder excepted `SeaWebClientStart.js`, plus the external librairies (`client/externalFiles/`).
|
||||
|
||||
The entry point is the `SEAWebClientMain.js`, which has a `window.onload` function and which initiates all the content of the page, plus the responsitivity.
|
||||
|
||||
### About updating graphics
|
||||
|
||||
- When the server is pushing data, the newly received data is appened to the current curves (on livemode).
|
||||
- When zooming in the x direction, when the zoom is complete (for e.g. meaning that there are no longer enough mouse wheel step in a certain range of time), then the resolution is computed, the client asks for the data within the new viewing window with the given resolution, and then sets (overwrites) the data for the curves.
|
||||
|
||||
### About livemode
|
||||
|
||||
#### Using it
|
||||
|
||||
Every plain minute, all the curves are synchronized. For the curve that have not receive any new data, their last known point is retreived at the "now" date.
|
||||
|
||||
#### Setting it
|
||||
|
||||
**In the context of the client**
|
||||
|
||||
An user enters the livemode when :
|
||||
- arriving on the app,
|
||||
- clicking on the "Go to now" button
|
||||
|
||||
An user leaves the livemode when :
|
||||
- zooming (more precisely, when the zoom is complete),
|
||||
- moving the visualisation window, if the maximum time on the x axis is older than the last received (displayed) value of one of the curves in all the graphs
|
||||
|
||||
**In the context of the server**
|
||||
|
||||
**Known bugs**
|
||||
|
||||
Even if the livemode is set to true on the client side, the server can set it to HISTORICAL because of (not fully investigated yet)
|
||||
|
||||
|
||||
### External libraries
|
||||
|
||||
| Name | Version | Website |
|
||||
|
Reference in New Issue
Block a user