{"id":20978716,"url":"https://github.com/abaker/gpio_httpd","last_synced_at":"2026-04-22T12:05:39.263Z","repository":{"id":103468350,"uuid":"203454222","full_name":"abaker/gpio_httpd","owner":"abaker","description":"HTTP API for Raspberry Pi GPIO pins","archived":false,"fork":false,"pushed_at":"2021-08-03T22:12:55.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T06:18:57.797Z","etag":null,"topics":["gpio-pins","raspberry-pi"],"latest_commit_sha":null,"homepage":"","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/abaker.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":"2019-08-20T21:03:35.000Z","updated_at":"2022-05-12T19:17:53.000Z","dependencies_parsed_at":"2023-03-05T20:15:42.254Z","dependency_job_id":null,"html_url":"https://github.com/abaker/gpio_httpd","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/abaker%2Fgpio_httpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fgpio_httpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fgpio_httpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abaker%2Fgpio_httpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abaker","download_url":"https://codeload.github.com/abaker/gpio_httpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382783,"owners_count":20282007,"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":["gpio-pins","raspberry-pi"],"created_at":"2024-11-19T05:07:02.579Z","updated_at":"2025-12-27T15:59:36.525Z","avatar_url":"https://github.com/abaker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"`gpio_httpd` is a simple web server to control Raspberry Pi GPIO pins. Example use case is activating a relay\r\n\r\n```\r\n$ pip install -r requirements.txt\r\n$ python gpio_httpd.py\r\n```\r\n\r\nRunning `curl -X POST http://localhost/17/low?ms=250` will set pin 17 to GPIO.LOW for 250 milliseconds\r\n\r\nRunning `curl http://localhost/input/17` will return the result of GPIO.input(17)\r\n\r\n### Docker\r\n\r\n`docker run --device \"/dev/gpiomem\" -p \"80:80\" bakerba/gpio_httpd`\r\n\r\n### Docker Compose\r\n\r\n```\r\nversion: '3.3'\r\n\r\nservices:\r\n  gpio_httpd:\r\n    image: bakerba/gpio_httpd\r\n    container_name: gpio_httpd\r\n    devices:\r\n      - \"/dev/gpiomem\"\r\n    ports:\r\n      - \"80:80\"\r\n```\r\n\r\n### Usage\r\n\r\n```\r\n$ python gpio_httpd.py --help\r\n\r\nusage: gpio_httpd.py [-h] [--debug] [--port PORT]\r\n\r\noptional arguments:\r\n  -h, --help           show this help message and exit\r\n  --debug              enable debug logging\r\n  --port PORT          port\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaker%2Fgpio_httpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabaker%2Fgpio_httpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabaker%2Fgpio_httpd/lists"}