{"id":20969716,"url":"https://github.com/sergeimonakhov/gpio-rest-api-server","last_synced_at":"2026-04-21T08:04:07.846Z","repository":{"id":144654776,"uuid":"403331908","full_name":"sergeimonakhov/gpio-rest-api-server","owner":"sergeimonakhov","description":"Controlling gpio using the rest api server","archived":false,"fork":false,"pushed_at":"2021-09-05T15:07:38.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T00:49:53.265Z","etag":null,"topics":["gpio-pins","home-assistant","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergeimonakhov.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-09-05T14:38:34.000Z","updated_at":"2025-09-23T11:08:19.000Z","dependencies_parsed_at":"2024-01-28T04:49:39.865Z","dependency_job_id":"b238e970-0c8c-4b02-9e07-06d9cd3f40ba","html_url":"https://github.com/sergeimonakhov/gpio-rest-api-server","commit_stats":null,"previous_names":["d1ablorus/gpio-rest-api-server"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sergeimonakhov/gpio-rest-api-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeimonakhov%2Fgpio-rest-api-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeimonakhov%2Fgpio-rest-api-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeimonakhov%2Fgpio-rest-api-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeimonakhov%2Fgpio-rest-api-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeimonakhov","download_url":"https://codeload.github.com/sergeimonakhov/gpio-rest-api-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeimonakhov%2Fgpio-rest-api-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32082782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["gpio-pins","home-assistant","rest-api"],"created_at":"2024-11-19T03:50:03.929Z","updated_at":"2026-04-21T08:04:07.803Z","avatar_url":"https://github.com/sergeimonakhov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GPIO rest api server\n\nActivate and deactivate gpio pins\n\n## Rest-api schema\n```bash\nPOST '{\"active\":true}' /gpios/{GPIO_PIN_ID}\nGET /gpios/{GPIO_PIN_ID}, response: {\"is_active\":true}\n```\n\n## Integrate with [home-assistant](https://www.home-assistant.io)\n```yaml\nswitch:\n  - platform: rest\n    name: GPIO2\n    resource: http://{GPIO_REST_API_SERVER_ADDR}/gpios/2\n    body_on: '{\"active\": true}'\n    body_off: '{\"active\": false}'\n    is_on_template: \"{{ value_json.is_active }}\"\n    headers:\n      Content-Type: application/json\n    verify_ssl: false\n```\n\n## Requirements:\n\n* [support gpiomem](https://github.com/stianeikeland/go-rpio#using-without-root)\n\n## Tested and working on:\n\n* Raspberry Pi 3 Model B Rev 1.2 (Raspbian GNU/Linux 10 (buster))\n\n## Flags:\n\n```bash\nUsage of ./gpio-api:\n  -dbfile string\n    \tSet db file (default \"./gpio.db\")\n  -listen-port int\n    \tSet http server listen port (default 8081)\n  -recovery\n    \tRecovery gpio state at start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeimonakhov%2Fgpio-rest-api-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeimonakhov%2Fgpio-rest-api-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeimonakhov%2Fgpio-rest-api-server/lists"}