lirc-web-api

command module
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2017 License: MIT Imports: 13 Imported by: 0

README

LIRC Web API

wercker status

LIRC client implemented by golang.

Install

curl https://raw.githubusercontent.com/ww24/lirc-web-api/master/install.sh | sh

Usage

Health check
curl http://localhost:3000/status
List
curl http://localhost:3000/api/v1/signals
{
  "status":"ok",
  "signals":[
    {
      "remote":"aircon",
      "name":"on"
    },
    {
      "remote":"aircon",
      "name":"off"
    }
  ]
}
Send
curl -XPOST http://localhost:3000/api/v1/aircon/on
remote --> aircon
name --> on

OR

curl -XPOST http://localhost:3000/api/v1 -H"Content-Type:application/json" -d'{
  "remote": "lighting",
  "name": "up",
  "duration": 5000
}'

Send a signal for a time if set "duration[ms]".

Web Frontend

Open http://localhost:3000/ in Google Chrome or Android Chrome.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL