WebSocketGaugeServer - Program startup
Run from binary executable
- Download binary archive and extract it.
- Edits setting file of
appsettings.json
.- See Configure.md.
- Run executable file of
WebSocketServer
(orWebSocketServer.exe
in Windows). - To stop the server, type Ctrl+C.
Run by making Docker container
- Move the directory of
Docker.image.install
(of the source code) - Edits setting file of
appsettings.json
.- See Configure.md.
- Get docker image from dockerhub, and write appsettings.json to the image.
- See Setup-Docker.md for detail.
- Run docker image by creating container.
- To use only “virtual ecu mode” (not communicate with ECU or sensor),
docker run -p 2016:2016 --name wsgaugeserver local/wsgaugeserver
- Change port number of
-p
option, if you change port number byappsettings.json
- Replace
local/wsgaugeserver
with the image tag name you created in 3. - Set your favorite container name by
--name
option.
- Change port number of
- To communicate with ECU, Seosor, scantool, you have to export the device to Docker container by adding
--device
option.docker run -p 2016:2016 --name wsgaugeserver --device=/dev/ttyUSB0 local/wsgaugeserver
- See this document
- To run the container automatically on system bootup, set restart policy by
--restart
optiondocker run -p 2016:2016 --name wsgaugeserver --device=/dev/ttyUSB0 --restart always local/wsgaugeserver
- See this document
- To use only “virtual ecu mode” (not communicate with ECU or sensor),