Minimally invasive beekeeping with a Raspberry Pi
Illustrated
Grafana [7] visualizes the acquired data. The software supports numerous data sources, including InfluxDB databases. Because the official Raspbian repositories contain a relatively old Grafana version, we used a current package from GitHub [8].
The Grafana service also needs to be configured to launch automatically after boot with systemctl enable
; the
systemctl start grafana-server
command calls the service, which users can reach from web interface port 3000 (username and password are admin). First, we used Add data source to add the telegraf
database; then, we set up the dashboard to visualize the metrics (Figure 1).

We moved the RPi2B, at first provisionally protected with plastic bags and tape, into the beehive, which is located next to the house wall and can therefore use the existing wireless network (Figure 2).

To make room for the RPi2B and sensor, we took one slat out of the top floor of the two-frame hive. The DHT11 currently measures the temperature at the upper edge of the lower frame. At an outside temperature of 1°C (ca. 34°F), the average Easter weekend temperature was 8°C.
Close to the Bees
The temperatures are higher where the queen lives and where the bees breed (about 35°C, or 95°F). Other beekeepers have three or four sensors in the hives and measure the temperature at the entrance hole, under the lid, and in the lowest frame. You can check out the sensor results of the Hiveeyes project online [9].
With the information from a SunFounder tutorial [10], we experimented with a DS18B20 temperature sensor and a speaker module. To communicate through the GPIO extension board, we installed the Wiring Pi library [11], which provides the gpio
tool (Figure 3).

The idea was to create a measuring device that emits an audible signal when a certain temperature is exceeded. Such a device could be interesting for transporting colonies of bees. If longer distances are planned, a transport grid on top of the hive ensures a sufficient air supply. For shorter distances, however, many beekeepers simply secure the hive with a strap.
When it gets too warm, the bees start flapping their wings to cool down, and when the hive is closed, everything heats up even more – the insects can produce such high temperatures that the combs and honey melt and the bees perish. A signal tone warns the beekeeper during transport and prevents the colonies from buzzing themselves to death while cooling the beehive.
Do Not Miscalculate!
A hive scale is planned for the summer to monitor the weight of the beehives. The beekeepers association in Nettetal, Germany, implemented such a project with an Arduino [12]; the data is presented by the Hiveeyes project. A scale is not only interesting in the summer to observe honey production, it can also be used in winter to better assess whether sufficient food is available. If it remains very cold for a long time, the bees will need more food – you can then see in time whether or not nutrition is becoming scarce.
Infos
- The Hiveeyes Project: https://www.hiveeyes.org
- Open Hive: http://open-hive.org
- Python_DHT sensor library: https://github.com/coding-world/Python_DHT (README in German)
- InfluxDB and Telegraf repository: https://repos.influxdata.com/debian
- InfluxDB: https://www.influxdata.com/time-series-platform/influxdb
- Telegraf: https://www.influxdata.com/time-series-platform/telegraf
- Grafana: https://grafana.com
- Grafana on GitHub: https://github.com/grafana/grafana
- Hiveeyes dashboards: https://swarm.hiveeyes.org/grafana/dashboards
- SunFounder tutorials: https://www.sunfounder.com/learn
- Wiring Pi: http://wiringpi.com
- Arduino bee scale: https://www.imker-nettetal.de/esp8266-beescale-erste-eindruecke (in German)
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Direct Download
Read full article as PDF:
Price $2.95
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
-
Armbian 23.05 is Now Available
Based on Debian 12, the latest version of the ARM/RISC-V distribution is now available to download and install.
-
Linux Mint Finally Receiving Support for Gestures
If you use the Linux Mint Cinnamon desktop, you'll be thrilled to know that 21.2 is getting support for gestures on touchscreen devices and touchpads.
-
An All-Snap Version of Ubuntu is In The Works
Along with the standard deb version of the open-source operating system, Canonical will release an-all snap version.
-
Mageia 9 Beta 2 Ready for Testing
The latest beta of the popular Mageia distribution now includes the latest kernel and plenty of updated applications.
-
KDE Plasma 6 Looks to Bring Basic HDR Support
The KWin piece of KDE Plasma now has HDR support and color management geared for the 6.0 release.
-
Bodhi Linux 7.0 Beta Ready for Testing
The latest iteration of the Bohdi Linux distribution is now available for those who want to experience what's in store and for testing purposes.
-
Changes Coming to Ubuntu PPA Usage
The way you manage Personal Package Archives will be changing with the release of Ubuntu 23.10.
-
AlmaLinux 9.2 Now Available for Download
AlmaLinux has been released and provides a free alternative to upstream Red Hat Enterprise Linux.
-
An Immutable Version of Fedora Is Under Consideration
For anyone who's a fan of using immutable versions of Linux, the Fedora team is currently considering adding a new spin called Fedora Onyx.
-
New Release of Br OS Includes ChatGPT Integration
Br OS 23.04 is now available and is geared specifically toward web content creation.