{"id":16847263,"url":"https://github.com/graup/servocam","last_synced_at":"2026-07-21T00:40:12.068Z","repository":{"id":16846157,"uuid":"19605949","full_name":"graup/servocam","owner":"graup","description":"RaspberryPi + Webcam + Flask API","archived":false,"fork":false,"pushed_at":"2014-05-23T09:47:08.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T07:16:42.276Z","etag":null,"topics":[],"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/graup.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}},"created_at":"2014-05-09T09:26:11.000Z","updated_at":"2014-05-23T09:47:09.000Z","dependencies_parsed_at":"2022-08-04T11:45:10.010Z","dependency_job_id":null,"html_url":"https://github.com/graup/servocam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graup/servocam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fservocam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fservocam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fservocam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fservocam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graup","download_url":"https://codeload.github.com/graup/servocam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graup%2Fservocam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279184635,"owners_count":26121673,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T13:07:17.634Z","updated_at":"2025-10-16T11:40:44.734Z","avatar_url":"https://github.com/graup.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"servocam\n========\n\nThis is work-in-progress. Looking at the code won't hurt, but running it is not recommended at this point.\n\nWhat is this?\n-------------\n\nThis is some code to remotely control a servo connected to a RaspberryPi. On the servo a webcam is mounted, whose image will also be displayed via a website served by Flask.\n\n- **Flask API** \u003c- RabbitMQ -\u003e **Servo controller**\n- **Flask frontend** \u003c- HTTP -\u003e **Flask API**\n\nAll running on the RaspberryPi at the moment. It might make sense to not run the controller on the same machine (the Raspberry Pi) as the API in the future.\n\nSetup\n-----\n\nUnfortunately, some packages have to be installed globally at the moment as RPIO needs sudo to control the PWM, but running in sudo defeats virtualenv. So, install `puka` and `RPIO` via pip globally. Afterwards you can `pip install` the rest of the requirments in a virtualenv if you want to.\n\nAlso install rabbitmq-server. The packaged version works, so a `sudo apt-get update \u0026\u0026 sudo apt-get install rabbitmq-server` suffices.\n\nHow to run\n----------\n\n- Start rabbitmq-server\n- Start the controller loop: `python controller/controller.py`\n- Start the Flask app: `python api/app.py`\n\nThe API accepts POST request at /api/servo like\n\n    curl raspberrypi:5000/api/servo -d position=100\n    \nBetter documentation is coming up.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraup%2Fservocam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraup%2Fservocam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraup%2Fservocam/lists"}