Skip to content

nitram509/blil-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

>>> ./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.

How to use the API

get all available devices

GET http://localhost:8080/

{
    "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

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

Known issues

  • there is no authentication/security implemented

Supported devices

powered by https://github.com/boombuler/led

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages