{"id":14977982,"url":"https://github.com/robotrapta/garden-watcher","last_synced_at":"2025-10-28T07:31:10.907Z","repository":{"id":244700011,"uuid":"813920311","full_name":"robotrapta/garden-watcher","owner":"robotrapta","description":"Artificial Dog to bark at deer and other garden pests using Raspberry Pi and Groundlight","archived":false,"fork":false,"pushed_at":"2024-06-19T01:45:15.000Z","size":5711,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:44:13.436Z","etag":null,"topics":["computervision","gardening","raspberrypi"],"latest_commit_sha":null,"homepage":"","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/robotrapta.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":"2024-06-12T02:06:08.000Z","updated_at":"2024-11-29T06:49:13.000Z","dependencies_parsed_at":"2024-06-17T17:42:01.459Z","dependency_job_id":null,"html_url":"https://github.com/robotrapta/garden-watcher","commit_stats":null,"previous_names":["robotrapta/deerbark","robotrapta/gardenwatcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotrapta%2Fgarden-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotrapta%2Fgarden-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotrapta%2Fgarden-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robotrapta%2Fgarden-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robotrapta","download_url":"https://codeload.github.com/robotrapta/garden-watcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238614431,"owners_count":19501457,"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":["computervision","gardening","raspberrypi"],"created_at":"2024-09-24T13:56:38.297Z","updated_at":"2025-10-28T07:31:10.352Z","avatar_url":"https://github.com/robotrapta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Garden Watcher\n\nUses [Computer Vision](https://pypi.org/project/groundlight/) to keep an automated\neye on your garden.  If it detects any animals in the scene, it plays a sound of a barking dog\nthrough the loudspeaker to scare away the animals.\n\n## Motivation\n\nI'm trying to establish woodsorrel clovers as a beautiful groundcover.  But I'm having trouble getting them established.  Because deer keeping eating them.  So I set up a raspberry pi with a loudspeaker and a camera to bark at the deer.  It's all running on power-over-ethernet.\n\n[\u003cimg src=\"./media/needs-protecting.jpeg\" alt=\"Woodsorrel needs protecting\" height=\"220\"\u003e](./media/needs-protecting.jpeg)\n[\u003cimg src=\"./media/the-enemy.jpeg\" alt=\"The Enemy\" height=\"220\"\u003e](./media/the-enemy.jpeg)\n[\u003cimg src=\"./media/our-tool.jpeg\" alt=\"Our tool\" height=\"220\"\u003e](./media/our-tool.jpeg)\n[\u003cimg src=\"./media/the-tech.jpeg\" alt=\"Our tool\" height=\"220\"\u003e](./media/the-tech.jpeg)\n[\u003cimg src=\"./media/poe.jpeg\" alt=\"Power over ethernet\" height=\"220\"\u003e](./media/poe.jpeg)\n[\u003cimg src=\"./media/the-whole-scene.jpeg\" alt=\"The whole scene\" height=\"220\"\u003e](./media/the-whole-scene.jpeg)\n\n\n# Setting up\n\n## Installing python dependencies\n\n```\npip3 install -r requirements.txt\n```\n\n## Camera configuration and preview\n\nYou need to customize the `framegrab.yaml` file to point to the correct camera.\nSee [framegrab](https://github.com/groundlight/framegrab) for reference, but this\nfile is a pretty good starting point.  It can use a local Raspberry Pi or USB camera,\nor most any networked RTSP camera.  \n\nYou can check that the camera code is all working properly by seeing a preview in\nyour terminal (if you have an advanced terminal program such as\n[iTerm2](https://iterm2.com/)).\n\n```\npython3 trycamera.py\n```\n\n\n## Checking the sound\n\nMake sure the sound is working properly:\n\n```\npython3 dogsound.py\n```\n\nIf you'd like a different sound, just install a new `.mp3` file.\n\n\n## Groundlight account setup\n\nYou can use a free Groundlight account.  Then get an\n[API token](https://code.groundlight.ai/python-sdk/docs/getting-started/api-tokens) and save it as an environment variable:\n\n```\nexport GROUNDLIGHT_API_TOKEN=\"api_...\"\n```\n\n\n## Running the real thing\n\n```\npython3 app.py\n```\n\nYou might want to edit the motion detection parameters to make it more or less sensitive.\n\n\n## Hardware\n\nI used a Raspberry Pi 4 with a camera module.  It will work anywhere you have the right python\nand libraries installed.  I used Groundlight's [pre-built Raspberry Pi image](https://github.com/groundlight/groundlight-pi-gen).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotrapta%2Fgarden-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobotrapta%2Fgarden-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobotrapta%2Fgarden-watcher/lists"}