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

Weather image not displaying on the Waveshare display #48

Open
ArsamS opened this issue May 17, 2021 · 4 comments
Open

Weather image not displaying on the Waveshare display #48

ArsamS opened this issue May 17, 2021 · 4 comments

Comments

@ArsamS
Copy link

ArsamS commented May 17, 2021

18.05.21 00:00:17 (+0800) inkyshot INFO:root:Retrieving weather forecast
18.05.21 00:00:20 (+0800) inkyshot INFO:root:Prepare the weather data for drawing
18.05.21 00:00:20 (+0800) inkyshot INFO:root:Creating a transparency mask for the image
18.05.21 00:00:24 (+0800) inkyshot INFO:root:Done drawing

While the text is displayed, there is no symbol on the right hand side

image

@louispires
Copy link

Also experiencing this same issue.

@gelbal
Copy link
Contributor

gelbal commented Jun 3, 2021

Thanks for reporting it. It works fine on InkyPHAT so I didn't notice this. I don't have a Waveshare display myself to debug this. Do you have one @chrisys @catt-tung to help out with debugging?

@louispires
Copy link

I managed to debug and get it sort of working.

Seems like the problem is with the icon_mask

I removed the mask from the img.paste(icon_image, (120, 3)) line and now I am getting an Image, not exactly correct:
image

louispires pushed a commit to louispires/inkyshot that referenced this issue Jun 3, 2021
chrisys pushed a commit to louispires/inkyshot that referenced this issue Jun 11, 2021
ghost pushed a commit that referenced this issue Jun 14, 2021
Connects-to: #48
Change-type: patch
chrisys pushed a commit to louispires/inkyshot that referenced this issue Jun 15, 2021
@chrisys
Copy link
Member

chrisys commented Jun 15, 2021

Thanks to @louispires for the PRs addressing this but it's still not perfect. Having looked at it a little the root cause is probably the difference in image handling between the Inky and EPD libraries. The weather PNGs sometimes have a single colour, for example white on a transparent background, but sometimes have black on transparent, sometimes red white and black on transparent. This is what's causing some images to appear blank, because the white pixels are being treated as something not to display by EPD and the opposite (correctly) by Inky, so if we invert that the problem just swaps to the other display and still isn't resolved. I don't have spare time to look into this any more but feel free to keep making PRs and I'll test them when I can!

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

No branches or pull requests

4 participants