Slot Car Racing over IP
Go to file
2022-08-26 20:22:03 +02:00
schematics add server and schematics 2022-08-26 20:22:03 +02:00
.gitignore Initial commit 2022-08-25 20:26:06 +02:00
example.conf add server and schematics 2022-08-26 20:22:03 +02:00
LICENSE add server and schematics 2022-08-26 20:22:03 +02:00
README.md add server and schematics 2022-08-26 20:22:03 +02:00
server.py add server and schematics 2022-08-26 20:22:03 +02:00

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 is True)
v6_host
IPv6 address of the server (ignored when legacy is False)
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 the max 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).