{"id":17972770,"url":"https://github.com/ww24/lirc-web-api","last_synced_at":"2025-03-25T12:33:12.265Z","repository":{"id":57527113,"uuid":"76767805","full_name":"ww24/lirc-web-api","owner":"ww24","description":"lirc client library for web","archived":false,"fork":false,"pushed_at":"2020-09-13T02:21:38.000Z","size":609,"stargazers_count":7,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T08:40:35.384Z","etag":null,"topics":["golang-package","lirc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ww24.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-18T06:52:50.000Z","updated_at":"2024-06-13T11:30:39.000Z","dependencies_parsed_at":"2022-09-07T02:10:36.662Z","dependency_job_id":null,"html_url":"https://github.com/ww24/lirc-web-api","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flirc-web-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flirc-web-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flirc-web-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flirc-web-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ww24","download_url":"https://codeload.github.com/ww24/lirc-web-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245463023,"owners_count":20619598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang-package","lirc"],"created_at":"2024-10-29T16:25:45.174Z","updated_at":"2025-03-25T12:33:11.525Z","avatar_url":"https://github.com/ww24.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LIRC Web API [![GoDoc](https://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://godoc.org/github.com/ww24/lirc-web-api) [![License](https://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/ww24/lirc-web-api/master/LICENSE)\n\n[![wercker status](https://app.wercker.com/status/b9a4cc28becedddbff9ee59b19a54f47/m/master \"wercker status\")](https://app.wercker.com/project/byKey/b9a4cc28becedddbff9ee59b19a54f47)\n\n[LIRC](http://www.lirc.org/) client implemented by golang.\n\nInstall\n---\n```\ncurl https://raw.githubusercontent.com/ww24/lirc-web-api/master/install.sh | sh\n```\n\nUsage\n---\n### Health check\n```\ncurl http://localhost:3000/status\n```\n\n### List\n```\ncurl http://localhost:3000/api/v1/signals\n```\n\n```json\n{\n  \"status\":\"ok\",\n  \"signals\":[\n    {\n      \"remote\":\"aircon\",\n      \"name\":\"on\"\n    },\n    {\n      \"remote\":\"aircon\",\n      \"name\":\"off\"\n    }\n  ]\n}\n```\n\n### Send\n```\ncurl -XPOST http://localhost:3000/api/v1/aircon/on\n```\n\n```\nremote --\u003e aircon\nname --\u003e on\n```\n\nOR\n\n```\ncurl -XPOST http://localhost:3000/api/v1 -H\"Content-Type:application/json\" -d'{\n  \"remote\": \"lighting\",\n  \"name\": \"up\",\n  \"duration\": 5000\n}'\n```\n\nSend a signal for a time if set \"duration[ms]\".\n\n### Web Frontend\nOpen `http://localhost:3000/` in Google Chrome or Android Chrome.\n\nTest\n---\nhttps://www.wercker.com/wercker-cli\n\n```\nwercker build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fww24%2Flirc-web-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fww24%2Flirc-web-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fww24%2Flirc-web-api/lists"}