Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nitram509/blil-web


https://github.com/nitram509/blil-web

blink1 blinkstick blinky web

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# BliL-Web - Blinking Light Web

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

#### License

The MIT License (MIT)

## How to run the server

Once the Go code is compile, the blil-web executable offers some command line options.

```shell script
>>> ./blil-web --help

usage: blil-web []

Flags:
--help Show help.
-p, --port=8080 listen on port
-i, --interface="127.0.0.1"
listen on interface
--version Show application version.
```

## How to use the API

### get all available devices

GET http://localhost:8080/

```json
{
"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"
}
}
]
}
]
}
}
```

### set a color

POST http://localhost:8080/led/0/green

```json
{
"number": 0,
"color": "008000"
}
```

## Known issues

* there is no authentication/security implemented

## Supported devices

* [blink(1)](http://blink1.thingm.com/)
* [LinkM / BlinkM](http://thingm.com/products/linkm/)
* [BlinkStick](http://www.blinkstick.com/)
* [Blync](http://www.blynclight.com/)
* [Busylight UC](http://www.busylight.com/busylight-uc.html)
* [Busylight Lync](http://www.busylight.com/busylight-lync.html)
* [DreamCheeky USBMailNotifier](http://www.dreamcheeky.com/webmail-notifier)

_powered by_ https://github.com/boombuler/led