View Single Post
Old 11-09-2015, 08:53 AM   #11
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kintrupf View Post
I use the cloud connection (Dropbox), so I can't use any schedules for a wireless device connection

What I would like is a shortcut or something like that so that I can trigger a cloud sync whenever I've automatically established a WiFi connection at night with my automation tool. "Cloud sync" meaning that CC would pull all books not on the device from the cloud and (maybe) delete all books that are no longer available in the cloud. Though it would probably better if an automatic sync would not delete anything or only as an advance feature with a proper warning at setup

That way I can better control the sync. So only try to sync if WiFi is connected and battery has enough juice or charger is connected or something like that without adding that ballast to CC...
One problem is that a "cloud sync" function does not exist in CC. Doing such a thing would require invoking a series of internal CC functions, checking errors, checking for finished, etc. I am very nervous about starting down the path to providing this kind of automation. The number of things people can (and will) ask for is very large. I would end up needing to provide some kind of scripting language through (probably) some kind of content provider interface. This would be a lot of work, and there are a lot of ways to break things.

If you have a calibre library in Dropbox then you must have a computer that runs calibre. Why not have calibre auto-start at a particular time then use CC's existing auto-connect? You could also use the reading list plugin to automatically send new books during this auto-connection.

You mention choosing whether or not to auto-connect based on some criteria. Currently CC's auto-connect service is private, but I have no problem making it public. That should allow your tool to ask CC to auto-connect whenever it wants by invoking the service com.multipie.cclibrary.ConnectionAlarmService.
chaley is offline   Reply With Quote