Skip to content

Client with web-frontend to control several trains using the OSRailwayTrain firmware https://github.com/aligator/OSRailwayTrain

License

Notifications You must be signed in to change notification settings

aligator/OSRailwayControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSRailway Control

OSRailway Control screenshot

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.

How to build

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 at http://localhost:3000.

Binary Releases

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)

Web client

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.