{"id":17162992,"url":"https://github.com/amnuts/trailcam","last_synced_at":"2026-05-14T20:32:21.712Z","repository":{"id":67393548,"uuid":"63819149","full_name":"amnuts/trailcam","owner":"amnuts","description":"Record trail cam videos automatically on movement using a Raspberry Pi","archived":false,"fork":false,"pushed_at":"2019-09-11T20:38:25.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T21:05:30.724Z","etag":null,"topics":["hacktoberfest","python","raspberry-pi","rpi","trailcam"],"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/amnuts.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}},"created_at":"2016-07-20T22:32:42.000Z","updated_at":"2023-09-19T22:32:26.000Z","dependencies_parsed_at":"2023-02-27T16:15:22.339Z","dependency_job_id":null,"html_url":"https://github.com/amnuts/trailcam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amnuts/trailcam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Ftrailcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Ftrailcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Ftrailcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Ftrailcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amnuts","download_url":"https://codeload.github.com/amnuts/trailcam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2Ftrailcam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33042148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["hacktoberfest","python","raspberry-pi","rpi","trailcam"],"created_at":"2024-10-14T22:47:29.344Z","updated_at":"2026-05-14T20:32:21.694Z","avatar_url":"https://github.com/amnuts.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trailcam\n\nRecord trail cam videos automatically on movement using a Raspberry Pi\n\n# Setup\n\nOnce logged into your rpi, clone the repo - it can be wherever you like, but assuming you set this up in `/home/pi`:\n\n```\ngit clone https://github.com/amnuts/trailcam.git\ncd trailcam\n```\n\nIn the trailcam directory you'll see a `config.json` file that looks like:\n\n```\n{\n    \"pir_pin\": 14,\n    \"save_path\": \"/home/pi/Videos/trail-%s.h264\",\n    \"delay_start_seconds\": 30,\n    \"sleep_seconds\": 2,\n    \"record_seconds\": 10,\n    \"debug_output\": false\n}\n```\n\nThe `pir_bin` define what pin the PIR sensor data output is attached to.  Bear in mind that this is *BCM* numbering, but https://pinout.xyz/ is a great site to see what pins are what.\n\nThe `delay_start_seconds` is how long it'll take to start recording from when the script starts - handy if you have it auto-start on the pi booting up.\n\nThe `record_seconds` is how long the video should keep recording for once it doesn't detect any movement.\n\n`sleep_seconds` is how long it'll sleep before running the recording check loop again.\n\nThe `save_path` is where it'll save the file.  The `%s` will be substituted with the current date and time of when the video was recorded.  So if you want the actual date/time then you'll either need an internet connection or a real-time clock module for the rpi.\n\n# Auto-starting\n\nIf you wish to have the script run automatically when you boot the rpi, you can edit the `/etc/rc.local` file and add the following line:\n\n```\n(su - pi -c \"python /home/pi/trailcam/record.py\")\u0026\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Ftrailcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famnuts%2Ftrailcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Ftrailcam/lists"}