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 09-16-2014, 11:33 PM   #1
rApeNB
Junior Member
rApeNB began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2014
Device: Kindle Touch
Collections auto refresh

When I finish modify the cc.db, How can the collections auto refresh without a restart? Can some shell script be help? Or other?
rApeNB is offline   Reply With Quote
Old 09-17-2014, 12:34 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You may want to take a look at @barsanuphe's "librariansync" collections builder/manager.
eschwartz is offline   Reply With Quote
Advert
Old 09-17-2014, 03:53 AM   #3
rApeNB
Junior Member
rApeNB began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2014
Device: Kindle Touch
Quote:
Originally Posted by eschwartz View Post
You may want to take a look at @barsanuphe's "librariansync" collections builder/manager.
I write scripts myself, want to update my collections, I just want to auto refresh.
rApeNB is offline   Reply With Quote
Old 09-17-2014, 04:46 AM   #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: 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
Check the lipc event ccat sends when it finishes its job. (not at home right now, can't spoon-feed it to you).
NiLuJe is offline   Reply With Quote
Old 09-17-2014, 05:45 AM   #5
rApeNB
Junior Member
rApeNB began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2014
Device: Kindle Touch
Thanks! But I don't know what you mean...

lipc and ccat

Where they are and how can I use them?
rApeNB is offline   Reply With Quote
Advert
Old 09-17-2014, 06:42 AM   #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
Quote:
Originally Posted by rApeNB View Post
Thanks! But I don't know what you mean...

lipc and ccat

Where they are and how can I use them?
They are part of the Amazon firmware system installed on your Kindle.

ccat is written in Lua (you can read its source as text).
It is the collections database "middle-ware" (interface) code.

I think that lipc is also a mixture of script and compiled code.
It is a scripted-by-Amazon "middle-ware" interface to the Kernel's DBUS IPC and event systems.

Using lipc - lots of examples on this site. It is part of the Inter-Proccess Communications system.

For specific usage on refreshing the collections view, read the sources at the link to github on the page NiLuJe gave you the link to. The earliest versions of the source communicated with ccat directly.
(LibrarianSync is also a scripted application.)

Last edited by knc1; 09-17-2014 at 06:52 AM.
knc1 is offline   Reply With Quote
Old 09-17-2014, 10:52 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by rApeNB View Post
I write scripts myself, want to update my collections, I just want to auto refresh.
Which is precisely why I suggested you look at how a working implementation handles it.

On account of it will have demonstrative code examples which do what you what, and all...
eschwartz is offline   Reply With Quote
Old 09-17-2014, 01:41 PM   #8
barsanuphe
Connoisseur
barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.barsanuphe writes the songs that make the whole world sing.
 
Posts: 77
Karma: 40008
Join Date: Aug 2014
Location: Paris, France
Device: PW2, Kobo H20, Kobo Aura One
LibrarianSync does not update cc.db itself, but sends json info to http://localhost:9101/change which triggers the actual updating. My initial dabbling with cc.db itself proved to be unsatisfactory.
barsanuphe is offline   Reply With Quote
Old 09-17-2014, 04:01 PM   #9
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
I lipc:evts:name=updated, origin=com.lab126.ccat:Event sent

There you go. The K5 Wiki page is your new best friend if you still haven't looked into lipc.
NiLuJe is offline   Reply With Quote
Reply

Tags
cc.db collection refresh


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request: Auto import books on collections from folders rfog Calibre 1 04-14-2014 04:40 AM
Is this possible: Auto-add book/magazine then auto e-mail to device? runningwithbulls Library Management 5 09-10-2012 12:27 PM
Auto sync is not so auto sync? (Sony PRS-650) arspr Devices 3 04-26-2011 03:43 PM
iLiad xepdmgr - another approach to auto-refresh Antartica iRex Developer's Corner 169 02-09-2010 03:07 AM
iLiad libX11.so.6, auto refresh hansel iRex Developer's Corner 7 09-20-2008 08:40 AM


All times are GMT -4. The time now is 07:37 AM.


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