{"id":14977884,"url":"https://github.com/garraflavatra/birdbox-2021","last_synced_at":"2026-02-02T12:04:51.681Z","repository":{"id":46821367,"uuid":"385879481","full_name":"garraflavatra/birdbox-2021","owner":"garraflavatra","description":"Place an IR camera in a bird box and watch young birds grow up.","archived":false,"fork":false,"pushed_at":"2022-02-24T16:45:56.000Z","size":6864,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T21:46:23.005Z","etag":null,"topics":["raspberry-pi","raspberry-pi-camera"],"latest_commit_sha":null,"homepage":"https://projects.romeinvanburen.nl/birdbox-2021/","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/garraflavatra.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-14T09:10:34.000Z","updated_at":"2022-04-09T01:09:33.000Z","dependencies_parsed_at":"2022-09-12T02:30:46.740Z","dependency_job_id":null,"html_url":"https://github.com/garraflavatra/birdbox-2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garraflavatra/birdbox-2021","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garraflavatra%2Fbirdbox-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garraflavatra%2Fbirdbox-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garraflavatra%2Fbirdbox-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garraflavatra%2Fbirdbox-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garraflavatra","download_url":"https://codeload.github.com/garraflavatra/birdbox-2021/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garraflavatra%2Fbirdbox-2021/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261453332,"owners_count":23160496,"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":["raspberry-pi","raspberry-pi-camera"],"created_at":"2024-09-24T13:56:29.419Z","updated_at":"2026-02-02T12:04:46.655Z","avatar_url":"https://github.com/garraflavatra.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Bird Box Camera\n\nPlace a [Raspberry Pi](https://www.raspberrypi.org/products/raspberry-pi-4-model-b/) with [infrared camera](https://www.raspberrypi.org/products/pi-noir-camera-v2/) in a bird box and watch young birds grow up, via a YouTube livestream.\n\n![Great tit nest](img/nest.png)\n\nAlso see: my [YouTube playlist](https://www.youtube.com/playlist?list=PLrKDdkHsXac06Yh9iYJ-0kTfuIdsKG7Y2) of great tit nest footage.\n\n## Requirements\n\n- Raspberry Pi with WiFi. You could provide WiFi via a dongle, but the best option is to use a [Raspberry Pi \u003e=3](https://www.raspberrypi.org/products/raspberry-pi-4-model-b/), with built in WiFi.\n- [Raspberry Pi NoIR Camera module](https://www.raspberrypi.org/products/pi-noir-camera-v2/)\n- Infrared LED\n- 220 ohm resistor\n- Some (jumper) wires\n- A bird box!\n\n## How I made it\n\n### The box\n\nMy granddad made a bird box for me. It has a ceiling in it, so the Raspberry Pi and all wiring etc. are protected against all types of weather circumstances (except [football-sized hailstones](https://edition.cnn.com/2020/05/02/weather/gargantuan-hailstones-record-scn-trnd/index.html)).\n\n![The top](img/top.jpg)\n| The box | The top | The power cable |\n|--|--|--|\n| ![The box](img/box.jpg) | ![The top](img/top.jpg) | ![The power cable](img/power.jpg) |\n\n### Wiring\n\n**NOTE:** you may have to focus your lens. See [this guide](https://www.jeffgeerling.com/blog/2017/fixing-blurry-focus-on-some-raspberry-pi-camera-v2-models) to ajusting the camera focus.\n\n![Wiring](img/bb.png)\n\n![Schema](img/schema.png)\n\n## Streaming\n\nYou may use another streaming service, but my Pi streams the nest footage to YouTube using a simple [Python script](youtube.py). You'll need to set up YT:\n\n1. Log in to YouTube and click your profile image. Click _YouTube Studio_.\n\n   ![Open YT Studio](img/studio.png)\n\n2. Click the _Go Live_ icon in the top right.\n\n   ![Go live](img/live.png)\n\n3. Set up your stream.\n\n4. You'll now get a streaming key; copy it.\n\n   ![Streaming key](img/key.png)\n\n5. Clone this [repository](https://github.com/garraflavatra/rpi_birdbox_camera) (or just the two files [`youtube.py`](https://github.com/garraflavatra/rpi_birdbox_camera/blob/main/youtube.py) and [`youtube-key.txt`](https://github.com/garraflavatra/rpi_birdbox_camera/blob/main/youtube-key.txt)) to `/opt/birdbox/`.\n\n6. Paste the streaming key into `youtube-key.txt` and replace all other content with it.\n\n7. Execute the script:\n\n   ```bash\n   python3 /opt/birdbox/youtube.py\n   ```\n\n8. You can now see the footage, live!\n\n   ![An empty nest](img/empty.png)\n\n   _Yes, there's been a [great tit](https://en.wikipedia.org/wiki/Great_tit) family here before._\n\n---\n\nGood luck and thanks for checking out this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarraflavatra%2Fbirdbox-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarraflavatra%2Fbirdbox-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarraflavatra%2Fbirdbox-2021/lists"}