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

Enable custom time format for clock.py in config #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkoterski
Copy link

@mkoterski mkoterski commented Jan 26, 2021

These changes allow you to customise the displayed time format by editing config.toml, e.g. switching from 12 to 24 hours clock format, or adding seconds (in the same fashion as @xBelladonna added the date formatting).

main.plugins.clock-niu.enabled = "true"
main.plugins.clock-niu.date_format = "%Y%m%d"
main.plugins.clock-niu.time_format = "%H:%M:%S"

If no custom format is set, clock.py will revert to its default formats.

pwnagotchi-clock-plugin-screenshot001

Allows you to customise the displayed time format by editing clock.toml.
E.g. switching from 12 to 24 hours clock format, or adding seconds.
If no custom format is set, clock.py will revert to its default formats.
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