Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-11-2015, 08:49 AM   #1
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Suggestion: Scheduled connection

I was musing this morning about calibre news feeds and how they interface with devices.

Would there be any benefit in having CC able to "schedule" a wireless device connection to calibre, and then, calibre could perform it's automatic transfer of a scheduled recipe run to CC?
PeterT is offline   Reply With Quote
Old 03-11-2015, 10:39 AM   #2
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
This is really a question for the rest of the CC community. I wouldn't use the feature, but that doesn't mean it isn't useful.

One question: how is this significantly better than connecting by hand? Are you trying to avoid waiting for all the handshaking to complete? Also, clearly this feature would require that calibre be running at scheduled connection time.

I am not sure how a feature like this would interact with devices going to sleep, or behave if Android decides to kill CC's process because it has been in the background too long or if CC is already connected. There may be dragons there.
chaley is offline   Reply With Quote
Advert
Old 03-11-2015, 11:53 AM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
My thinking was that of totally automating the news delivery process from calibre to CC so that one could leave home in the morning with the day's news loaded with no manual intervention; great for people with a hectic morning schedule.
PeterT is offline   Reply With Quote
Old 04-05-2015, 07:51 AM   #4
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
This is a feature I'd use, with Peter's exact use case.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 04-09-2015, 06:18 AM   #5
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The next beta (sometime in the next few days) will have the option of a scheduled connection once per day at a fixed time. It seems to work, tolerating the device being off (not cold-boot off but off-button off), already connected as a wireless device, and already connected to the content server.

Because it must operate when the phone is sleeping it cannot talk to the user. Because of this, if a connection goes wrong the only way to know what happened is to look at CC's debug log.

I confess to being a bit nervous about this feature. CC wasn't designed to do WD connections in the background. We will see if I have handled the multi-thread access cases correctly.
chaley is offline   Reply With Quote
Advert
Old 04-12-2015, 03:10 PM   #6
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
This feature is in beta but so far none of the testers seem interested in it. Would either of you consider joining the program to test it before general release?
chaley is offline   Reply With Quote
Old 04-12-2015, 04:33 PM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Will do...
PeterT is offline   Reply With Quote
Old 04-17-2015, 10:28 PM   #8
hleo12
Guru
hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.hleo12 ought to be getting tired of karma fortunes by now.
 
hleo12's Avatar
 
Posts: 655
Karma: 5078890
Join Date: Feb 2014
Device: Kobo Glo (deceased), Kindle 4th, Kindle Basic 10th Generation
Any updates on how this works?

I must admit, I don't really have a specific need for this feature since all I have on my library are books (also comics and manga) and nothing else. So I just add the books on Calibre and sync it to my device immediately after.

But I am all for implementing new features.
hleo12 is offline   Reply With Quote
Old 04-18-2015, 12:00 AM   #9
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
It's working great. Now when I head out the door in the morning, I always have the daily scraping of The Toronto Star to peruse on my tablet.
PeterT is offline   Reply With Quote
Old 11-09-2015, 07:59 AM   #10
kintrupf
Member
kintrupf began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jan 2012
Location: Germany
Device: Energy Sistem eReader Pro (Boyue T62)
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...
kintrupf is offline   Reply With Quote
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,447
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
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled tasks Acuum Kindle Developer's Corner 4 10-03-2010 10:38 PM
Classic my rooted nook lost wifi connection, need suggestion! ctos Nook Developer's Corner 8 08-19-2010 01:01 AM
Scheduled Wireless? Oddjob Kindle Developer's Corner 3 08-18-2010 10:42 AM
Wireless internet connection frustrating IDS connection Socrates iRex 8 10-21-2009 12:46 PM
Synchronize Scheduled Downloads stonesown Calibre 1 08-03-2009 12:24 PM


All times are GMT -4. The time now is 04:58 AM.


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