- [Installation](#installation)
- [Prerequisites](#prerequisites)
- [Windows](#windows)
- - [MacOSX](#macosx)
+ - [macOS](#macos)
- [GNU/Linux](#gnulinux)
- [Development prerequisites (optional)](#development-prerequisites-optional)
- [Unix](#unix)
- [Version 1.6](#version-16-1)
- [Version 2.x.x](#version-2xx-1)
- [UI Protocol](#ui-protocol)
- - [Websocket Protocol](#websocket-protocol)
+ - [WebSocket Protocol](#websocket-protocol)
- [HTTP Protocol](#http-protocol)
- [Support, Feedback, Contributing](#support-feedback-contributing)
- [Code of Conduct](#code-of-conduct)
choco install -y nodejs
```
-#### MacOSX
+#### macOS
- [Homebrew](https://brew.sh/):
## UI Protocol
-Protocol to control the simulator via a Websocket or HTTP server:
+Protocol to control the simulator via a WebSocket or HTTP server:
```mermaid
sequenceDiagram
Client->>UI Server: request
UI Server->>Client: response
-Note over UI Server,Client: HTTP or Websocket
+Note over UI Server,Client: HTTP or WebSocket
```
-### Websocket Protocol
+### WebSocket Protocol
-SRPC protocol over Websocket. PDU stands for 'Protocol Data Unit'.
+SRPC protocol over WebSocket. PDU stands for 'Protocol Data Unit'.
- Request:
[`uuid`, `ProcedureName`, `PDU`]
`uuid`: String uniquely linking the response to the request
`PDU`: Response parameters to requested procedure
-To learn how to use the Websocket protocol to pilot the simulator, an [Insomnia](https://insomnia.rest/) Websocket requests collection is available in [src/assets/ui-protocol](./src/assets/ui-protocol) directory.
+To learn how to use the WebSocket protocol to pilot the simulator, an [Insomnia](https://insomnia.rest/) WebSocket requests collection is available in [src/assets/ui-protocol](./src/assets/ui-protocol) directory.
#### Version 0.0.1
-Set the Websocket header _Sec-Websocket-Protocol_ to `ui0.0.1`.
+Set the WebSocket header _Sec-WebSocket-Protocol_ to `ui0.0.1`.
##### Procedures
`responsesFailed`: failed responses payload array (optional)
}
-###### Set Charging Station Supervision Url
+###### Set Charging Station Supervision URL
- Request:
`ProcedureName`: 'setSupervisionUrl'
#### Simulator UI Server Configuration
-The simulator UI server must be enabled, use WebSocket transport type and have authentication disabled. The simulator main configuration file should have a `uiServer` section like this:
+The simulator UI server must be enabled, use WebSocket transport type, and be configured consistently with your Web UI authentication. The simulator main configuration file should have a `uiServer` section like this:
```json
"uiServer": {
### Run
+#### Install dependencies
+
+```shell
+pnpm install
+```
+
#### Compiles and run for production
```shell

-1. With the buttons on the top you can change UI server, start/stop the simulator, add new charging stations and refresh the content.
+1. With the buttons on the top you can change UI server, start/stop the simulator, add new charging stations, and refresh the content.
2. Each charging station is a row in the table with specific 'Actions' to execute on. Try 'Stop Charging Station' and refresh with the large blue button and see the status 'Started' turns from 'Yes' into 'No'.
#### Docker