![]() |
#1 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Sew on a new menu of buttons.
Everyone is a noob at some point in this game, so look at a 'worked example' first.
File layout (v.0.3.1): Code:
*/documents KindleLauncher-2.0.azw2 */extensions /helper config.xml menu.jason /bin 411.sh kill-kterm.sh setorientation.sh ssallow.sh ssprevent.sh start_update.sh usbnetwork.sh PHP Code:
PHP Code:
PHP Code:
Now, see if I can duplicate that for the BBB extension. |
![]() |
![]() |
![]() |
#2 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Laid naked.
Good place to start. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Helper Menu add-in example
Not a good example of shell programming, just an example of what to change from that shown in post #1 for your own button add-in to the Helper menu.
The Button Man's helper menu is in */extensions/helper Mine are going into */extensions/helper2 Pick a directory name of your own to use. ![]() In config.xml change **ONLY** the >author< attribute. In the menu.json file change the 'name:' string to the button label. In the same line, change the 'action:' string to your path and filename. Paths are relative to your extension directory name. The 'sort priority' field is not currently used, leave it set at 1. This demo only adds one button, but add additional button defs. as shown in the post #1 example code as required. Write a shell script (which can be executed by Busybox Ash) for that described in the 'action:' string (put in your own bin directory). All of the above text files **should** use Linux line endings. Create a compressed tarball based at your helper's directory name, see attached for an example. Enjoy. (PS: example creates a report 'book' in documents with only the character '/' in it.) I.E: The current working directory of your scripts - which are run as the administrator 'root'. |
![]() |
![]() |
![]() |
#4 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Pre-release Preview
Released, see:
https://www.mobileread.com/forums/sho...d.php?t=205732 Unarchive, Diddle the ntpdate.conf file for a local NTP time server if required (Directions in config file) - Put the directory 'helper2' and its sub-directories under the 'extensions' folder of KUAL - Establish a network connection - Select the 'Set DateTime from Server' button - It should 'just work' and produce a new 'book-report'. Only tested on Kpw-5.3.3 but it is written to be harmless - Give it a try and report back here - If any errors (other than 'server not available') attach the book-report to your post. Please mention your Kindle model when making a report. Last edited by knc1; 02-13-2013 at 08:21 PM. |
![]() |
![]() |
![]() |
#5 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Field report #1
Works fine on the Kpw (paperwhite)
Testing by twobob: Works fine on the K5 (touch) Works fine on the K3 Does not work over DX-3G (but should work over USB networking if you have that setup to access the Internet) Other testing in progress. From the list above - it should work on the K4 Still to be heard from: the K2 Other reports on other devices would be nice to have. Last edited by knc1; 02-13-2013 at 01:10 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
|
Nice script! Can't help you with reporting on other devices as I only have a KT. Suggestion: change the thread title to mention its connection to KUAL.
|
![]() |
![]() |
![]() |
#7 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#8 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
KUAL DateTime Button Released
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free Book (Kindle) - How to Sew: Basics | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 05-06-2011 10:09 AM |
PRS-505 PRS-505 menu and other buttons no response. PLEASE HELP | jakeluck | Sony Reader | 2 | 01-08-2011 03:23 PM |
Convert "Section Menu" in "Main Menu" | zeener | Recipes | 2 | 11-23-2010 10:33 AM |
main menu, section menu, css for calibre mobipocket output | naisren | Calibre | 2 | 08-23-2010 11:42 PM |
Metadata downloads via Edit menu but not via Download menu | mfyahya | Calibre | 10 | 06-20-2010 06:50 AM |