elParaguayo / RPi-InfoScreen-Kivy

Improved version of info screen using Kivy. NOTE: This project is no longer actively maintained.
GNU General Public License v3.0
58 stars 25 forks source link

Images on weather screen flashing #20

Open elParaguayo opened 8 years ago

elParaguayo commented 8 years ago

Not sure how to fix this one... don't know if it's a bug in Kivy or an issue with the icons themselves.

Needs investigating.

elParaguayo commented 8 years ago

Doing some digging. This is likely due to the fact that the icons are gifs. Setting the anim_delay property may be a simple solution for this.

elParaguayo commented 8 years ago

Nope. That gave me lots of "critical" warnings!

elParaguayo commented 8 years ago

Looks like it's a bug in Kivy itself: https://github.com/kivy/kivy/issues/2508

kivitalo commented 8 years ago

If you install pillow and start the RPi-InfoScreen with following command: KIVY_IMAGE=pil python main.py the flashing stops and icons are shown correctly.

elParaguayo commented 8 years ago

Good to know, thank you.

elParaguayo commented 8 years ago

Presumably we could add this to the main script:

import os
os.environ['KIVY_IMAGE'] = 'pil'
kivitalo commented 8 years ago

I added that line to the main.py and it worked.

elParaguayo commented 8 years ago

Ok. I'll include when I do next updates.

regit commented 8 years ago

I confirm the fix.

elParaguayo commented 7 years ago

This fix crashes the script on my laptop. Admittedly, that's not the target system but it's not ideal!