This is the application that runs on a raspberry pi, placed in a bee hive and performs the following: i) Capturing of the images ii) Recording of Videos iii) Recording of Audio sounds of the bees iv) Saving collected data on an SD card and sending to a remote server.
- Raspberry Pi4
- Raspberry Pi Camera Module 2
- USB microphone
- Power supply
- 32-bit Raspberry Pi OS(Strictly 32 bit)
- Git
- Internet Connection (Wifi)
- Python3
Go to the terminal and run the following command to clone the project of the Raspberry Pi
https://github.com/ademnea/hiveMonitor.git
When it runs successfully you will have the Raspcapture-client on the Pi After that ensure that you go to the Raspcapture folder Run the command below
cd hiveMonitor
Build the project by running the commands
python build.py
cd ..
cd hiveMonitor
This will build a version that is compatible with your raspberry Pi
sudo ./install.sh
python setup.py
There are two scripts
-
- capture.py - Captures the images, records both audio and video, saves them their information to a database
-
- client.py - Sends the saved media files with the help of a database to the remote server.
Ensure that the camera is enable otherwise the capture will not be successful You can run the command below to see the configurations for your raspberry Pi
sudo raspi-config
This is done by running the command below
python capture.py
This is effected by the command
python client.py
To automate the process of capturing and sending of the files cron jobs have to be set up to run both scripts