09-28-2021, 03:11 PM | #1 |
Junior Member
Posts: 6
Karma: 110
Join Date: Feb 2021
Device: KT2, PW2
|
KUAL extention development help...
I want to develop KUAL extentions, after searching around the forums for a while I was unable to find any information or guide, so... where do I even start?
I'm not looking to code an amazing app straight away, a simple "hello world" would be fine for now. |
09-28-2021, 04:56 PM | #2 |
Grand Sorcerer
Posts: 5,577
Karma: 101535599
Join Date: Apr 2011
Device: pb360
|
It seems to be considered obvious.
I disagree, but the KUAL part is not difficult. You need to make a directory with a name of your choosing. That directory needs to contain 2 files, config.xml and menu.json Looking at the contents of those files for a number of simple KUAL extensions is a good place to start. If you still get stuck, a question about the specific sticking point is more likely to get an answer. You need to already have some script or binary that you want to launch with KUAL that does not need to know anything about KUAL. |
09-28-2021, 06:08 PM | #3 |
rm -rf /
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
|
There's some developer documentation here; it's also worth looking at the source of one of the more complex KUAL extensions like USBNetwork to see how everything works in practice.
|
10-07-2021, 01:48 PM | #4 |
Enthusiast
Posts: 29
Karma: 200
Join Date: Jul 2019
Device: Kindle Paperwhite 1 (2012), Kindle Touch 4, Kindle Paperwhite 5 (2021)
|
I think I'll hijack this thread instead of making a new one.
How involved would it be to make an extension for logging activity on the kindle? I'd like to log when the kindle was woken up, put to sleep, restarted, and what book was opened / closed and when. And maybe even what page / loc was accessed when. I guess it could all be written to /mnt/us/? |
10-09-2021, 07:30 PM | #5 | |
rm -rf /
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
|
Quote:
You'd need to patch the scripts that handle the relevant events to log to a file/sqlite DB or write a daemon that monitors these events directly. KUAL doesn't really come into this apart from offering an easy way to enable/disable this monitoring. Most of those events are available over LIPC (wake, sleep, possibly reboot?) - book reading info is potentially a lot more involved though. |
|
Tags |
coding, hello world, kt2, kual, touch |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Update on Development! Reason for Slow Development | PMrev | Calibre Companion | 18 | 03-25-2020 02:17 PM |
Bump KUAL KUAL+ extention | j.p.s | Kindle Developer's Corner | 10 | 10-24-2019 04:04 PM |
Glo [Glo HD] Strange files (parsed extention) in kobo-images directory | Nick_1964 | Kobo Reader | 10 | 10-03-2015 11:42 AM |
is there any KUAL extension development guide? | fangzi | Kindle Developer's Corner | 2 | 01-02-2014 11:11 AM |
Kual Menu development - Bitbucket or Github? Your thoughts | eureka | Kindle Developer's Corner | 28 | 11-01-2013 10:18 AM |