{"id":18312186,"url":"https://github.com/whomwah/pi-camera-capture","last_synced_at":"2026-05-16T22:35:15.446Z","repository":{"id":256765728,"uuid":"856316452","full_name":"whomwah/pi-camera-capture","owner":"whomwah","description":"Deno script that takes captures and image, syncs to S3 and generates an time lapse movie.","archived":false,"fork":false,"pushed_at":"2025-04-25T15:20:27.000Z","size":904,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-16T19:15:13.365Z","etag":null,"topics":["deno"],"latest_commit_sha":null,"homepage":"https://stmaryswharf-webcam.deno.dev/","language":"TypeScript","has_issues":false,"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/whomwah.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,"zenodo":null}},"created_at":"2024-09-12T11:25:40.000Z","updated_at":"2025-04-25T15:20:30.000Z","dependencies_parsed_at":"2024-09-13T00:32:44.501Z","dependency_job_id":"7851a1a3-1b10-44cd-9915-b89b246d50a9","html_url":"https://github.com/whomwah/pi-camera-capture","commit_stats":null,"previous_names":["whomwah/pi-camera-capture"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/whomwah/pi-camera-capture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whomwah%2Fpi-camera-capture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whomwah%2Fpi-camera-capture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whomwah%2Fpi-camera-capture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whomwah%2Fpi-camera-capture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whomwah","download_url":"https://codeload.github.com/whomwah/pi-camera-capture/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whomwah%2Fpi-camera-capture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33121303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: 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":["deno"],"created_at":"2024-11-05T16:23:03.382Z","updated_at":"2026-05-16T22:35:15.428Z","avatar_url":"https://github.com/whomwah.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webcam\n\nA collection of Deno programs that use a Raspberry Pi camera to take snapshots,\nupload it to S3, and optiontionally create a time-lapse video with the results.\n\n- uses a\n  [Raspberry Pi 4 Model B](https://www.raspberrypi.com/products/raspberry-pi-4-model-b/)\n  and\n  [Pi HQ Camera](https://www.raspberrypi.com/products/raspberry-pi-high-quality-camera/)\n- uses `libcamera-still` to create a snapshot\n- uses `convert` to annotate the snapshot with the current time\n- uses `s3` to upload the snapshot to S3\n- uses `ffmpeg` to create a time-lapse video\n\n## Usage\n\nThe idea is it runs via a cron job that runs at various times during the day.\n\n```\n0 10 * * * /home/webcam/_dev/webcam/webcam \u003e\u003e /var/log/webcam/webcam.log 2\u003e\u00261\n0 16 * * * /home/webcam/_dev/webcam/webcam \u003e\u003e /var/log/webcam/webcam.log 2\u003e\u00261\n*/5 * * * * /home/webcam/_dev/webcam/webcam-live \u003e\u003e /var/log/webcam/webcam-live.log 2\u003e\u00261\n```\n\nYou can use this logrotate configuration to keep the log files in check if you\nneed.\n\n```\n# /var/logrotate.d/webcam\n\n/var/log/webcam/webcam.log /var/log/webcam/webcam-live.log {\n    daily\n    rotate 7\n    compress\n    delaycompress\n    missingok\n    notifempty\n    create 644 webcam webcam\n}\n```\n\nYou can though of course run it manually. Type `deno task` to see the available\ntasks it can run. There are 4. The `build` tasks create an executable file you\ncan use with `cron` for ease.\n\n### webcam.ts\n\n1. Takes photo\n2. Adds a label\n3. Uploads to S3\n4. Optionally created TimeLapse movie\n\n### webcam-live.ts\n\n1. Takes photo\n2. Adds a label\n3. Uploads to S3 and replaces previous\n\nCurrently running on a camera situated in the [Kyan office](https://kyan.com/)\nof the development of the StMarys Wharf project.\n\n- https://stmaryswharf-webcam.deno.dev/\n- https://www.youtube.com/playlist?list=PLLNZI-dmwJyj45BKexQVYLdbpj4xv_ZnB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhomwah%2Fpi-camera-capture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhomwah%2Fpi-camera-capture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhomwah%2Fpi-camera-capture/lists"}