alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.36k stars 193 forks source link

✨ [REQUEST] Birdnet-Go #1385

Open matthew73210 opened 1 month ago

matthew73210 commented 1 month ago

Checked

Which addon?

Birdnet-go

Is your feature request related to a problem? Please describe

No it is not.

Describe the solution you'd like

Hey! Would it be possible to have the addon autmoaticlly map (instead of adding it to config) the share patition so that clips and webui.log are availble at the get-go? Cheers

matthew73210 commented 1 month ago

Sometimes birdnet-go stops analysing, would there be a way to monitor the logs and if it does say not get a reading for 10 mins restart the container?

alexbelgium commented 1 month ago

Sometimes birdnet-go stops analysing, would there be a way to monitor the logs and if it does say not get a reading for 10 mins restart the container?

Hi, I've done that for birdnet-pi but it was much easier as based on services. I'll have to look how to do it for the go version

alexbelgium commented 1 month ago

For your main question you can already do it by mapping a drive and using the relative path (such as /mnt/NAS/Clips instead of the default "Clips" which is relative to the home folder)

I could do it by default i'll have a look

deadrubberboy commented 1 week ago

Hi Alex! What are the differences between Pi and Go? Can you still join bird weather with go? As you know I've been testing and playing with Pi and enjoying it. I am curious about the lower system load of Go though.

Also - is it possible to run your Bridget-Pi as a stand alone docker container outside of Home Assistant?

alexbelgium commented 1 week ago

Hi, here is my view from what I know :

Both can join birdweather!

I'm all for the dev of a new system but as I user I'm selfishly using birdnet-pi as it is much more mature with features of analysis, deletion, species change... Also it is based on php/py/sh which means I can contribute as a contrary of birdnet-go that is in go which I know nothing about.

Currently you can't run it as a standalone container but I think another user was developing one...

deadrubberboy commented 1 week ago

Thanks! Considering I don’t use the change species. Would I lose anything going to your Go Addon? Is species detection just as good on Go?

alexbelgium commented 1 week ago

I haven't really tested it! What you could do is run both add-ons in parallel with the same rtsp feed. I've ran 2 birdnet pi add-ons in parallel without any impact on performance of the rpi4!

deadrubberboy commented 1 week ago

Got it. What about Size? That's really the problem I'm running into more. My HA VM was 20gigs and now it's 60 and I'm trying to figure it why.

alexbelgium commented 1 week ago

I'm not sure about size ; birdnet-pi is based on "ghcr.io/linuxserver/baseimage-debian:arm64v8-bookworm" and birdnet-go on "ghcr.io/tphakala/birdnet-go:dev"

Try running ha su repair it will remove all dangling images that take a lot of place

deadrubberboy commented 1 week ago

Thanks! I got birdnet-go running. Is there a way to tell it to purge recordings daily or anything? Also, the log and stats both say "nothing here yet" even though it is detecting. Am I just being impatient? 🙂

deadrubberboy commented 1 week ago

update: found the yaml that I can set logs to "true" - will that also be stats?

alexbelgium commented 1 week ago

Thanks! I got birdnet-go running. Is there a way to tell it to purge recordings daily or anything? Also, the log and stats both say "nothing here yet" even though it is detecting. Am I just being impatient? 🙂

I'm not sure I think there is a purge but without much granularity - that's why I'm using birdnet-pi (I'm also developing a feature to keep only the best & latest recordings to avoid having too much data)

For the log and stat I think it's because it is placeholder pages

deadrubberboy commented 6 days ago

I started using the birdnet go. I uninstalled birdnet pi and my home assistant full backup size went from almost 8gigs down to 400k. That seems unrealistic. Anything that would make that true? I fear my backups are somehow incomplete now?

alexbelgium commented 6 days ago

In a backup you can look in the zip which files take a lot of place. It could be simply the mp3 files from the saved detections, and birdnet go will fill the same in some time

deadrubberboy commented 6 days ago

They don’t purge at some point?

alexbelgium commented 6 days ago

When the disk is at 95% capacity :) I'm writing a feature in birdnet pi to define a maximum of recordings to keep per species. For example i had 47k mp3 recordings of blackbird. The objective will be to keep the last 7 days, plus x (for example 1000) recordings sorted by highest confidence