{"id":29223589,"url":"https://github.com/ipstatic/piragekit","last_synced_at":"2026-03-08T23:31:18.989Z","repository":{"id":57636354,"uuid":"117607838","full_name":"ipstatic/piragekit","owner":"ipstatic","description":"HomeKit enabled Go program targeted for the Raspberry Pi platform to control garage doors","archived":false,"fork":false,"pushed_at":"2018-01-16T00:49:45.000Z","size":77,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T05:05:33.095Z","etag":null,"topics":["garage-door-opener","golang","homekit","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipstatic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-15T23:49:18.000Z","updated_at":"2024-11-01T00:14:35.000Z","dependencies_parsed_at":"2022-09-26T20:21:54.358Z","dependency_job_id":null,"html_url":"https://github.com/ipstatic/piragekit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ipstatic/piragekit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fpiragekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fpiragekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fpiragekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fpiragekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipstatic","download_url":"https://codeload.github.com/ipstatic/piragekit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipstatic%2Fpiragekit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30276907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["garage-door-opener","golang","homekit","raspberry-pi"],"created_at":"2025-07-03T05:05:30.878Z","updated_at":"2026-03-08T23:31:18.969Z","avatar_url":"https://github.com/ipstatic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PirageKit\n\nSimple [HomeKit](https://www.apple.com/ios/home/) enabled [Go](https://golang.org)\nprogram targeted for the [Raspberry Pi](https://www.raspberrypi.org) platform to\ncontrol garage doors connected via GPIO.\n\n## Why?\n\nSeemed ridiculous to replace my existing garage door openers or to buy an expensive\nadd-on just so I can have Siri open my garage door. Since I already had a Pi\nlaying around, I figured adding a few reed switches and relays would not hurt.\n\n## Requirements\n\n1. Raspberry Pi with at least 3 GPIO pins available per door you want to control\n2. 2 reed switches (NO)\n3. Some form of a relay (I use a [Sain Smart relay](https://www.sainsmart.com/products/8-channel-5v-relay-module))\n\n## Building\n\nThis project uses [dep](https://github.com/golang/dep) for dependency management.\nYou will need that installed before you can build.\n\n    $ clone this repo\n    $ dep ensure\n    $ VERSION=sem.version.number make\n\n## Setup\n\nUse the wiring diagram below to assist you in wiring up the Pi to your relay and\nswitches. If you are not using a Sain Smart relay, you will most likely not need\nthe circuit documented below or will need a different circuit.\n\nYou will need to position the two reed switches in a way that the \"bottom\" is\nin a closed state when the door is in the closed position and the \"top\" switch\nis in a closed state when the door is in the open position.\n\nOnce everything is wired up, configure piragekit and run it. Launch Home on iOS\nand tap +, tap Add Accessory, tap \"Don't Have a Code or Can't\nScan?\". You should see PirageKit show up as a square. Tap it and enter the code\nyou configured earlier. \n\n### Configuration\n\n#### HomeKit\n\n| Key | Meaning |\n|-----|---------|\n| pin | PIN used when adding devices to Home. Global across all doors |\n| storage_path | Location on disk where the HomeControl database is stored. Defaults to `/var/tmp/piragekit` |\n\n#### Doors\n\n| Key | Meaning |\n|-----|---------|\n| name | Name used to reference the garage door. Will show up as this name in Home |\n| manufacturer | Name of garage door opener manufacturer |\n| model | Model of garage door opener |\n| top_gpio | BCM GPIO pin used for the top reed switch. This is used to determine if the door is open. |\n| bottom_gpio | BCM GPIO pin used for the bottom reed switch. This is used to determine if the door is closed. |\n| relay_gpio | BCM GPIO pin used for the relay. This is used to open/close the door. |\n\n\n### Wiring Diagram\n\n![Wiring Diagram](wiring_diagram.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipstatic%2Fpiragekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipstatic%2Fpiragekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipstatic%2Fpiragekit/lists"}