-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add configuration options to gps.py (position, vertical line spacing) #919
Conversation
- added support for configuring the plugin position and vertical line spacing - fix default values for some displays which appeared to be incorrect - change `ui.is_dfrobot_v2` to a function (to match other display entries) - version bump to 1.0.2
hi @crahan and sorry for the huge delay :D can you check this conflicts please? thank you! |
Hi @evilsocket, thanks for considering this contribution. I've resolved the merge conflicts. The issue was due to the update to |
thanks a lot! |
Quick followup question. What would be the best way to contribute some documentation for the additional configuration options for both the |
@crahan definitely a PR to this repo would be the best and quickest :D https://github.com/evilsocket/www.pwnagotchi.ai |
Description
Similar to #918, this pull request adds the ability to configure the position (via
main.plugins.gps.position
) and vertical line spacing (viamain.plugins.gps.linespacing
) of the gps plugin. It also corrects the default x-position values for some of the screens and removes redundant leading whitespace from the coordinate values (but keeps the ending space workaround in place).Motivation and Context
Fixes #921
Providing the ability for users to tweak the position and vertical line spacing of the gps plugin enables them to customize the plugin to their liking without the need for code updates. Together with #918 it also allows users to more easily match the output for the gps and memtemp plugins so lines properly align with each other.
How Has This Been Tested?
This has been tested on a WaveShare v2 display on a Pi Zero W and Pi 3b. The default setup without any of the new configuration options was tested to ensure the plugin updates do not break the current version. Then each of the configuration options were tested (individually and together).
Types of changes
Checklist:
git commit -s