Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2019, 08:51 AM   #1
MrTick
Enthusiast
MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!
 
MrTick's Avatar
 
Posts: 25
Karma: 99572
Join Date: Dec 2018
Device: K3 KT DxG PW1 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:	69
Size:	39.1 KB
ID:	174420  
Attached Files
File Type: zip yaclock_v0.5.zip (6.5 KB, 13 views)
MrTick is offline   Reply With Quote
Old 10-21-2019, 01:11 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 9,486
Karma: 15265084
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Oh, hai! .

See MiniClock for a curiously on-point use-case in Kobo-land .
(And over here for a few tweaks to play with the latest FBInk features to avoid having to respawn a full process each time).

Last edited by NiLuJe; 10-21-2019 at 04:08 PM.
NiLuJe is offline   Reply With Quote
Old 10-21-2019, 01:46 PM   #3
MrTick
Enthusiast
MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!MrTick has a thesaurus and is not afraid to use it!
 
MrTick's Avatar
 
Posts: 25
Karma: 99572
Join Date: Dec 2018
Device: K3 KT DxG PW1 PW4
Sooo... I was thinking I don't need FBInk to draw the clock. It seemed to me that it's too advanced tool to just draw few digits. But rendering truetype fonts right into the framebuffer? That sound tempting. I'll probably switch from eips to your amazing tool soon, I just need to do some more reading
MrTick is offline   Reply With Quote
Old 10-21-2019, 04:06 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 9,486
Karma: 15265084
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
It's just that, while I like the fun involved in a DIY approach of putting together PNGs of individual characters, it just feels *extremely* inefficient .
NiLuJe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frontlight Adjust KUAL+ extension j.p.s Kindle Developer's Corner 1 01-07-2018 07:51 PM
xmahjongg for Kindle as Kual extension Hanspeter Kindle Developer's Corner 86 12-02-2016 08:06 PM
kual extension to open a book shoelesshunter Kindle Developer's Corner 14 08-16-2016 01:30 PM
Is there a Kual Extension/add-on for cloud eduardomb Kindle Developer's Corner 19 07-08-2016 06:43 PM


All times are GMT -4. The time now is 01:47 PM.


MobileRead.com is a privately owned, operated and funded community.