1
0
Fork
You've already forked lirc-web-api
0
No description
  • Go 77.7%
  • Nix 9.3%
  • Java 3.7%
  • Just 3.6%
  • HTML 3%
  • Other 2.7%
2025年08月22日 13:23:59 -04:00
.github Drop goreleaser support 2022年12月24日 16:02:16 -05:00
config add more testing 2016年12月27日 02:42:39 +09:00
frontend progressive web app 2017年01月29日 02:07:29 +09:00
lirc upgrade to 1.18, add flake, disable tests which need lircd 2022年10月01日 22:45:46 -04:00
nix server(chore): update go deps 2025年08月22日 13:22:53 -04:00
package add goreleaser and a github action 2021年05月31日 21:28:32 -04:00
service 2025年08月22日 refresh 2025年08月22日 13:23:59 -04:00
.envrc go mod update 2024年03月23日 09:39:31 -04:00
.gitignore fix dockerfile 2021年05月31日 22:27:52 -04:00
api.go 2025年08月22日 refresh 2025年08月22日 13:23:59 -04:00
flake.lock flake.lock: Update 2025年08月22日 13:16:13 -04:00
flake.nix 2025年08月22日 refresh 2025年08月22日 13:23:59 -04:00
go.mod server(chore): update go deps 2025年08月22日 13:22:53 -04:00
go.sum server(chore): update go deps 2025年08月22日 13:22:53 -04:00
justfile 2025年08月22日 refresh 2025年08月22日 13:23:59 -04:00
LICENSE Add lirc mock 2017年02月22日 00:37:42 +09:00
main.go 2025年08月22日 refresh 2025年08月22日 13:23:59 -04:00
README.md drop badges 2020年10月25日 16:11:54 -04:00
type.go 2025年08月22日 refresh 2025年08月22日 13:23:59 -04:00

LIRC Web API

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.