{"id":15730216,"url":"https://github.com/revolunet/httprelay","last_synced_at":"2026-04-27T22:33:03.709Z","repository":{"id":136228885,"uuid":"66880945","full_name":"revolunet/httprelay","owner":"revolunet","description":"minimal http api for relays over raspberrypi gpio","archived":false,"fork":false,"pushed_at":"2018-02-25T12:10:13.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-12T09:43:32.578Z","etag":null,"topics":["gpio","python","raspberry-pi","raspi","relay"],"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/revolunet.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":"2016-08-29T21:11:46.000Z","updated_at":"2019-07-13T16:02:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"e39754b1-4c20-48ad-8bbc-4214d1d33c7d","html_url":"https://github.com/revolunet/httprelay","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/revolunet/httprelay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttprelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttprelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttprelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttprelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revolunet","download_url":"https://codeload.github.com/revolunet/httprelay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revolunet%2Fhttprelay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32358509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","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","python","raspberry-pi","raspi","relay"],"created_at":"2024-10-04T00:00:37.643Z","updated_at":"2026-04-27T22:33:03.690Z","avatar_url":"https://github.com/revolunet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httprelay\n\nMinimal python HTTP server with CORS support to control RaspberryPi GPIOs, for example to control relays.\n\nYou can control up to 24 GPIO.\n\n## setup\n\n - [download](https://github.com/revolunet/httprelay/archive/master.zip) the project\n - run `pip install -r requirements.txt`\n - defines the GPIOs pins to control in server.py\n\nRun with `python server.py`\n\n## HTTP API\n\n - `/gpio/7` : get pin 7 current status\n - `/gpio/7/output/0` : set pin 7 output to GPIO.LOW\n - `/gpio/7/output/1` : set pin 7 output to GPIO.HIGH\n\nSample test UI : http://jsbin.com/mahexo\n\nAPI returns:\n\n```json\n{\n  \"pin\": 7,\n  \"value\" : true\n}\n```\n\n\n## Available GPIOs\n\nUse the physical port to address the API\n\nPhysical port | GPIO#\n:------------:|:-----:\n  7           | 7\n  8           | 15\n  10          | 16\n  11          | 0\n  12          | 1\n  13          | 2\n  15          | 3\n  16          | 4\n  18          | 5\n  19          | 12\n  21          | 13\n  22          | 6\n  23          | 14\n  24          | 10\n  26          | 11\n  29          | 21\n  31          | 22\n  32          | 26\n  33          | 23\n  35          | 24\n  36          | 27\n  37          | 25\n  38          | 28\n  40          | 29\n\n## Autostart\n\n - add `/home/pi/httprelay/start.sh \u0026` to your `/etc/rc.local`\n - the sample `start.sh` script shows how to start the process in a [screen](https://www.gnu.org/software/screen) session\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolunet%2Fhttprelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevolunet%2Fhttprelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevolunet%2Fhttprelay/lists"}