Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: option to have Daily Charts to have solid background #289

Open
Chewie9999 opened this issue Feb 19, 2025 · 15 comments · May be fixed by #298
Open

Feature Request: option to have Daily Charts to have solid background #289

Chewie9999 opened this issue Feb 19, 2025 · 15 comments · May be fixed by #298

Comments

@Chewie9999
Copy link

Hi everyone,
I have recently updated and the way the Daily Charts are generated have changed.
They now have a transparent background, which could be useful, but it used to be solid green, and was much more readable when using the .PNG with a bot to post to social media.

I also noticed that because of this change, if you choose the "dark" theme, none of the bird names are readable in the web GUI as they are black on black.

Would it be possible to have a setting, either in the GUI or via birdnet.conf, that you can set to chose whether the background is solid or transparent?
Thanks

@alexbelgium
Copy link

alexbelgium commented Feb 20, 2025

I'll convert the css when I have some time. I think I initially did it for the dark mode to decrease the contrast. But it's not that important

EDIT : actually of course css is only local so wouldn't affect the png. Could you please post a screenshot of the screen with a transparent background ?

This is what I see :

Image

@Chewie9999
Copy link
Author

Chewie9999 commented Feb 21, 2025

hmm, thanks for the reply.
Your screen looks slight different to mine

Image

Running version: "33e2cb9e96cd5c52dd6d0337f4814f28fb6b2580"

@Emmo213
Copy link

Emmo213 commented Feb 22, 2025

We had other themes planned but they were rejected. Either way there's something off with your build because it's not supposed to be black on black, and the hourly numbers aren't supposed to be green still.

Image

@alexbelgium
Copy link

alexbelgium commented Feb 22, 2025

Indeed my graph layout is from my addon, emmo213's one is the one from this repo ; in any case the display you have show there is something wrong!

@Chewie9999
Copy link
Author

Oh well, it's not a big deal.
I usually run the web gui in "light" (green) theme, and it looks fine.
I just use imagemagick mogrify command to change the alpha to a solid colour before posting to social media.

@alexbelgium
Copy link

Well if this element is not up-to-date it's not sure what else... Have you tried just hitting the upgrade button to see if it solved it?

@TF-Ingolstadt
Copy link

Hello, i had the same issue as Chewie9999 and found a way to fix it:
In BirdNET-Pi/scripts/daily_plot.py section # Set up plot axes and titles (line 87)
Changing facecolour = 'none' to facecolor = '#77C487' does the job for me (at least until the next update).

Image

Image

@Chewie9999
Copy link
Author

Hello, i had the same issue as Chewie9999 and found a way to fix it: In BirdNET-Pi/scripts/daily_plot.py section # Set up plot axes and titles (line 87) Changing facecolour = 'none' to facecolor = '#77C487' does the job for me (at least until the next update).

Thanks!
Yeah, be careful with that though, the next git update may not work!

@alexbelgium
Copy link

The next git update will simply overwrite it so it won't cause issues ; however if you are several to see the same we'll look the code itself to find a more global solution! To be sure, what is you test system to make it easier to troubleshoot?

@TF-Ingolstadt
Copy link

Hi, i am running a Raspberry Pi 4b with the full version of Raspberry Pi OS (64 bit) Bookworm with the Raspberry Pi Desktop. Date 2024-11-19.
The installation of Birdnet Pi is from 05.01.2025, since then there were some updates.
If you need more or different information i need guidance where to find it and how to read out.

@alexbelgium
Copy link

Thanks! So indeed quite recent and post-implementation of the dark mode plot. I'm not super available in the coming days but I'll keep in mind to check!

@alexbelgium
Copy link

alexbelgium commented Feb 23, 2025

What is the COLOR_SCHEME value in your birdnet.conf? As it seems that you have a green color graph even in a dark mode?

@alexbelgium
Copy link

Hello, i had the same issue as Chewie9999 and found a way to fix it: In BirdNET-Pi/scripts/daily_plot.py section # Set up plot axes and titles (line 87) Changing facecolour = 'none' to facecolor = '#77C487' does the job for me (at least until the next update).

Image

Image

BTW regarding your fix, you might as well propose a PR! I can do it for you but it's just so you get proper credit :)

@alexbelgium alexbelgium linked a pull request Mar 2, 2025 that will close this issue
@alexbelgium
Copy link

I've made the PR for you and added you as co-author ;-)

@Chewie9999
Copy link
Author

Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants