{"id":15771513,"url":"https://github.com/trstringer/pypic","last_synced_at":"2026-04-27T23:33:06.672Z","repository":{"id":147740241,"uuid":"76902031","full_name":"trstringer/pypic","owner":"trstringer","description":":movie_camera: raspberry pi video recorder","archived":false,"fork":false,"pushed_at":"2016-12-28T13:47:43.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T15:07:41.861Z","etag":null,"topics":["azure-storage","python-3","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"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/trstringer.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":"2016-12-19T22:22:36.000Z","updated_at":"2017-02-23T21:33:00.000Z","dependencies_parsed_at":"2023-05-27T09:15:08.216Z","dependency_job_id":null,"html_url":"https://github.com/trstringer/pypic","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"df9cc915954ede4073981f02bad6aef193c9bb4b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trstringer/pypic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpypic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpypic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpypic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpypic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trstringer","download_url":"https://codeload.github.com/trstringer/pypic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trstringer%2Fpypic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32360110,"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":["azure-storage","python-3","raspberry-pi"],"created_at":"2024-10-04T15:02:57.107Z","updated_at":"2026-04-27T23:33:06.655Z","avatar_url":"https://github.com/trstringer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pypic\n\n*Take video with a Raspberry Pi and upload it to cloud storage*\n\n## Installation\n\n 1. `$ git clone https://github.com/tstringer/pypic.git`\n 2. `$ cd pypic`\n 3. `$ sudo pip3 install .`\n\n:bulb: **Note**: for cloud storage (benefits? Offsite and redundant storage) you must define the environment variables `AZSTORAGE_ACCOUNT_NAME` and `AZSTORAGE_ACCOUNT_KEY`. A common approach is to put these in `~/.bashrc` as exports, or if you are going to run this on startup with cron put them in `~/.profile` as exports and the cron job would read `@reboot . $HOME/.profile \u0026\u0026 /path/to/pypic -c -d 60 \u0026`\n\n## Hardware\n\nThis has been tested on a `Raspberry Pi 2 Model B` and with a `Raspberry Pi Camera` (Rev 1.3)\n\n## Usage\n\n```\n# list help\n$ pypic -h\n\n# capture a continuous loop of video for 10 seconds (default)\n$ pypic -c -o /video/output/dir/\n\n# capture a 60 second video\n$ pypic -d 60 -o /video/output/dir/\n\n# continuously capture 5 minutes videos\n$ pypic -c -d 300 -o /video/output/dir/\n\n# capture and upload to a non-default container name\n$ pypic -c -d 300 -o /video/output/dir/ -t mycontainer\n```\n\n## Run on startup\n\nIt might be a common request to run `pypic` on startup of a device like a Raspberry Pi (tested with RPi).\n\n 1. Run `crontab -e`\n 2. Add the following to the end `@reboot /path/to/pypic -c -d 60 \u0026` (find the path by running `which pypic`)\n 3. Save and exit the crontab editor\n 4. (Optional) Reboot the device\n\n## Future\n\n - Rolling storage (at least locally and configurable, as it is running continuously will fill storage)\n - Cache for uploading (in the case that there is no internet connection to upload to cloud storage, cache the cloud upload operations until connected)\n - Support other cloud storage providers (currently only supports Azure Blob Storage)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Fpypic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrstringer%2Fpypic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrstringer%2Fpypic/lists"}