A web server/application, which makes a Blinkstick and compatible devices available via REST API (HTTP + JSON) Written in GO, works on Windows and Mac OS X
The MIT License (MIT)
Once the Go code is compile, the blil-web executable offers some command line options.
>>> ./blil-web --help
usage: blil-web [<flags>]
Flags:
--help Show help.
-p, --port=8080 listen on port
-i, --interface="127.0.0.1"
listen on interface
--version Show application version.
{
"version": "0.0.1",
"name": "BliL - Blinking Light",
"_embedded": {
"leds": [
{
"number": 0,
"type": "BlinkStick",
"path": "USB_20a0_41e5_14100000",
"_links": [
{
"self": {
"href": "http://localhost:8080/led/0",
"title": "Set or get color on this LED"
}
}
]
}
]
}
}
POST http://localhost:8080/led/0/green
{
"number": 0,
"color": "008000"
}
- there is no authentication/security implemented
powered by https://github.com/boombuler/led