Late 2024 alternate install walkthrough #307
Replies: 6 comments 6 replies
-
Thank you, this was very helpful! |
Beta Was this translation helpful? Give feedback.
-
This is great and I'm close but I'm sorry I have a newbie question... |
Beta Was this translation helpful? Give feedback.
-
@farski Thanks for this! Are you possibly still running this along side birdnet-pi on the same machine? If so, have you had any problems with that? or did you have to make any adjustments? |
Beta Was this translation helpful? Give feedback.
-
I just wanted to thank you for this guide - I used your docker compose file and it worked great. The docker log was complaining about I added |
Beta Was this translation helpful? Give feedback.
-
hello! trying to install birdnet go on a raspberry pi 4b and following your instruction. how do you do step 4 and 6 though?
would you be using ssh to do that as well? if so, how? I've successfully installed birdnet go but couldn't make it work without the pi being connected to wifi and the ssh command to execute docker... am i right thinking using the "compose" file will allow the pi to work independently and offline? |
Beta Was this translation helpful? Give feedback.
-
Unless you know exactly what you are doing and have specific need to use compose method explained here, I would ask you to use install.sh method instead. curl -fsSL https://github.com/tphakala/birdnet-go/raw/main/install.sh -o install.sh
bash ./install.sh |
Beta Was this translation helpful? Give feedback.
-
In case this is helpful for anyone, I just rebuilt my birdnet box. I had been running birdnet-go for a while, but using the binaries, and on a Pi that had previously been running BirdNET-Pi. I started over, using Docker from the beginning. This is on a Pi 4B. I did things a bit differently than the standard install docs.
These instructions assume some basic Linux and Docker knowledge. I know not everyone installing birdnet-go does computers for a living, so if anything needs to be expanded, please ask – I'm happy to explain.
Installed Raspberry Pi OS Lite on an SD card using the RP imager
Installed Docker Engine by following their guide. (Note: a lot of links on Docker's website will take you to the install guide for Docker Desktop, even when you're on pages for Docker Engine. If you want only Docker Engine, make sure you know what page you're looking at).
Followed the steps to manage Docker as a non-root user
I made two directories for birdnet-go assets:
~/birdnet-go/data
and~/birdnet-go/config
Follow the steps in Deciding ALSA_CARD value
Created a
~/birdnet-go/compose.yml
fileRun
docker compose up -d
. Because of therestart
directive incompose.yml
, Docker Compose should keep birdnet-go running, even in the event of a crash or something like that.I also wanted to backup my birdnet database everyday, so I added this to my crontab:
15 0 * * * cp /home/birdnet/birdnet-go/data/birdnet.db /home/birdnet/birdnet-go/data/birdnet.bak.db && AWS_ACCESS_KEY_ID=tktktk AWS_SECRET_ACCESS_KEY="tktktk" AWS_DEFAULT_REGION=tktk aws s3 cp /home/birdnet/birdnet-go/data/birdnet.bak.db s3://my-backup-bucket/daily/birdnet.bak.db
.You'd need the AWS CLI (I used
sudo apt install awscli
even though that's not what AWS recommends). You'll need to sort out creating a bucket in AWS and setting up the key/secret if you wanted to do this. Or you could do something similar with many other file hosting services, rsync, sftp, etc. The only tricky bit in here is thataws s3
does an MD5 check to ensure the upload is valid, and the database file may change during the upload. So first this copies the DB to a backup file and pushes that to S3.(Update: 2024-12-20) I've also added another crontab entry, to automatically update the
dev
docker image and restart the container every night:15 1 * * * cd /home/birdnet/birdnet-go && docker compose pull && docker compose up -d
Beta Was this translation helpful? Give feedback.
All reactions