Charly's Birds
Charly's Column – Motion Detection
Charly ran a first-generation Rasp Pi for years in the birdhouse in his garden, but the Rasp Pi eventually fell foul of marauding wasps. Now Charly has replaced it with an RPi3 featuring a NoIR cam and motion detection.
After a swarm of wasps finished off the first-generation Raspberry Pi I had been using in a birdhouse in my garden for the past five years, I knew it was time for a replacement – after all, there have been some massive technical advances in the meantime.
Let's look at my hardware first, and I mean the birdhouse. For my purposes, it has to be one with two chambers: one for the technology, and the other for the birds. Carpentry workshops operated by the prisons in North Rhine-Westphalia, Germany, provide good quality birdhouses in several kinds of wood [1]. I chose the high-rise model in Figure 1, which has two chambers arranged one above the other.
A third generation Raspberry Pi with a Pi NoIR camera provides the livestream. As the name NoIR suggests, this is a model that can handle low light conditions, because it does not have an infrared filter. With a small infrared diode, which the birds do not notice, you have a perfect view of what is happening in the nesting chamber.
While I previously covered motion detection software in the December 2019 issue of Linux Magazine [2], I would like to introduce a software project that integrates all the necessary components and is very easy to install: the RPi Cam Web Interface [3].
As a base, you only need a recent Raspbian installation. You then call
sudo raspi-config
and enable the camera interface there. Next, clone the software with the following command:
$ git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface
In the newly created directory, call
sudo ./install.sh
sudo
is required here, because the installation program has to install additional packages. During the installation, you can influence several parameters. Since the programmer chose sensible default settings, they don't really need to be changed unless you have low-performance hardware, such as a Pi Zero. In that case, you will want to replace the resource-hungry Apache web server with the more frugal lighttpd.
After a reboot, the livestream waits for me to access it on the Raspberry Pi's IP address (Figure 2). At the push of a button (motion detection start), I launched the motion detection setup. Let's hope that there is no swarm of wasps to spoil the fun this time.
Infos
- Birdhouses: https://www.knastladen.de/Artikelauswahl/Garten-Freizeit/Vogelhaeuser/ [In German]
- "Charly's Column – ntpd" by Charly Kühnast, Linux Magazine, issue 229, December 2019, p. 45
- RPi Cam Web Interface: https://github.com/silvanmelchior/RPi_Cam_Web_Interface
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.