evilsocket / pwnagotchi-plugins-contrib

User contributed Pwnagotchi plugins.
Other
291 stars 73 forks source link

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

Open mkoterski opened 3 years ago

mkoterski commented 3 years ago

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