BirdNET discussion

Carrying on from the solved BirdNET Feature Request.

In addition to the information in that closed FR topic, some useful links:

BIrdNET-Go link: GitHub - tphakala/birdnet-go: Realtime BirdNET soundscape analyzer (make sure to check out the wiki and discussion sections)

BirdNET-Pi link: GitHub - Nachtzuster/BirdNET-Pi: A realtime acoustic bird classification system for the Raspberry Pi 5, 4B 3B+ 0W2 and more. Built on the TFLite version of BirdNET.

Home Assistant BirdNET-GO add-on: hassio-addons/birdnet-go at master Ā· alexbelgium/hassio-addons Ā· GitHub

Home Assistant BirdNET-Pi add-on: hassio-addons/birdnet-pi at master Ā· alexbelgium/hassio-addons Ā· GitHub

If you connect your BirdNET (Pi or GO) to Birdweather or Have a BirdWeather Puc see this dashboard project: Bird detector sensors and dashboard

Options for displaying Birdnet detections in a markdown card via MQTT: Displaying Birdnet-go detections

3 Likes

The original BirdNet-Pi project seems moribund – but of recent forks, this one seems best: GitHub - Nachtzuster/BirdNET-Pi: A realtime acoustic bird classification system for the Raspberry Pi 5, 4B 3B+ 0W2 and more. Built on the TFLite version of BirdNET.

Hi, thanks for this compilation of links !

Could you please indeed make two corrections to the initial post :

  • birdnet-pi : the Nachzuster’s fork solves many issues : x64 support, lighter on resources with a server.py optimization (works on rpi5;4;3 but even Pi Zero-2W), with a recent emphasis on adding UI improvements & feature requests
  • there is also an HA addon for birdnet-pi in my repo here : hassio-addons/birdnet-pi at master Ā· alexbelgium/hassio-addons (github.com). I actually mostly update the b-pi one as it is coded in bash/php/py which is much easier for me to customize

Thanks!

1 Like

Done and done.

Also was anyone going to point out I spelled it PirdNET in multiple places? :laughing:

2 Likes

Is there a Dashboard for displaying data from my BirdNet-Pi or its birdweather page? Or do I have to borrow the code that in linked to in this thread?

The BirdNet-Pi is a different device than my Home Assistant server, because I don’t want to run my HA server outdoors. :7)

(Also: thank you, @alexbelgium – this is great!!)

1 Like

Thanks ! The original (oldest at least) integration with mqtt of BirdNET pi that I was made aware of by Loyd Bailey is : Show Bird Pi detections in Home Assistant | Phill Price and a discussion Home Assistant Sensor Display Possible Issue Ā· Nachtzuster/BirdNET-Pi Ā· Discussion #20 Ā· GitHub

Ps : my rpi with HA is also in my house and the microphone around 25m away

EDIT : I’ve implemented MQTT push in the birdnet-pi addon ; it will publish detections to the ā€˜birdpi’ topic to avoid interference with the go addon (based on BirdNET to MQTT publishing for Home Assistant consumption (github.com))

1 Like

By the way, an interesting resource to add to the main post is how to use a rpi to convert a USB signal to rtsp to be used in Birdnet Pi/Go. This can be a critical factor in migrating Birdnet from a dedicated device to the HA addon. Here is a very detailed description (using mediamtx and ffmpeg) : RTSP + USB Audio - Simultaneous Sources? Ā· mcguirepr89/BirdNET-Pi Ā· Discussion #1006 Ā· GitHub

1 Like

Thanks for putting this resource together @tom_l
I just installed the mcquire89 version yesterday on a spare RPi4. Having now read a little deeper, I see it might be wise to shift to a different product/fork - now is the time to do it before I go any further. I had got it down to the two in your list the Nachtzuster and the Birdlink-Go options when I found your post. Is there any feeling for which is the better way to go - I have no particular preference apart from that it does basically the same as what the original BirdNET-Pi does and there is some ongoing active support and development.

I’d be interested to hear other people’s experience of the two options.

I don’t intend to run as an add-on on my Home Assistant Box, but I think some integration would be nice.

Thanks very much again.

Thanks for all the work on this project. I love it, and it’s one of my favorite parts of home assistant. Is there any chance of making a version of this that includes the battybirdnet-pi project?

2 Likes

I’ll look at it ; but it would be great if the different projects converged on a single platform with different recognition database

2 Likes

That’d be cool. Just hung a bat house last night with my boys, and they asked me if I can do what I do with the birds, but with the bats, lol. Let me know if there is anything I can do to help.

1 Like

I’ve pushed a first version of battybirdnet-pi. As it is built on the birdnet-pi infrastructure I am quite hopeful for it to work fast. For bugs and further communication, please use the repo here Issues Ā· alexbelgium/hassio-addons (github.com) instead of this thread so we don’t highjack it too much :slight_smile:

By the way, battybirdnet-pi is only published for aarch64

3 Likes

Anybody seeing instability with the addon? Seems to crash daily with:

Restarting audio capture
Restarting audio capture
Restarting audio capture
Restarting audio capture
Restarting audio capture
2024/08/27 04:00:56 Restarting FFmpeg.
2024/08/27 04:00:52 Error reading from ffmpeg: EOF
2024/08/27 04:01:07 [alert] 365#365: unknown process 379 exited on signal 9

Getting Birdnet-Pi working lately has been a lot of fun and a good learning curve for me as a HASS novice.

I started out using the microphone on one of my security cameras by way of an RTSP feed, but the quality was poor and I got very few detections. I was thinking about buying something and then realised I could easily turn an old Android phone into an RTSP streamer. So, an old Galaxy S4 is outside listening for birds. It is a simple case of installing a ā€œturn your phone into a wifi cameraā€ app and then utilising the audio component of the stream for Birdnet-Pi.

Then I had some trouble getting a Home Assistant card to look the way I wanted it to, but I am now reasonably happy with it. Trouble is it’s the same bird 99% of the time; they are not called Noisy Miners for nothing.

Plant some different plants. I get seed eaters and nectar drinking birds at different times of the year depending on what is flowering / seeding.

Oh, I live next to a creek and bushland and we get a fair range of birds. The Noisy Miners are just the noisiest, so just as soon as something else is detected, it gets knocked off the ā€œlatestā€ perch by a Noisy Miner again. Then at certain times of day it’s Musk Lorikeets. But mostly it’s Noisy Miners.

Noisy! Some of them get weird and tap on the windows with their beaks too, just to be even noisier.

Hey! I used Birdnet on a VM and would like to switch to a HASSIO Addon now. I installed Birdnet-Pi and would like to add my RSTP Cameras, however, I get the following errors in the logs.

Stream map '1:a:0' matches no streams.
To ignore this, add a trailing '?' to the map.
[rtsp @ 0x555edb1c27c0] method SETUP failed: 461 Unsupported transport
[rtsp @ 0x555edb1cfcc0] method SETUP failed: 461 Unsupported transport

I am using two cameras, the format is as follows (it uses the frigate restreams on the same host (different vm) and works in vlc

rtsp://192.168.1.2:8554/Gartencam_rechts_high

does anyone have any idea why it doesnt work?

Thought I’d give this a go. I installed the birdnet-go add on, and then am trying to follow instructions from the repository there.

As per - hassio-addons/birdnet-go/HAINTEGRATION.md at a3ac4cadcab9f41e08f9f93024714a8718c1dbba Ā· alexbelgium/hassio-addons Ā· GitHub

I have Misquitto broker running, and therefore when I start the add-on, in the logs I get the notification:

BirdNET-Go log snipped showing MQTT details:
/etc/cont-init.d/33-mqtt.sh: executing
---
MQTT addon is active on your system! Add the MQTT details below to the Birdnet-go config.yaml :
MQTT user : addons
MQTT password : Ri5ahV1aipeiw0aelerooteixai5ohtoeNg6oo3mo0thi5te0phiezuge4Phoore
MQTT broker : tcp://core-mosquitto:1883
---

Edit this section of config.yaml found in addon_configs/db21ed7f_birdnet-go/:
   mqtt:
       enabled: true # true to enable MQTT
       broker: tcp://core-mosquitto:1883 # MQTT (tcp://host:port)
       topic: birdnet # MQTT topic
       username: addons # MQTT username
       password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # MQTT password

However, for the life of me I can’t find the config.yaml file in ā€˜addon_configs/db21ed7f_birdnet-go/’. I don’t seem to have any such directory when I open HA’s file editor.

At the top of the linked page above, it mentions that Your Home Assistant must be setup with MQTT and BirdNET-Go MQTT integration must be enabled.

Is it talking about the add-on that I’ve just installed? Or is there an integration as well that I just can’t find anywhere in the documentation?

Thanks, your help is greatly appreciated.

I don’t use it but I’m pretty sure the file editor can only access the home assistant container. If you want easy access to other containers (like addon_configs) install the SAMBA share add-on. You can then browse all your shares from your PC.

However having said that I’m pretty sure you can set up mqtt from within the Birdnet web interface now (under settings).

1 Like

Thank you!

I was able to connect to the MQTT server, and then get my RTSP stream configured correctly from a security camera. Checking the logs of the addon suggests these are both working correctly.

In the Birdnet-go UI however, the microphone at the top suggests that there are no audio sources available.

There’s an option for soundcard capture, and my choices there are ā€˜no sound card capture’ or ā€˜monitor of dummy output’. Currently the ā€˜no sound card capture’ is set. Do I need a sound card of some sort if using an RTSP stream? Should there be other options to select here? Perhaps I need to pass through the sound card to the VM in proxmox?

No idea where to go from here.

EDIT: I should also note that it’s definitely not detecting. Used my phone with a bird call app to simulate detection of a few common Australian birds.