{"id":16654459,"url":"https://github.com/commanderredyt/python-prusa-connect-webcam","last_synced_at":"2025-03-12T18:23:46.032Z","repository":{"id":183064480,"uuid":"669547514","full_name":"CommanderRedYT/python-prusa-connect-webcam","owner":"CommanderRedYT","description":"A simple webcam script for prusa connect","archived":false,"fork":false,"pushed_at":"2023-07-27T21:50:19.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T11:25:21.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CommanderRedYT.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-22T16:25:21.000Z","updated_at":"2023-09-13T07:47:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6796849-6217-4046-8cbc-118a66624b4c","html_url":"https://github.com/CommanderRedYT/python-prusa-connect-webcam","commit_stats":null,"previous_names":["commanderredyt/python-prusa-connect-webcam"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CommanderRedYT%2Fpython-prusa-connect-webcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CommanderRedYT%2Fpython-prusa-connect-webcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CommanderRedYT%2Fpython-prusa-connect-webcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CommanderRedYT%2Fpython-prusa-connect-webcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CommanderRedYT","download_url":"https://codeload.github.com/CommanderRedYT/python-prusa-connect-webcam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243269222,"owners_count":20264009,"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":[],"created_at":"2024-10-12T09:49:50.832Z","updated_at":"2025-03-12T18:23:46.011Z","avatar_url":"https://github.com/CommanderRedYT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-prusa-webcam\n\n## Description\nThis python script allows you to turn any Webcam plugged into your device to turn into a Webcam for Prusa Connect!\n\n## Prerequisites\n- opencv-python (pip install opencv-python)\n- requests (pip install requests)\n\nCurrently, there are hardcoded paths for `video4linux`. If you want to add support for other OSes, please create a pull request.\n\n## Usage\n1. Clone this repository\n2. Run `python3 main.py`\n3. Enter the index from the camera list\n4. Scan the prusa QR Code with the camera\n5. Enjoy!\n\n**or**\n\n1. Clone this repository\n2. Run `python3 main.py --save`\n3. Enter the index from the camera list\n4. Scan the prusa QR Code with the camera\n5. The program will save the entered index and the api token in plaintext in `./webcam.json` (This can be changed by passing `--save \u003cpath\u003e` to the script)\n6. Enjoy!\n\nIf scanning is no option, you can just manually create a `webcam.json` file with the following contents:\n```json\n{\n  \"api_key\": \"\u003capi-key\u003e\",\n  \"camera_path\": \"/dev/video\u003cindex\u003e\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommanderredyt%2Fpython-prusa-connect-webcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommanderredyt%2Fpython-prusa-connect-webcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommanderredyt%2Fpython-prusa-connect-webcam/lists"}