View Single Post
Old 10-21-2019, 07:51 AM   #1
MrTick
Enhtusiast
MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.MrTick ought to be getting tired of karma fortunes by now.
 
MrTick's Avatar
 
Posts: 53
Karma: 2340139
Join Date: Dec 2018
Device: K3 DxG PW1 KV PW4
[KUAL] Yet another clock extension

I really envied the PW2+ feature of displaying current time while reading.
There was this extension called showtime by @Hanspeter https://www.mobileread.com/forums/sh...d.php?t=282590 but it had two flaws:
- it was using default eips font for printing the time
- it was not updating on minute-change, just when the page is turned.
And as I've recently discovered (masochistic?) joy of writing bash scripts here's another extension to do so.

It should have no influence on the battery, as the main process uses lipc-event-wait, and child processes are being suspended when no clock display is needed.

It has still few bugs that should be corrected soon:
- clock show once when the script is started (it disappears after titlebar refresh)
- sometimes clock persists after exiting a book (it also disappears after screen refresh)
- in rare occasions clock is not displayed properly (some digits are missing)

The script currently will work for PW1 only, but should be easily portable to KT (resizing digits+finding new XPOS/YPOS values).
Attached Thumbnails
Click image for larger version

Name:	screenshot_2019_10_21T13_39_51+0200.png
Views:	393
Size:	39.1 KB
ID:	174420  
Attached Files
File Type: zip yaclock_v0.5.zip (6.5 KB, 270 views)
MrTick is offline   Reply With Quote