Thread: Clara HD Display time when reading
View Single Post
Old 10-18-2018, 05:12 PM  
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,025
Karma: 4816892
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: H2O, StoryHD, PW4
AutoShelfFlashCardHyphenDictsMagicMemoryMiniClockNickelIconsScreenSaverUsbDebugWebPortal(GitHub)

--- MiniClock ---

Displays a clock on the screen. Powered by NiLuJe's fbink tool.

To install, copy KoboRoot-MiniClock-*.tgz .kobo/KoboRoot.tgz

To uninstall, set uninstall=1 in .addons/miniclock/miniclock.cfg

Check .addons/miniclock/miniclock.example.cfg for customization options (rename the example file to miniclock.cfg to be effective.)

Ideally the clock should update on the minute (update=60) however, while reading books, Kobo freezes background tasks so it might not update and lag behind, until you flip the page or otherwise interact with the screen.

Update 2018-11-05: now with nightmode and truetype support

Update 2018-11-17: changed how the delay option works for more fine-grain control. added padding option to get rid of visual fragments in truetype mode.

Update 2018-11-23: add user-translatable {day}, {month}. Also optional {battery} 0-100%.

Spoiler:

Code:
# -------------------------------------------------------------------
#   MiniClock config example file. For settings to take any effect,
#     copy or rename this file to .addons/miniclock/miniclock.cfg.
# -------------------------------------------------------------------

#
# To uninstall, set to 1
#
uninstall=0

#
# Date format string ( see 'man strftime' )
#
format=%a %b %d %H:%M

#
# Where to print the clock
#
offset_x=0
offset_y=0

#
# Font:  (IBM, UNSCII, ALT, THIN, FANTASY, MCR, TALL, BLOCK,
#         LEGGIE, VEGGIE, KATES, FKP, CTRLD, ORP, ORPB, ORPI,
#         SCIENTIFICA, SCIENTIFICAB, SCIENTIFICAI)
#
font=IBM

#
# Font Size:
#
size=0

#
# Color: (BLACK GRAY{1-9A-E} WHITE)
#
fg_color=BLACK
bg_color=WHITE

#
# TrueType support:
#
# For fonts inside the MiniClock directory:
#     truetype=yourfont.ttf
#
# For fonts stored elsewhere in the filesystem:
#     truetype=/mnt/onboard/fonts/something.ttf
#
# Only set these if you use *italic*, **bold**, ***bold italic*** in your format string:
#
#     truetype_format=*%a* **%b** ***%d*** %H:%M
#     truetype_bold=yourfont-bold.ttf
#     truetype_italic=yourfont-italic.ttf
#     truetype_bolditalic=yourfont-bolditalic.ttf
#
# Technically, this can also be used for completely different font styles,
# instead of italic or bold variants of the same font.
#
# NOTE: Will fall back to regular mode when font file is unavailable.
#       (e.g. while the device is connected to USB)
#
truetype_size=16
truetype_x=0
truetype_y=0
truetype_fg=BLACK
truetype_bg=WHITE

#
# TrueType Padding helps prevent visual fragments to appear
# at the cost of adding extra whitespace. Set to 0 to disable.
#
truetype_padding=1

#
# Update frequency: (update once every 60 seconds)
#
update=60

#
# Delay: (update delay 1 second repeat 3 times)
#
delay=1 1 1

#
# Repeat: (deprecated setting, use multiple delay instead)
#
# repeat=3

#
# NightMode support:
#
nightmode_file=/mnt/onboard/.kobo/nightmode.ini
nightmode_key=invertActive
nightmode_value=yes
Attached Files
File Type: zip KoboRoot-MiniClock-20181030b.zip (202.2 KB, 246 views)
File Type: zip KoboRoot-MiniClock-20181105b.zip (226.8 KB, 245 views)
File Type: zip KoboRoot-MiniClock-20181117.zip (232.9 KB, 56 views)
File Type: zip KoboRoot-MiniClock-20181123.zip (234.1 KB, 170 views)

Last edited by frostschutz; 11-23-2018 at 03:38 AM.
frostschutz is online now   Reply With Quote