View Single Post
Old 09-08-2010, 05:44 AM   #5
tdw197
Member
tdw197 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
Quote:
Originally Posted by Manichean View Post
Well, I'm not using *nix, so I can't help you as to where to put the cronjob. But, in a nutshell it's as easy as getting the correct incantation of epub-convert: Say you want to download the NY Times. You'd then have a look in the recipes (found in resources/recipes in the Calibre root) and find the corresponding recipe to be called nytimes.recipe, so you'd get your command to invoke as
Code:
ebook-convert <calibreroot>/resources/recipes/nytimes.recipe todays_nytimes.mobi
which should create a file called todays_nytimes.mobi containing, well, the NY Times articles as of the time you called the command. (<calibreroot> needs to be filled out to be the place the calibre directory resides in your system, see above comment about not using a *nix OS.)
As for emailing said MOBI-file to your Kindle, there should be console programs on a Linux system that can do exactly that, but you'd have to wait for one of the Linux gurus to arrive for an answer. I'd like to point out, though, that, if you have the Kindle with WiFi, you should also be able to add the MOBI file to your calibre library and download it via the content server.
Thanks for the help.

I'm fine with the cron job, I have a few running already, and you have explained excellent how to download th recipe and convert automatically.

I have had a look at the manual and there seems to be a command called smtp which should help with emailing the created file. I guess i could include this in the cron job to email to my kindle, but the command looks complicated!

I know running calibre as a daemon, will allow me to download the created file, but I like a bit of a challenge and automating it completely is definitely one...

- edit, running calibre as a daemon and running a command to convert, and hopefully email, won't cause issues? There will be no calibre GUI, other than the content server.
tdw197 is offline   Reply With Quote