{"id":22973974,"url":"https://github.com/forest1102/pythonirserver","last_synced_at":"2025-10-10T02:33:36.755Z","repository":{"id":122588809,"uuid":"119069581","full_name":"forest1102/pythonIRServer","owner":"forest1102","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-20T16:16:49.000Z","size":829,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T07:27:47.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/forest1102.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-26T15:39:58.000Z","updated_at":"2018-03-19T06:48:48.000Z","dependencies_parsed_at":"2023-03-17T05:15:24.178Z","dependency_job_id":null,"html_url":"https://github.com/forest1102/pythonIRServer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/forest1102/pythonIRServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forest1102%2FpythonIRServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forest1102%2FpythonIRServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forest1102%2FpythonIRServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forest1102%2FpythonIRServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forest1102","download_url":"https://codeload.github.com/forest1102/pythonIRServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forest1102%2FpythonIRServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002537,"owners_count":26083400,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-14T23:59:45.335Z","updated_at":"2025-10-10T02:33:36.751Z","avatar_url":"https://github.com/forest1102.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pythonIRServer\n\nウェブサーバを立てて、`raspberry pi` をリモコンにします。  \n\n以下のサイトのソースコードを参考にしました。\n- http://bit-trade-one.co.jp/support/download/\n\n## 概要 \n\n`pythonIRServer` は、FlaskというPythonライブラリーを用いて、`raspberry pi` を赤外線リモコンへと変化させます。\n今回、赤外線リモコン基板としてADRSIRを使用しました。( [ADRSIR](http://bit-trade-one.co.jp/product/module/adrsir/) ).  \n\n## 特徴\n\n- 赤外線コードを調べる必要なく簡単にリモコン化させることができます。\n\n## 必要なもの\n\n- raspberry pi\n- ADRSIR(リモコン基板)\n- Python 3 以上\n- pip(smbusという赤外線を送受信するインストール用)\n\n## 使い方  \n\n\n1. 自身の`raspberry pi` にこれをクローンします。\n\n2. `raspberry pi`のコマンドターミナルを開き、以下のコマンドを入力します。 \n\n  ``` terminal\n  pi@raspberrypi:~$ sudo python app.py\n  pi@raspberrypi:~$ cd pythonIRServer/\n  pi@raspberrypi:~/pythonIRServer$ sudo python app.py\n  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)\n  * Restarting with stat\n  * Debugger is active!\n  * Debugger pin code: 204-077-648\n  ```\n\n3. http://xxx.xxx (your raspberry pi's IP):5000/form を開きます。   \n  そこで、0~9までの値とその番号の基板に登録された赤外線を打ち込むと、config/ir.jsonに登録され、その作られたボタンを押すことで、赤外線を送ることができます。  \n  また、以下のようにCurlやPostman等を使っても可能です。  \n  `GET http://______/code-from/(your switch number)`  \n  注意：基板は1~10で書かれていますが、登録する際は0~9の番号でお願いします。\n4. http://xxx.xxx (your raspberry pi's IP):5000/ を開き、設定したいボタンのValue属性を確認します。その値をコピーし、3で書いたように登録すると使えるようになります。 \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforest1102%2Fpythonirserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforest1102%2Fpythonirserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforest1102%2Fpythonirserver/lists"}