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

Display hourly icons above temperature line #136

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

domp27
Copy link

@domp27 domp27 commented Dec 24, 2024

Hi Luke,

love the project! Will be a christmas present ;)

I've added hourly weather icons above the temperature line in order to visualize the weather throughout the day in more detail. See commit message for more info.
Scanned_20241224-1401

I've also made two additional minor commits. They are not necessary for the hourly weather icons and might just be a misunderstanding on my end.

I've tested my changes briefly with slightly varying configs but it is definitely possible that there are display problems in edge cases, for example very strong temperature gradient. Also this is my first time working with C++, so hopefully no bugs.

Merry Christmas,
Dominic

Generates pointers to 32 pc bitmaps which are then drawn at the x-axis tick marks except for the first and last one and the above the temperature line.
Tested with different HOURLY_GRAPH_MAX.
Still readable if precipitation overlaps, however a grayscale option would be truly amazing for this (is this feasible?).
Currently does not differentiate between moon present or absent, night time is always with moon.
Only tested with DISP_BW_V2, therefore only enabled for this display.
The temperature line is shifted by half an hour I think. Maybe there is a good reason for this that I missed. This change aligns the line correctly and adds one more index for the last hour. However, it limits the number of hours to 47.
For some reason, for me it would always refresh 1 minute before the full or half hour. This bugged me, also because of the corresponding x-axis limits. This might just be a problem on my end though
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 this pull request may close these issues.

1 participant