Given text files with timing information for lights, ldserver will run the light display in realtime.
To build the ldserver
binary, ensure that Docker is installed and run:
make
ldserver expects a single command-line argument — a JSON configuration file. The following example specifies three different light sources (a debug light, a GPIO pin, and a WebSocket light):
{
"manager": {
"lights": {
"debug": {
"names": ["debug1"]
},
"gpio": {
"pins": [
{
"number": 17,
"name": "gpio17"
}
]
},
"ws": {
"host": "ws://localhost:5000",
"names": ["ws1"]
}
}
},
"server": {
"addr": ":8000"
}
}