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.
https://birdnetpi.com
Other
161 stars 21 forks source link

Top 10 stuck at 23:59 #6

Closed Sparkybreno closed 8 months ago

Sparkybreno commented 8 months ago

IMG_3526

PLEASE READ THE DOCUMENTATION BEFORE SUBMITTING AN ISSUE

Describe the bug On the overview page the top 10 stops at 11:59. It does correct itself at some point during the day.

Screenshots Attached

Additional context My Timezone is in Australia, possibly related to this

Your build Pi 4B

Aixsponsa commented 8 months ago

I also have a top 10 issue that may be related. The plot chart image switches to the next date at some point during the day leading to a broken image. The next day that image is showing since the dates match up again. Also, maybe I am misremembering but doesn't the top 10 usually go back to 0 the next day? Mine has showed what looks to be the same plot every day, or it's just adding to the previous days data.

EDIT: Just peaked through the commits and I think starting the plot with yesterday's data is intended.

Sparkybreno commented 8 months ago

Looks like oripy may have sorted this in his fork?

Nachtzuster commented 8 months ago

Thanks for reporting could you run these commands:

stat ../BirdSongs/Extracted/Charts/Combo-2024-02-19.png
stat ../BirdSongs/Extracted/Charts/Combo-2024-02-20.png
timedatectl

also could you get the log of chart_viewer.service from before midnight to when it managed to correct itself?

sudo journalctl -u chart_viewer.service --no-pager -S '2024-02-19 23:50:00'

Sparkybreno commented 8 months ago

I have this, I won’t be able to extract the log until I get home from work. IMG_3528

Nachtzuster commented 8 months ago

@Sparkybreno Thanks! Looks like the charts do get generated as expected: first created early in the morning when the first bird is detected, last updated shortly after midnight. So, no need to get the log anymore

Looking at the PHP code to get the chart (that is quite the can of worms) I think the timezone is not handled correctly there.

Nachtzuster commented 8 months ago

@Sparkybreno Could you try out this testing branch? First reset your remote:

git remote remove origin
git remote add origin https://github.com/Nachtzuster/BirdNET-Pi.git

then switch to the testing branch: ./scripts/update_birdnet.sh -b fix_timezone

Sparkybreno commented 8 months ago

IMG_3529

That has sorted it. Will monitor how it goes tomorrow morning.

Sparkybreno commented 8 months ago

Day 2, all is well. It briefly displays yesterday’s table first thing in the morning but is quickly replaced by the correct table. Happy with that

Nachtzuster commented 8 months ago

Great. Fix is merged with main now. To get your install back to the main branch, got to Tools->System Controls->Update