Open therocco opened 1 year ago
The preview.py script is just a screen demo from Waveshare which can be compiled from their website. It demonstrates what the screen can be used for and has no bearing what-so-ever on this project other than being included with the screen's configuration files.
The preview.py script is just a screen demo from Waveshare which can be compiled from their website. It demonstrates what the screen can be used for and has no bearing what-so-ever on this project other than being included with the screen's configuration files.
Thank you for your feedback but I would respectfully disagree. It is a script I used for testing new screens/themes that was slowing me down due to the bug when I was working on multiple new screens back in January. Since it was included with the project and others might encounter the bug it seemed prudent to create this issue for it as well as a pull request located at https://github.com/evilsocket/pwnagotchi/pull/1138 that provides a fix.
This way the bug itself is detailed as much as possible and the fix is detailed as much as possible so it hopefully provides @evilsocket a little piece of mind and context when they QA and validate the fix if it is deemed fit for merging. That's the beauty of open source. If you see a bug you can squash a bug and hopefully someone somewhere finds it useful. :+1:
Describe the bug While trying to run the
scripts/preview.py
script to locally test some template modifications I was making for myself I discovered it was erroring out due to anAttributeError: NoneType
inpwnagotchi/ui/fonts.py
on line 27To Reproduce Steps to reproduce the behavior:
./preview.py --displays waveshare_v2
Expected behavior A clear and concise description of what you expected to happen.
A
preview.png
image should be generatedScreenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):