A Birdnet Raspberry pi: Difference between revisions

From Wiki-Fou
Created page with "== Birdnet ? == BirdNET-Pi : Convierta una Raspberry Pi y un micrófono en una estación de escucha en su jardín totalmente autónoma y activa 24/7. Registre, identifique e informe de cantos de aves localmente usando la IA de BirdNET. * https://birdnet.cornell.edu/birdnet-pi/?lang=es * https://github.com/MichaelBernhardt/BirdNET-Pi * https://github.com/tphakala/birdnet-go * https://suncuss.github.io/BirdNET-PiPy/ === Install on the Pi === [https://www.raspberrypi...."
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
BirdNET-Pi : Convierta una Raspberry Pi y un micrófono en una estación de escucha en su jardín totalmente autónoma y activa 24/7. Registre, identifique e informe de cantos de aves localmente usando la IA de BirdNET.
BirdNET-Pi : Convierta una Raspberry Pi y un micrófono en una estación de escucha en su jardín totalmente autónoma y activa 24/7. Registre, identifique e informe de cantos de aves localmente usando la IA de BirdNET.


Desde el projecto initial y la herramientas / libs dessaroladas, hay varias versiones :


* https://birdnet.cornell.edu/birdnet-pi/?lang=es
* Original project https://birdnet.cornell.edu/birdnet-pi/?lang=es
* https://github.com/MichaelBernhardt/BirdNET-Pi
* Ported to Pi https://github.com/MichaelBernhardt/BirdNET-Pi
* https://github.com/tphakala/birdnet-go
* Go implementation https://github.com/tphakala/birdnet-go
* https://suncuss.github.io/BirdNET-PiPy/
* Python implementation https://suncuss.github.io/BirdNET-PiPy/
* Also for Bats https://github.com/rdz-oss/BattyBirdNET-Pi




[[File:BirdNET-Go-dashboard.webp]]
== BirdNET Local Server ==
With the Go implementation, at the end of the installation process (see below), you can browse with a web browser http://raspberrypi.local:8080/ (change raspberrypi with the /etc/hostname of the pi)


=== Install on the Pi ===
=== Install on the Pi ===
[https://www.raspberrypi.com/documentation/computers/getting-started.html#headless-setup Headless set-up] with a debian 13 raspberry pi OS light version
[https://www.raspberrypi.com/documentation/computers/getting-started.html#headless-setup Headless set-up] with a debian 13 raspberry pi OS light version
==== Manual setup for SSH ====
If you didn’t customise the image for remote access using Raspberry Pi Imager in Step 1, you can instead set up SSH manually. On your boot media’s bootfs partition:
    Create an empty file named ssh.
    Create a file named userconf.txt with a single line of text: <username>:<encrypted-password>.
Replace <username> with your username and <encrypted-password> with an encrypted representation of your password.
Username. Your username must start with a letter and can only contain lowercase letters, digits, underscores, and hyphens. Your username can be a maximum of 31 characters.
Encrypted password. Use OpenSSL to generate an encrypted password. From the command line, run openssl passwd -6 and then, when prompted, enter your password and verify it. This command outputs an encrypted version of the supplied password.
  openssl passwd -6
==== Connect the Pi to a local wifi ====
First you have to set-up your country for WLAN on the Pi
sudo raspi-config
To connect your Raspberry Pi to Wi-Fi using the command line interface (CLI), you can use the nmtui tool by entering
sudo nmtui
selecting "Activate a connection," and then choosing your desired Wi-Fi network to connect.
Alternatively, you can use the nmcli command by typing
sudo nmcli dev wifi connect "[SSID]" password "[Wi-Fi password]" to connect directly to the network.
==== Disable internal soundcard ====
cd /etc/modprobe.d
sudo nano alsa-blacklist.conf
Add The Following To The File And Save:
blacklist snd_bcm2835
Then Do A:
sudo nano /boot/config.txt
Change dtparam=audio=on to dtparam=audio=off
Save And Exit.
Then Do:
sudo reboot
==== Install Bridnet-Go via script ====
Debian, Ubuntu, and Raspberry Pi OS:
curl -fsSL https://github.com/tphakala/birdnet-go/raw/main/install.sh -o install.sh
bash ./install.sh
Installation completed!
📁 Configuration directory: /home/birdnet/birdnet-go-app/config
📁 Data directory: /home/birdnet/birdnet-go-app/data
🐦 BirdNET-Go web interface is available at http://172.31.17.146:8080
📋 BirdNET-Go Service Diagnostics
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Service Status: Running
🐳 Docker Container Status:
NAMES        STATUS                        PORTS
birdnet-go  Up About a minute (healthy)  80/tcp, 443/tcp, 8090/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp
💾 Disk Space:
Data directory: /home/birdnet/birdnet-go-app/data
/dev/mmcblk0p2  29G  3.7G  24G  14% /
📚 Helpful Commands:
  Check status:    sudo systemctl status birdnet-go
  View logs:      sudo journalctl -u birdnet-go.service -f
  Check disk:      df -h /home/birdnet/birdnet-go-app/data
  Restart service: sudo systemctl restart birdnet-go
  Container logs:  docker logs birdnet-go
  Health status:  docker inspect --format '{{json .State.Health}}' birdnet-go | jq

Latest revision as of 20:28, 24 August 2026

Birdnet ?

BirdNET-Pi : Convierta una Raspberry Pi y un micrófono en una estación de escucha en su jardín totalmente autónoma y activa 24/7. Registre, identifique e informe de cantos de aves localmente usando la IA de BirdNET.

Desde el projecto initial y la herramientas / libs dessaroladas, hay varias versiones :


BirdNET Local Server

With the Go implementation, at the end of the installation process (see below), you can browse with a web browser http://raspberrypi.local:8080/ (change raspberrypi with the /etc/hostname of the pi)

Install on the Pi

Headless set-up with a debian 13 raspberry pi OS light version

Manual setup for SSH

If you didn’t customise the image for remote access using Raspberry Pi Imager in Step 1, you can instead set up SSH manually. On your boot media’s bootfs partition:

   Create an empty file named ssh.
   Create a file named userconf.txt with a single line of text: <username>:<encrypted-password>.

Replace <username> with your username and <encrypted-password> with an encrypted representation of your password.

Username. Your username must start with a letter and can only contain lowercase letters, digits, underscores, and hyphens. Your username can be a maximum of 31 characters.

Encrypted password. Use OpenSSL to generate an encrypted password. From the command line, run openssl passwd -6 and then, when prompted, enter your password and verify it. This command outputs an encrypted version of the supplied password.

 openssl passwd -6

Connect the Pi to a local wifi

First you have to set-up your country for WLAN on the Pi

sudo raspi-config

To connect your Raspberry Pi to Wi-Fi using the command line interface (CLI), you can use the nmtui tool by entering

sudo nmtui

selecting "Activate a connection," and then choosing your desired Wi-Fi network to connect. Alternatively, you can use the nmcli command by typing

sudo nmcli dev wifi connect "[SSID]" password "[Wi-Fi password]" to connect directly to the network.

Disable internal soundcard

cd /etc/modprobe.d
sudo nano alsa-blacklist.conf

Add The Following To The File And Save:

blacklist snd_bcm2835

Then Do A:

sudo nano /boot/config.txt

Change dtparam=audio=on to dtparam=audio=off

Save And Exit. Then Do:

sudo reboot

Install Bridnet-Go via script

Debian, Ubuntu, and Raspberry Pi OS:

curl -fsSL https://github.com/tphakala/birdnet-go/raw/main/install.sh -o install.sh
bash ./install.sh

Installation completed! 📁 Configuration directory: /home/birdnet/birdnet-go-app/config 📁 Data directory: /home/birdnet/birdnet-go-app/data 🐦 BirdNET-Go web interface is available at http://172.31.17.146:8080

📋 BirdNET-Go Service Diagnostics ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✅ Service Status: Running

🐳 Docker Container Status: NAMES STATUS PORTS birdnet-go Up About a minute (healthy) 80/tcp, 443/tcp, 8090/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp

💾 Disk Space: Data directory: /home/birdnet/birdnet-go-app/data /dev/mmcblk0p2 29G 3.7G 24G 14% /

📚 Helpful Commands:

 Check status:    sudo systemctl status birdnet-go
 View logs:       sudo journalctl -u birdnet-go.service -f
 Check disk:      df -h /home/birdnet/birdnet-go-app/data
 Restart service: sudo systemctl restart birdnet-go
 Container logs:  docker logs birdnet-go
 Health status:   docker inspect --format 'Template:Json .State.Health' birdnet-go | jq