{"id":25881285,"url":"https://github.com/pezinek/ir_blaster","last_synced_at":"2025-06-14T03:40:43.136Z","repository":{"id":71051839,"uuid":"81325794","full_name":"pezinek/ir_blaster","owner":"pezinek","description":"IR Blaster for ESP8266","archived":false,"fork":false,"pushed_at":"2018-02-19T11:24:37.000Z","size":707,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-05T06:04:27.453Z","etag":null,"topics":["arduino","esp8266","home-automation","homie","homie-esp8266","iot","mqtt"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/pezinek.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":"2017-02-08T12:04:10.000Z","updated_at":"2021-10-10T17:45:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"50b471a7-b1fa-44c6-8a5f-273513dc74c1","html_url":"https://github.com/pezinek/ir_blaster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pezinek/ir_blaster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezinek%2Fir_blaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezinek%2Fir_blaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezinek%2Fir_blaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezinek%2Fir_blaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pezinek","download_url":"https://codeload.github.com/pezinek/ir_blaster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pezinek%2Fir_blaster/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259756456,"owners_count":22906654,"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":["arduino","esp8266","home-automation","homie","homie-esp8266","iot","mqtt"],"created_at":"2025-03-02T14:38:26.811Z","updated_at":"2025-06-14T03:40:43.129Z","avatar_url":"https://github.com/pezinek.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nWiFi IR Blaster for ESP8266\n===========================\n\nThis is simple infrared sender/receiver controlled over MQTT.\nIt uses the [Homie MQTT convention](https://github.com/marvinroger/homie)\nand is based on [Homie implementation for ESP8266](https://github.com/marvinroger/homie-esp8266) by\nMarvin Roger.\n\n\nWiring diagram\n--------------\n\nThe wirring bellow is the one I used and worked for me. \nYou will likely need to [adjust](http://led.linear1.org/led.wiz) the \nresistor sizes based on the voltage drop and max current for your IR diodes.\nThe transistor is general purpose NPN transistor (I used BSY34)\n\n![wiring](doc/weemos_hookup_bb.jpg)\n\n\nInstalation\n-----------\n\nI recommend to use platformio which will resolve all the dependencies for you, \nbut to compile this sketch in Arduino IDE you have to manually install follwing libraries:\n\n- [Homie for ESP8266](https://github.com/marvinroger/homie-esp8266) and all it's [dependencies](https://homie-esp8266.readme.io/docs/getting-started#section-installing-homie-for-esp8266)\n- [IRremoteESP8266](https://github.com/markszabo/IRremoteESP8266)\n- [ArduinoJson](https://github.com/bblanchon/ArduinoJson)\n\nas well I recommend to install the [Homie UI Bundle](http://marvinroger.github.io/homie-esp8266/docs/2.0.0-beta.3/advanced-usage/ui-bundle/) \nto [data/homie](https://github.com/marvinroger/homie-esp8266/tree/develop/data/homie) folder.\nTo upload the UI bundle you have to follow [SPIFFS upload process](http://docs.platformio.org/en/stable/platforms/espressif8266.html?highlight=spiffs#uploading-files-to-file-system-spiffs)\nif using PlatformIO or if you use Arduino IDE you may use [arduino-sep8266fs-plugin](https://github.com/esp8266/arduino-esp8266fs-plugin).\n\nOnce you upload the sketch, you have to configure the node as described in [Homie Getting Started Tutorial](http://marvinroger.github.io/homie-esp8266/docs/2.0.0-beta.3/quickstart/getting-started/)\n(this is where you device gets device id assigned)\n\nInterface\n---------\n\n- To listen for received IR codes, subscribe to MQTT topic `homie/\u003cdeviceid\u003e/infrared/code`:\n\n```bash\n$ mosquitto_sub -h 192.168.1.50 -v -t 'homie/5ccf7fd38d01/infrared/code'\nhomie/5ccf7fd38d01/infrared/code {\"name\":\"UNKNOWN: 0x42D74094\",\"value\":1121403028,\"frequency\":38,\"type\":{\"id\":-1,\"name\":\"UNKNOWN\"},\"raw\":[9100,4600,600,650,600,1750,600,1750,600,1750,600,650,600,1750,600,1750,600,1750,600,1750,600,1750,600,1750,600,650,600,650,600,650,600,650,600,1800,600,650,600,650,600,1750,600,650,600,650,600,650,600,650,600,650,600,1750,600,1750,600,650,600,650,600,1750,600,1750,600,650,600,650,600]}\n```\n\n- To send IR codes, publish to MQTT topic `homie/\u003cdeviceid\u003e/infrared/code/set`:\n```bash\nmosquitto_pub -h 192.168.1.50 -t 'homie/5ccf7fd38d01/infrared/code/set' -m \"{\"frequency\":38,\"raw\":[900,900,1800,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,900,1800,900]}\";\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpezinek%2Fir_blaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpezinek%2Fir_blaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpezinek%2Fir_blaster/lists"}