This is a server to control OSRailway trains using the OSRailway Train firmware. It basically is a mqtt client which provides a simple web-gui (it starts a small webserver) to manage several trains.
The software is in an early stage.
Prequesites
- golang compiler
- go get github.com/markbates/pkger/cmd/
- MQTT broker - without it the whole firmware is not usable.
To run it you just have to execute these commands
go generate
to embed the html-js client in the app.go run . --web-port 3000 --mqtt-host 192.168.178.90 --mqtt-port 1883 --mqtt-user yourUser --mqtt-password YourPassword
Then the UI is available athttp://localhost:3000
.
The latest release can be found here for all popular platforms.
Just download and unpack the executable you need.
To get all possible command line options just run:
./osrailway-control --help
(linux / mac)
osrailway-control.exe --help
(windows)
The web client is currently built with plain js and html to avoid big dependencies like React or similar. This may change in the future. It connects to the backend using websockets.