Welcome to srcp-rs
Srcp-rs provides a REST interface for SRCP servers. It is a sister project to Gember which is a web application to control a model railroad.
Installation
It is assumed a SRCP server, e.g. SRCPD, is running.
- Install Go: https://golang.org/doc/install
- Clone the srcp-rs repositiory in the $GOPATH/src directory: git clone https://github.com/cbiever/srcp-rs
- build with: go build or user the build.sh script in the docs directory.
If srcp-rs is started without arguments it connects to port 4303 on localhost. Otherwise the first argument is used to connect to the SRCP server.
Srcp-rs opens a websocket on port 4201 and the REST interface is at port 4202.
Cross compilation is easy. See for an example the rpi-build.sh script in the docs directory.