{"id":18861323,"url":"https://github.com/p3tecracknell/lircapi","last_synced_at":"2026-02-09T10:30:27.104Z","repository":{"id":8969699,"uuid":"10711951","full_name":"p3tecracknell/lircapi","owner":"p3tecracknell","description":null,"archived":false,"fork":false,"pushed_at":"2013-06-15T21:19:13.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T20:28:41.803Z","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/p3tecracknell.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":"2013-06-15T20:58:17.000Z","updated_at":"2016-06-10T16:32:33.000Z","dependencies_parsed_at":"2022-09-10T01:51:05.883Z","dependency_job_id":null,"html_url":"https://github.com/p3tecracknell/lircapi","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/p3tecracknell%2Flircapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p3tecracknell%2Flircapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p3tecracknell%2Flircapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p3tecracknell%2Flircapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p3tecracknell","download_url":"https://codeload.github.com/p3tecracknell/lircapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800597,"owners_count":19699177,"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-11-08T04:29:05.758Z","updated_at":"2026-02-09T10:30:27.050Z","avatar_url":"https://github.com/p3tecracknell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"lircapi\n=======\n\nExtremely basic Python API for using lirc. I wrote this specifically for raspberry pi (raspbian) to blast (IRSend) using my MCE eHome Infrared Transceiver.\n\nTakes the format http://[address]:[port]/[remote]/[button]\nFor example:\nhttp://192.168.1.49:8085/onkyo/KEY_POWER\n\nInstall\n=======\n\ncd ~\n\nsudo apt-get install python-cherrypy3 python-bottle python-configobj git\n\ngit clone git://github.com/p3tecracknell/lircapi.git\n\ncd lircapi\n\nsudo python lircapi.py\n\n\nSetting up LIRC\n===============\n\nInstructions borrowed from http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/\n\nInstall lirc:\n$ sudo apt-get install lirc\n\nChange your /etc/lirc/hardware.conf:\nDRIVER=\"default\"\nDEVICE=\"/dev/lirc0\"\nMODULES=\"lirc_rpi\"\n\nRestart lircd\n\n$ sudo /etc/init.d/lirc restart\n\nTest the IR receiver\n\n$ sudo /etc/init.d/lirc stop\n\n$ mode2 -d /dev/lirc0\n\nPoint a remote at the receiver and verify space/pulse\n\nRun the following to see what commands can be used:\n\n$ irrecord --list-namespace\n\nCreate a remote configuration file by stopping lirc to free up /dev/lirc0\n\n$ sudo /etc/init.d/lirc stop\n\nCreate a new remote control configuration file (using /dev/lirc0) and save the output to ~/lircd.conf\n\n$ irrecord -d /dev/lirc0 ~/lircd.conf\n\nMake a backup of the original lircd.conf file\n\n$ sudo mv /etc/lirc/lircd.conf /etc/lirc/lircd_original.conf\n\nCopy over your new configuration file\n\n$ sudo cp ~/lircd.conf /etc/lirc/lircd.conf\n\nStart up lirc again\n\n$ sudo /etc/init.d/lirc start\n\nVerify the irsend usingthe remote you set up earlier.\nList all of the commands that LIRC knows for 'yamaha'\n\n$ irsend LIST yamaha \"\"\n\nSend the KEY_POWER command once\n\n$ irsend SEND_ONCE yamaha KEY_POWER\n\nSend the KEY_VOLUMEDOWN command once\n\n$ irsend SEND_ONCE yamaha KEY_VOLUMEDOWN\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp3tecracknell%2Flircapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp3tecracknell%2Flircapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp3tecracknell%2Flircapi/lists"}