{"id":17569082,"url":"https://github.com/riywo/irkit-api-server","last_synced_at":"2025-04-28T11:41:18.147Z","repository":{"id":25330147,"uuid":"28757246","full_name":"riywo/irkit-api-server","owner":"riywo","description":"Your own API server for your IRKit","archived":false,"fork":false,"pushed_at":"2017-10-07T13:56:29.000Z","size":152,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T09:11:36.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riywo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-03T23:11:03.000Z","updated_at":"2022-12-12T23:53:23.000Z","dependencies_parsed_at":"2022-08-24T00:10:29.245Z","dependency_job_id":null,"html_url":"https://github.com/riywo/irkit-api-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Firkit-api-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Firkit-api-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Firkit-api-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riywo%2Firkit-api-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riywo","download_url":"https://codeload.github.com/riywo/irkit-api-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251306671,"owners_count":21568312,"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":[],"created_at":"2024-10-21T17:09:03.750Z","updated_at":"2025-04-28T11:41:18.129Z","avatar_url":"https://github.com/riywo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IRKit API Server\n\n[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)\n\n## Usage\n\n### Create irkit.json\nBefore deploy to heroku, you must finish creating your `irkit.json` using `ruby-irkit` CLI. For example:\n\n````\n$ gem install irkit\n$ irkit --get tv_on\n$ irkit --get tv_off\n$ irkit --get airconditioner_off\n$ irkit --device:add living\n$ ls ~/.irkit.json\n/Users/riywo/.irkit.json\n````\n\nSee also: https://github.com/shokai/ruby-irkit\n\n### Upload irkit.json somewhere else\nThen, upload the `.irkit.json` content to a web server publicly accessible. This contains some private infomation such as clientkey or deviceid, so private gist is a nice place to put it on. You will get a URL of raw file like `https://gist.githubusercontent.com/riywo/.../raw/.../irkit.json`. Or you can use Dropbox shared link.\n\n### Deploy and enjoy it!\nNow you can deploy via Heroku deploy button. You have to set `IRKIT_DATA_FILE` as the URL you got above.\n\nAfter deployed, check `SECRET_TOKEN` in the configuration variables.\n\nOK, let's play the api for you!\n\n````\n$ curl -X POST https://your-app-name.herokuapp.com/SECRET_TOKEN/api/living/tv_on\n$ curl -X POST https://your-app-name.herokuapp.com/SECRET_TOKEN/api/living/tv_off,airconditioner_off\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friywo%2Firkit-api-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friywo%2Firkit-api-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friywo%2Firkit-api-server/lists"}