Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-27-2013, 11:10 AM   #1
druss67
Connoisseur
druss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notes
 
Posts: 79
Karma: 24492
Join Date: Jul 2013
Location: France
Device: Kindle 4, PBk Lux 2, PBk Lux 3, K Aura, K Libra H2O, K Libra2
userannotlog

Hi,

I would like to to extract information from userannotlog coming from my kindle.

Do you know if somebody do this before ? With a script or perhaps with Calibre ?
druss67 is offline   Reply With Quote
Old 07-27-2013, 11:12 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Moved to the dev forum.
HarryT is offline   Reply With Quote
Old 07-28-2013, 05:15 AM   #3
druss67
Connoisseur
druss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notes
 
Posts: 79
Karma: 24492
Join Date: Jul 2013
Location: France
Device: Kindle 4, PBk Lux 2, PBk Lux 3, K Aura, K Libra H2O, K Libra2
sorry Harry, for this mistake.

userannotlog is used by amazon to collect informations about your reading, which book you read, which day you read it, how many time you spend to read this book, etc.

I want to do the same, an historical of my reading.
druss67 is offline   Reply With Quote
Old 07-28-2013, 09:23 AM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by druss67 View Post
sorry Harry, for this mistake.

userannotlog is used by amazon to collect informations about your reading, which book you read, which day you read it, how many time you spend to read this book, etc.

I want to do the same, an historical of my reading.
I do not recall seeing that information posted here.

For the K4 listed in your info block on the left?

Most of our developers are on: "Summer Holiday from Kindle Hacking" -
It may be a few days before someone has time to look at your request.
knc1 is offline   Reply With Quote
Old 07-28-2013, 12:07 PM   #5
druss67
Connoisseur
druss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notes
 
Posts: 79
Karma: 24492
Join Date: Jul 2013
Location: France
Device: Kindle 4, PBk Lux 2, PBk Lux 3, K Aura, K Libra H2O, K Libra2
Yes this is for my kindle 4NT.
You will find a part of my userannotlog. it seems that it is xml format, I think.
I will try to open with excel and see what is workable.

PHP Code:
<book key="ffcbe2cc-e68a-49a3-a3d4-f31b9336c58b" type="EBOK" version="0" guid="L&apos;Apothicaire:CA26BD9A" format="mobi7">
<
last_read action="create" begin="450981" pos="450981" timestamp="2012-10-30T19:39:43" state="444154410000007c4542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff00000000000000100006e1a5000000030000000001021f000000000c0003000200000000000300020009001f0006e023ffff003300000004ffff003610000001ffff0037000000000009001f00000000000000000000fdea" />
<
last_read action="create" begin="461672" pos="461672" timestamp="2012-10-30T19:45:11" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff000000000000001000070b680000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
<
last_read action="create" begin="461672" pos="461672" timestamp="2012-10-30T19:46:45" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff000000000000001000070b680000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
<
last_read action="create" begin="484300" pos="484300" timestamp="2012-10-30T22:51:30" state="444154410000007c4542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff0000000000000010000763cc000000030000000001021f000000000c0003000200000000000300020009001f000763fcffff003300000004ffff003610000001ffff0037000000000009001f00000000000000000000fdea" />
<
last_read action="create" begin="499984" pos="499984" timestamp="2012-10-31T08:06:56" state="444154410000007c4542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff00000000000000100007a110000000030000000001021f000000000c0003000200000000000300020009001f0007a0d9ffff003300000004ffff003610000001ffff0037000000000009001f00000000000000000000fdea" />
<
last_read action="create" begin="517597" pos="517597" timestamp="2012-10-31T08:40:33" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff00000000000000100007e5dd0000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
<
last_read action="create" begin="526543" pos="526543" timestamp="2012-10-31T09:44:23" state="444154410000007c4542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff0000000000000010000808cf000000030000000001021f000000000c0003000200000000000300020009001f0008089affff003300000004ffff003610000001ffff0037000000000009001f00000000000000000000fdea" />
<
last_read action="create" begin="530337" pos="530337" timestamp="2012-10-31T09:58:53" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff0000000000000010000817a10000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
<
last_read action="create" begin="531545" pos="531545" timestamp="2012-10-31T13:00:37" state="444154410000007c4542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff000000000000001000081c59000000030000000001021f000000000c0003000200000000000300020009001f00081bebffff003300000004ffff003610000001ffff0037000000000009001f00000000000000000000fdea" />
<
last_read action="create" begin="554321" pos="554321" timestamp="2012-10-31T14:25:41" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff0000000000000010000875510000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
<
last_read action="create" begin="572236" pos="572236" timestamp="2012-10-31T14:49:04" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff00000000000000100008bb4c0000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
<
last_read action="create" begin="572236" pos="572236" timestamp="2012-10-31T16:02:25" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff00000000000000100008bb4c0000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
<
last_read action="create" begin="572236" pos="572236" timestamp="2012-10-31T16:34:10" state="44415441000000584542415200000001000000004542565300000004ca26bd9a0000000100000008ffffffff00000000000000100008bb4c0000000200000000010200000000000300030002000000000003000200000000000000000000fdea" />
</
book

Last edited by druss67; 07-28-2013 at 12:10 PM.
druss67 is offline   Reply With Quote
Old 07-28-2013, 12:50 PM   #6
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
If you make any headway on decoding the value of that "state" variable, let us know.

That one looks like it may be a lot of fun.

PS: Is this a book side-loaded by Caliber?
knc1 is offline   Reply With Quote
Old 07-28-2013, 01:24 PM   #7
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: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
It's clearer for KF8 files, state is the position, in hex.

For M7, pos is also in the state var, among unknown other things: it's the 8 bytes near the middle that change the most.

FWIW, for the book entry, key is the ASIN, as usual, type the cdeType, and guid is the PDB name:id

Last edited by NiLuJe; 07-28-2013 at 01:30 PM.
NiLuJe is offline   Reply With Quote
Old 07-28-2013, 03:54 PM   #8
druss67
Connoisseur
druss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notes
 
Posts: 79
Karma: 24492
Join Date: Jul 2013
Location: France
Device: Kindle 4, PBk Lux 2, PBk Lux 3, K Aura, K Libra H2O, K Libra2
@knc1;

this file is available in your kindle here : Kindle/system/userannotlog

see attachment.
Attached Files
File Type: zip userannotlog.zip (7.0 KB, 167 views)
druss67 is offline   Reply With Quote
Old 07-28-2013, 04:59 PM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by druss67 View Post
@knc1;

this file is available in your kindle here : Kindle/system/userannotlog

see attachment.
What information out of it are you looking for ?

And in what format?
knc1 is offline   Reply With Quote
Old 07-29-2013, 06:51 AM   #10
druss67
Connoisseur
druss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notes
 
Posts: 79
Karma: 24492
Join Date: Jul 2013
Location: France
Device: Kindle 4, PBk Lux 2, PBk Lux 3, K Aura, K Libra H2O, K Libra2
In fact I would like, to have a kind of historical/statistics like this : the book named “the Hobbit” have been read from 01/07/2013 to 25/07/2013 in 65hours.

In an excel file or the best will be an integration into Calibre.
druss67 is offline   Reply With Quote
Old 07-29-2013, 08:58 AM   #11
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by druss67 View Post
In fact I would like, to have a kind of historical/statistics like this : the book named “the Hobbit” have been read from 01/07/2013 to 25/07/2013 in 65hours.

In an excel file or the best will be an integration into Calibre.
More than just a re-format then.

Hmm...
An accumulation of the reading time per book;
Plus the start and the end time.

Since that is not reporting anything that would show (directly) that a person was reading more than one book at a time - -
Perhaps include a count of the "reading sessions" ?

Think of that for a moment...
Otherwise a "reference book" in the report would look like it took the entire time you had the book on the device to read it.
But with a "reading sessions" count, that would be a real tip-off that the book was only being used as a reference.
(The "reading sessions" count would be unusually high.)

*And*

How about reporting the length of the book? (that log might be showing us how many bytes total is in the book.)
or
Perhaps the average bytes per "reading session"?

- - - -

Output format(s):

How about something general purpose, that almost anything can use?
Like CSV (comma separated variables)?

Note: In general, members of this forum do not do custom "code this for me" requests. (Although some members do "work for hire".)

- - - -

Processing:

All the above relatively easy to do in Lua.
But Lua is only pre-installed by Amazon in the 5-series firmware and this request is for a 4-series firmware device.
I do not know off-hand what processing resources are pre-installed by Amazon in the 4-series firmware.

Hmm...
On the subject of Lua -

Why not switch this thread's subject into a "feature request" for either (or all) of our multi-format readers?
Those are already written in Lua, work across device types, and are open source programs. Under **our** control, not under Amazon's ?
knc1 is offline   Reply With Quote
Old 07-29-2013, 01:38 PM   #12
druss67
Connoisseur
druss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notesdruss67 can name that song in three notes
 
Posts: 79
Karma: 24492
Join Date: Jul 2013
Location: France
Device: Kindle 4, PBk Lux 2, PBk Lux 3, K Aura, K Libra H2O, K Libra2
Thank you for your interesting reply.

I am a little bit surprised that nobody is interested to collect reading informations.

In fact, only Amazon collects them to analyze your reading habit.
druss67 is offline   Reply With Quote
Old 07-29-2013, 03:43 PM   #13
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: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@druss67: You're not. Cf. https://github.com/mattbnz/kindle-utils for one log parsing implementation.
NiLuJe is offline   Reply With Quote
Old 07-30-2013, 03:52 AM   #14
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by druss67 View Post
Thank you for your interesting reply.

I am a little bit surprised that nobody is interested to collect reading informations.
I already know how much I read. It seems to me that this log file would simply be telling me information that I already know.
HarryT is offline   Reply With Quote
Reply


Forum Jump


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


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