Installation - LukasMert/Birdbox_Owncloud_Python GitHub Wiki
The Python program
The programma is called pythonscript.py
. You can find it in the map BirdBox.
The program will ensure that the camera will record the images when the bird is in the birdbox. He does this for 5 minutes because otherwise the film will be too long. If he is still in it after those 5 minutes, he will film again for 5 minutes. When the bird goes out, the recording will stop immediately. The images are stored on a USB stick.
Detailed explanation
In the Python program you will first mount the USB stick that you have inserted into your USB stick. this is necessary because otherwise you cannot set up or collect files. Then he will check whether a movement is detected, whether or not a bird. If motion is detected your camera will turn on and a counter will count to 5 minutes. This can be adjusted in the program. As long as there is movement, the program will make movies of 5 minutes. If no more movement is detected, the entire program will go into "rest" mode until a new movement is detected.
File sharing
Why Owncloud
Owncloud is a file sharing system. Here you can get your files from. I use owncloud because it is an easy and fast system. It would not have been user-friendly to remove the USB stick from the Raspberry Pi when it is in the bird box with maybe birds in it.
Owncloud is installed when the installation script is run.
Do you want to install Owncloud separate you can follow the link below:
https://www.avoiderrors.com/owncloud-10-raspberry-pi-3-raspbian-stretch/
Wifi network
Why do we use a WiFi network?
Using WiFi has a number of advantages. You can connect wirelessly to a network. Because we do not always want to remove the USB stick from the bird's nest and do not want to plug in a network cable, WiFi is the best option, you can simply connect to the WiFi and then remove all the files via owncloud.
You can change your wifi ssid and password in the file /etc/hostapd/hostapd.conf
.
- ssid=NETWORK
- wpa_passphrase=PASSWORD
Do you want to create your own wireless access point? Follow the link below.
https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/