Slot Car Racing over IP
schematics | ||
.gitignore | ||
example.conf | ||
LICENSE | ||
README.md | ||
server.py |
SCRoIP
Slot Car Racing over IP
A remote control for a slot car racing track to play with it over the LAN. It's unnecessary complicated and inefficient, but at least it supports IPv6. Ladies, Gentlemen and everyone else, start your engines.
Usage
scroipserver [-h] [-4 V4_HOST | -6 V6_HOST] [-p PORT] config
positional arguments:
- config
- path to the configuration file
options:
- -h
- --help
- show this help message and exit
- -4 V4_HOST
- --v4-host V4_HOST
- host name or IPv4 address
- -6 V6_HOST
- --v6-host V6_HOST
- host name or IPv6 address
- -p PORT
- --port PORT
- TCP port to listen to
Config Parameters
Network [network]
- legacy
- use IPv4 (
True
) or IPv6 (False
) - v4_host
- IPv4 address of the server (ignored when
legacy
isTrue
) - v6_host
- IPv6 address of the server (ignored when
legacy
isFalse
) - port
- TCP port the server listens on
Thresholds [thresholds]
- min
- traffic threshold for the lowest throttle level
- max
- traffic threshold for the maximum throttle level
- stop_when_exceeded
- when set to
True
, the controller will stop applying throttle when themax
threshold is exceeded
Pins [pins]
Mapping of the controlls a0
, a1
, a2
, s0
, s1
, s2
and s3
to the raspberry pi's GPIO pins (using their BCM numbers).