LIRC client implemented by golang.
curl https://raw.githubusercontent.com/ww24/lirc-web-api/master/install.sh | sh
curl http://localhost:3000/status
curl http://localhost:3000/api/v1/signals
{
"status":"ok",
"signals":[
{
"remote":"aircon",
"name":"on"
},
{
"remote":"aircon",
"name":"off"
}
]
}
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]".
Open http://localhost:3000/
in Google Chrome or Android Chrome.
https://www.wercker.com/wercker-cli
wercker build