![]() |
#31 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 54048
Join Date: Mar 2016
Device: PW3 5.6.5-usbnet
|
Simply replace it, the pipe is supported within backticks. Anyhow `date +%X|cut -d':' -f-2` is much faster, no need for sed here.
Also the regexps in awk should be optimized. '.*' matches the whole line and then the regexp engine goes back one character after the other and tries to match the following string. The longer the lines are the more CPU is used. I expect that the log lines are formatted and one could use a regexp without '*' - it may look complicated but it will match faster. |
![]() |
![]() |
![]() |
#32 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 54048
Join Date: Mar 2016
Device: PW3 5.6.5-usbnet
|
If you want to use sed use " instead of '.
' ... ` ... '... ' ` ... ' --> ' ... ` ... " ... "` ... ' |
![]() |
![]() |
Advert | |
|
![]() |
#33 | ||
Connoisseur
![]() ![]() Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
Hi Yourcat,
thanks for your hints. Quote:
Code:
awk '/.*PageTurnAction*./ || /.*JunoExecutionManager*./ {system("eips ${POS} ${ROW} \"`date +%H:%M`\"")}'
Quote:
Code:
170211:114536 cvm[5359]: I LprHandler:Information::Not showing dialog since LPR does not exist 170211:114542 cvm[5359]: I LprHandler:Information::Not showing dialog since LPR does not exist 170211:114545 powerd[3080]: I lipc:evts:name=t1TimerReset, origin=com.lab126.powerd:Event sent 170211:114545 cvm[5359]: I GlobalKeyEventDispatcher:Information::Receiving WhisperTouch key event 170211:114545 cvm[5359]: I LprHandler:Information::Not showing dialog since LPR does not exist 170211:114545 cvm[5359]: I ContentPanel:UserActionInfo:PageTurnAction=NextPage: 170211:114545 winmgr[3881]: I Inverting the page turns. currentOrientation=U::: 170211:114545 winmgr[3881]: I WindowManager:handleWhisperTouchPress:forwarding wt press to |
||
![]() |
![]() |
![]() |
#34 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I do believe you are over thinking this whole thing.
Code:
170211:114545 cvm[5359]: I ContentPanel:UserActionInfo:PageTurnAction=NextPage: YYMMDD:HHMMSS taskname[thread]: I .... |
![]() |
![]() |
![]() |
#35 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 175
Karma: 54048
Join Date: Mar 2016
Device: PW3 5.6.5-usbnet
|
Sorry, I overlooked your use of multiple quotes. I didn't test it on my Kindle but hopefully the one or the other command works there:
cat /tmp/messages | awk -v date="$(date +%X | cut -d':' -f-2)" '/^[0-9:]++ [a-z]++.[0-9]++.: I [a-zA-Z]++:[a-zA-Z]++ ![]() Using strftime my awk version returns the 24h format while gawk works fine. cat /tmp/messages | awk '/^[0-9:]++ [a-z]++.[0-9]+.: I [a-zA-Z]++:[a-zA-Z]++ ![]() You should really optimize the expressions to avoid backtracking - with your expression this may happen 4 times for each character in every line if the line does not match. http://stackoverflow.com/questions/3...tomic-grouping is interesting. |
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Member
![]() Posts: 21
Karma: 10
Join Date: Jan 2011
Device: Sony PRS 600
|
Does this work on a Kindle Paperwhite 5th gen ?
I cannot find a folder called "extension" on my kindle. I made a folder called extension and copied the files inside and restarted the kindle but the clock does not show up. I am on original kindle firmware 5.8.9 Thanks. |
![]() |
![]() |
![]() |
#37 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
That is because you have not installed the KUAL launcher when you jail broke your Kindle. What does this thread say about the versions it has been tested on? * * The 'Usual Practice' here is to put all of that information in the first post, but this thread was not done that way by the author. Last edited by knc1; 05-28-2017 at 07:11 AM. |
|
![]() |
![]() |
![]() |
#38 | |
Expecto Patronum!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 137
Karma: 342260
Join Date: May 2017
Location: Chennai, India
Device: Kindle PW2(9017) 4GB, FW 5.7.4
|
Quote:
1. Is the device you are referring to jailbroken? 2. Did you install KUAL azw2/KUAL Booklet as per your device? 3. If it was KUAL Booklet, did you update it after fw upgrade? If the answers to all the above are yes then you must have KUAL showing up a menu item called Showtime. Also the fact that extensions folder is missing seems like either you havent jailbroken your kindle or not yet installed KUAL. If not jailbroken, then you cannot use this KUAL addon until you jailbreak it! BTW, It cannot be a PW1(5th gen) as updates stopped from 5.6.1.1 for that kindle. Please mention the first 4 letters/digits of your Kindle serial number to make diagnostics easy. ![]() You can also refer to the perfect nickname of your kindle from this Link. Please check back and report Sir! Last edited by baalajimaestro; 05-28-2017 at 07:47 AM. |
|
![]() |
![]() |
![]() |
#39 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
Quote:
However i have updated to the latest Oasis firmware and the Kual extension does not work. Any other way of getting it to work? Thanks again. |
|
![]() |
![]() |
![]() |
#40 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Create a RUNME.sh script for the purpose and launch it with the search bar command:
;log runme |
![]() |
![]() |
![]() |
#41 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
So sorry but are you able to give specific instructions? I have created a sh file in the root of my kindle called RUNME.sh - do i then put showtime extension code into that file and then try ;log runme?
|
![]() |
![]() |
![]() |
#42 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#43 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 26552
Join Date: Jan 2017
Device: Kobo Forma
|
|
![]() |
![]() |
![]() |
#44 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 100329
Join Date: Apr 2017
Location: Leipzig/Germany
Device: PW3, KT3 (fw 5.8.11 with jb)
|
A while ago, I made the following minimal changes to the code of showtime.sh when displaying time & battery percentage (two occurrences - lines 301 and 318):
Code:
{system("eips ${POS} ${ROW} `date +%H:%M`_\[`gasgauge-info -s`\]")} Code:
export POS="$((${EIPS_MAXCHARS} - 13))"
- old: 13:55-99 - new: 13:55_[99] Tested even with the special case "100% charge" which requires 11 chars for the whole string. For your convenience, I've added the new version 1.2a as ZIP file: Last edited by Antinoos; 01-16-2018 at 07:39 AM. Reason: added archive attachment |
![]() |
![]() |
![]() |
#45 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,500
Karma: 5000046
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
|
Wow guys! This is a very exciting extension!
You know what I am still dreaming about since Kindle 4 Non-Touch? A progress bar during reading! There is plenty of space at the bottom, between page location and progress percentage. I hope it would be relatively easy to find a position, total book chapters, etc, and draw it with eips (or FBInk?) at (not) every page turn. Do you have any ideas where should I start digging, before I start looking ixtab's JBPatch for old firmwares? I remember he did that somehow... |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show current time while reading | encol | Kindle Developer's Corner | 17 | 01-11-2017 03:09 PM |
xmahjongg for Kindle as Kual extension | Hanspeter | Kindle Developer's Corner | 86 | 12-02-2016 07:06 PM |
kual extension to open a book | shoelesshunter | Kindle Developer's Corner | 14 | 08-16-2016 12:30 PM |
Is there a Kual Extension/add-on for cloud | eduardomb | Kindle Developer's Corner | 19 | 07-08-2016 05:43 PM |
PRS-T2 Current time while reading | chemi | Sony Reader | 5 | 01-07-2013 02:18 PM |