https://github.com/nathan-osman/go-ldserver
Light display server
https://github.com/nathan-osman/go-ldserver
display golang light server
Last synced: 3 months ago
JSON representation
Light display server
- Host: GitHub
- URL: https://github.com/nathan-osman/go-ldserver
- Owner: nathan-osman
- License: mit
- Created: 2017-09-15T22:50:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T23:42:33.000Z (almost 9 years ago)
- Last Synced: 2023-03-16T08:40:27.153Z (over 3 years ago)
- Topics: display, golang, light, server
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## go-ldserver
[](https://godoc.org/github.com/nathan-osman/go-ldserver)
[](http://opensource.org/licenses/MIT)
Given text files with timing information for lights, ldserver will run the light display in realtime.
### Building
To build the `ldserver` binary, ensure that Docker is installed and run:
make
### Usage
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"
}
}