tphakala / birdnet-go

Realtime BirdNET soundscape analyzer
Other
137 stars 14 forks source link

Adding some stats to MQTT messages #142

Open d0ugal opened 1 month ago

d0ugal commented 1 month ago

Hey, I set this up the other day and it's been great so far. Feels way more modern than the others. Great job!

I enabled MQTT so I could do notifications from Home Assistant. However I could do with some more context in the messages.

What do you think about adding number of sightings in a given day to MQTT or some other stats?

I don't really want to be notified for every bird visit but maybe the first time the bird has been seen that day (or that week?).

I'd be interested in helping with this if this would be a welcome change.

d0ugal commented 1 month ago

This might have some overlap with #70

tphakala commented 1 month ago

Hi @d0ugal, thanks for feedback!

I don't personally use MQTT so I would not know how to improve it, if you are willing to work on improvements I would be happy to merge them. Your suggestions sound fine.

d0ugal commented 1 month ago

Thanks - I'll take a look. I guess more broadly this is about notifications which is why this overlaps with #70.

It would be nice to solve this generally so it can be used beyond MQTT. Then just use it as part of the data payload for MQTT.