{"id":16173183,"url":"https://github.com/joeferner/pigpio-ir","last_synced_at":"2026-01-20T11:32:41.775Z","repository":{"id":66588859,"uuid":"293823832","full_name":"joeferner/pigpio-ir","owner":"joeferner","description":"pigpio IR Receiver/Transmitter","archived":false,"fork":false,"pushed_at":"2020-10-21T18:57:22.000Z","size":209,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T20:24:29.127Z","etag":null,"topics":["pigpio","raspberry-pi","raspberrypi"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/joeferner.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}},"created_at":"2020-09-08T13:47:21.000Z","updated_at":"2021-06-10T21:12:59.000Z","dependencies_parsed_at":"2023-03-13T20:29:42.658Z","dependency_job_id":null,"html_url":"https://github.com/joeferner/pigpio-ir","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"1b57bcf66767bbfc993ddd655c851d36d494c538"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fpigpio-ir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fpigpio-ir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fpigpio-ir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeferner%2Fpigpio-ir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeferner","download_url":"https://codeload.github.com/joeferner/pigpio-ir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247710248,"owners_count":20983326,"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":["pigpio","raspberry-pi","raspberrypi"],"created_at":"2024-10-10T04:07:06.144Z","updated_at":"2026-01-20T11:32:41.768Z","avatar_url":"https://github.com/joeferner.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wrapper around [pigpio](https://github.com/fivdi/pigpio) to provide transmitting and receiving of IR signals using\nstandard remote controls.\n\n## Install\n\n`npm install pigpio-ir`\n\n## Usage\n\n### Command Line\n\nThe following are some useful built in commands to get you started. You will probably need to run them using `sudo`\n\n#### irrecord\n\n`irrecord` is used to populate a configuration file with know IR remotes and buttons.\n\nExample:\n\n```\nirrecord --pin=27 --file ~/my-remotes.json --remote=samsung --button=POWER\n```\n\n#### irplay\n\n`irplay` is used to play existing buttons back from a file generated from `irrecord`\n\nExample:\n\n```\nirplay --pin=17 --file ~/my-remotes.json --remote=samsung --button=POWER\n```\n\n#### irlisten\n\n`irlisten` is used to continuously listen for IR signals and print when one is recieved\n\nExample:\n\n```\nirlisten --pin=27 --file ~/my-remotes.json\n```\n\n### From Node Application\n\nExample program to start listening and print any buttons received\n\n```\nimport { ButtonEventData, PigpioIr } from 'pigpio-ir';\n\nconst pigpioIr = await PigpioIr.fromFile(args.file, {\n    inputPin: 17,\n    tolerance: 0.1,\n});\npigpioIr.on('button', (data: ButtonEventData) =\u003e {\n    console.log(`button press ${data.remoteName} - ${data.buttonName}`);\n});\npigpioIr.start();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeferner%2Fpigpio-ir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeferner%2Fpigpio-ir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeferner%2Fpigpio-ir/lists"}