No description
- Go 77.7%
- Nix 9.3%
- Java 3.7%
- Just 3.6%
- HTML 3%
- Other 2.7%
| .github | Drop goreleaser support | |
| config | add more testing | |
| frontend | progressive web app | |
| lirc | upgrade to 1.18, add flake, disable tests which need lircd | |
| nix | server(chore): update go deps | |
| package | add goreleaser and a github action | |
| service | 2025年08月22日 refresh | |
| .envrc | go mod update | |
| .gitignore | fix dockerfile | |
| api.go | 2025年08月22日 refresh | |
| flake.lock | flake.lock: Update | |
| flake.nix | 2025年08月22日 refresh | |
| go.mod | server(chore): update go deps | |
| go.sum | server(chore): update go deps | |
| justfile | 2025年08月22日 refresh | |
| LICENSE | Add lirc mock | |
| main.go | 2025年08月22日 refresh | |
| README.md | drop badges | |
| type.go | 2025年08月22日 refresh | |
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.