AutoShelf・
FlashCard・
HyphenDicts・
MagicMemory・
MiniClock・
NickelIcons・
ScreenSaver・
UsbDebug・
WebPortal・
(GitHub)
--- MiniClock ---
######
===
find NiLuJe's MiniClock over here ===
===
find NiLuJe's NanoClock over here ===
######
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%.
Update 2019-07-17: add button support ( add button=1 in miniclock.cfg to enable )
# This update caused battery drain so I removed it.
Update 2019-07-29: hopefully fixed battery/freeze issues for good, touchscreen=1 button=1 is input_devices=1 0 now
MiniClock config example file:
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
#
# To debug, set to 1 (will create .addons/miniclock/debuglog.txt)
# See also {debug} in format string below.
#
debug=0
#
# which /dev/input/eventX number devices to listen to
#
# input_devices=1 - event1 = touchscreen
# input_devices=0 - event0 = keyboard/buttons/magnet (patches nickel)
# input_devices=1 0 - event1 event0 = both of the above
#
input_devices=1
#
# whitelist of accepted events that should update miniclock
# ABS:MT_POSITION_X/Y: touchscreen coordinates
# KEY:F23/F24: forma forward backward buttons (to be confirmed)
# KEY:POWER: going into standby manually
#
whitelist=ABS:MT_POSITION_X ABS:MT_POSITION_Y KEY:F23 KEY:F24 KEY:POWER
#
# cooldown=num time
#
# after receiving <num> unrecognized events in a row,
# stop listening to all input for <time> seconds.
# (helps avoid power consumption during standby)
#
cooldown=5 30
#
# Delay: (update delay 1 second repeat 3 times)
#
delay=1 1 1
#
# Repeat: (deprecated setting, use multiple delay instead)
#
# repeat=3
#
#
# Date format string ( see 'man strftime' )
#
# In addition may also use {month}, {day}, {battery}.
# (Look for battery and locale settings further below).
#
# {debug} will show the event that caused the update
#
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
#
# NightMode support:
#
nightmode_file=/mnt/onboard/.kobo/nightmode.ini
nightmode_key=invertActive
nightmode_value=yes
#
# Battery percentage value (0-100%)
#
# Use {battery} in the format string.
#
# Will only be used if the battery is between min max.
# Default: only shown when battery level drops to 50% and under.
battery_min=0
battery_max=50
# battery_source=/sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/capacity
#
# Localization (translate Month and Day names)
#
## Set day names, Monday -> Sunday (7 words)
## Use {day} in the format string to use this.
#
#days=Mon Tue Wed Thu Fri Sat Sun
#
## Set month names, January -> December (12 words)
## Use {month} in the format string to use this.
#
#months=Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
#