mcguirepr89 / BirdNET-Pi

A realtime acoustic bird classification system for the Raspberry Pi 4B, 3B+, and 0W2 built on the TFLite version of BirdNET.
Other
1.31k stars 139 forks source link

Birding-Pi Statistics window not scrollable #28

Closed DD4WH closed 3 years ago

DD4WH commented 3 years ago

if you click on "Recognized Birds" you get a nice statistics window with a species list and the no. of detections and max confidence scores. However, as the window fills with more species over time, it is no longer possible to see the top of the list, because the page is not scrollable. I illustrate this with a screenshot of my RPi where I attached a 5`` TFT screen with a resolution of 800x480.

The species list has 29 entries in this example:

grafik

The problem is also present with higher resolutions and in windows opened on other computers in the same home network.

mcguirepr89 commented 3 years ago

Hi, Frank -- thanks for opening this issue -- it's very helpful in tracking changes to have issues as issues

I have noticed several buggy things about the stats page. I've decided that it needs to be replaced fully with PHP that reads from the database (now that there is a database!). Using the database to query those stats instead of shell scripting to parse that info will be much quicker and more accurate (since it won't rely on everything staying structured manually, since the DB will keep that structure). The actual issue with scrolling is due to the tmux (that purple status bar at the bottom) that doesn't allow scrolling.

Until I have a new bird stats page built, it is possible to remove the tmux from the stats page to regain the ability to scroll. This is a temporary manual fix that you can try only if you're interested. If not, I will let you know when I've made a better statistics page. (Also, the newest iteration that is now on the main branch includes a "view database" button that is very informative, but no Raspberry Pi hardware statistics. Screenshot from 2021-10-14 08-49-56 )

If you want to remove tmux for now, copy and paste the commands below into your terminal:

sudo sed -i 's/tmux new -A -s birdstats//' /etc/systemd/system/birdstats.service
sudo systemctl daemon-reload
pkill tmux
sudo systemctl restart birdstats.service
DD4WH commented 3 years ago

those commands work! I can now scroll the "stats" window! Thanks a lot, Patrick for your seemingly never ending energy focussed on this project!

Yes, when I find the time, I will install the new version and have a look at it. At the moment, my time is limited and the frequency of you issueing new versions is too high for me to keep track with ;-)

mcguirepr89 commented 3 years ago

I'm glad that works for you. Since my last comment, I've reworked the database view and it now is more like this: Screenshot from 2021-10-14 09-33-55

mcguirepr89 commented 3 years ago

I'm closing this issue as I have done away with the BirdNET-Pi Statistics page in lieu of the new viewdb.php