{"id":16791818,"url":"https://github.com/rubycho/webpi","last_synced_at":"2026-05-05T12:32:17.162Z","repository":{"id":46853871,"uuid":"237418973","full_name":"rubycho/webpi","owner":"rubycho","description":"RaspberryPi (2) Controllable API","archived":false,"fork":false,"pushed_at":"2021-09-22T18:29:41.000Z","size":69,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-05T09:13:00.123Z","etag":null,"topics":["django","drf","gpio","raspberry-pi","webpi"],"latest_commit_sha":null,"homepage":"","language":"Python","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/rubycho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-31T11:44:40.000Z","updated_at":"2024-06-06T07:03:23.000Z","dependencies_parsed_at":"2022-08-28T17:42:38.707Z","dependency_job_id":null,"html_url":"https://github.com/rubycho/webpi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rubycho/webpi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycho%2Fwebpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycho%2Fwebpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycho%2Fwebpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycho%2Fwebpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubycho","download_url":"https://codeload.github.com/rubycho/webpi/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycho%2Fwebpi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["django","drf","gpio","raspberry-pi","webpi"],"created_at":"2024-10-13T08:35:55.131Z","updated_at":"2026-05-05T12:32:17.139Z","avatar_url":"https://github.com/rubycho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpi\n\nRaspberry PI Controllable API. (Graduation Project)\n\n## Check out!\n- [Endpoints (swagger)](https://app.swaggerhub.com/apis-docs/rubycho/webpi/1.0.0/)\n- [Installation (wiki)](https://github.com/rubycho/webpi/wiki/Installation)\n- [Security Issues (wiki)](https://github.com/rubycho/webpi/wiki/Security-Issues)\n- [Authorization (wiki)](https://github.com/rubycho/webpi/wiki/Authorization)\n- [Error Responses (wiki)](https://github.com/rubycho/webpi/wiki/Error-Responses)\n- [GPIO Limitations (wiki)](https://github.com/rubycho/webpi/wiki/GPIO-Limitations)\n- [SPA Client (webpi-app)](https://github.com/rubycho/webpi-app)\n\n## This API Provides\n\n- File Management\n    - file(s) information on directory (like `ls -al`)\n    - download and upload file\n    - create directory\n    - delete file or directory\n- GPIO Management\n    - gpio pin(s) status (**only general + hw_pwm pins**)\n    - set mode of pin\n    - set output value of pin\n    - set pwm dutycycle and frequency of pin\n- PI Infomation\n    - PI spec\n    - PI status (i.e. time, memory used, # of procs)\n    - process information (Top 10 CPU/MEM using processes)\n- Simple Terminal\n    - create subprocess (`bash`)\n    - make input to subprocess\n    - get output from subprocess\n    - kill subprocess\n\n## Test Environment\n\n- Raspberry PI 2\n- Raspbian Buster (2019-06)\n- SDCard \u003e= 32GB\n\n## Dependencies\n\n- `django` and `drf` for API server\n- `pigpio` for controlling gpio\n- `psutil` for retrieving process information\n\n## Run for dev purpose (Ubuntu)\n\n```bash\n# setup\nvirtualenv venv -p python3\nsource venv/bin/activate\npip install -r requirements.txt \n\n# run\nexport PIGPIO_ADDR={YOUR_PI_ADDR} \npython manage.py runserver\n```\n\n## Test\n\n- uses django.test(`unittest`)\n\n```bash\n$ export PIGPIO_ADDR={YOUR_PI_ADDR}\n$ coverage run manage.py test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubycho%2Fwebpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubycho%2Fwebpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubycho%2Fwebpi/lists"}