Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2010, 05:04 PM   #16
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need an X server, use xvfb
kovidgoyal is offline   Reply With Quote
Old 09-20-2010, 05:41 PM   #17
kingduct
Enthusiast
kingduct doesn't litterkingduct doesn't litterkingduct doesn't litter
 
Posts: 45
Karma: 220
Join Date: Jul 2010
Device: none
Thanks. So, this is what I did (if anybody else is curious) to make it run successfully:
xvfb-run ebook-convert /usr/share/calibre/recipes/san_fran_chronicle.recipe todays_sfgate.mobi

Note the command xvfb-run at the beginning, which ran ebook-convert with X support (as I understand it). It successfully produced the mobi file I wanted and now I can automate this all with cron.

Thanks!
kingduct is offline   Reply With Quote
Advert
Old 09-26-2010, 02:34 PM   #18
odacct
Junior Member
odacct began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: kindle 3
I am interested Can you post your script? Thanks.

Quote:
Originally Posted by tdw197 View Post
right got this sorted!

Wrote a script to download the recipe, convert to mobi and email to my kindle email address - all works well so far (if anyone is interested let me know and i'll post it on here).

However, I think there may be a problem...

The script will create and replace the same file everyday and email it out.

Will the file be delivered to the kindle again, or will it assume it has already be delivered the previous day (as it has the same name) and ignore it?
odacct is offline   Reply With Quote
Old 09-26-2010, 04:43 PM   #19
tdw197
Member
tdw197 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
Quote:
Originally Posted by odacct View Post
I am interested Can you post your script? Thanks.
Hi,

Am away at moment, but will post the script up when I get back tomorrow. You need to edit your crontab to create a cronjib to automate the process.

Works brilliantly though, been away for 3 days, but newspapers still arrive on my k3 every morning!
tdw197 is offline   Reply With Quote
Old 10-03-2010, 11:01 AM   #20
kingduct
Enthusiast
kingduct doesn't litterkingduct doesn't litterkingduct doesn't litter
 
Posts: 45
Karma: 220
Join Date: Jul 2010
Device: none
Please do!

Quote:
Originally Posted by tdw197 View Post
Hi,

Am away at moment, but will post the script up when I get back tomorrow. You need to edit your crontab to create a cronjib to automate the process.

Works brilliantly though, been away for 3 days, but newspapers still arrive on my k3 every morning!
I'd love to see your script. I created a basic one, but for whatever reason the files it emailed to my kindle were much uglier in their formatting than the ones Calibre on my laptop was emailing me. Either this is because it's a different version of Calibre or because the options in the script weren't optimal. Seeing what you have done would help me figure out the mystery.
kingduct is offline   Reply With Quote
Advert
Old 10-03-2010, 12:43 PM   #21
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to use

--output-profile kindle

in the ebook convert command
kovidgoyal is offline   Reply With Quote
Old 10-03-2010, 04:07 PM   #22
tdw197
Member
tdw197 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
Quote:
Originally Posted by kingduct View Post
I'd love to see your script. I created a basic one, but for whatever reason the files it emailed to my kindle were much uglier in their formatting than the ones Calibre on my laptop was emailing me. Either this is because it's a different version of Calibre or because the options in the script weren't optimal. Seeing what you have done would help me figure out the mystery.
^^^^

wot he said!!
tdw197 is offline   Reply With Quote
Old 11-14-2010, 04:06 AM   #23
usuario74
Junior Member
usuario74 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2010
Device: Kindle 3rd gen
Another request for your script.
Thanks.

Quote:
Originally Posted by odacct View Post
I am interested Can you post your script? Thanks.
usuario74 is offline   Reply With Quote
Old 01-04-2011, 08:49 AM   #24
select
Junior Member
select began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2011
Device: kindle
i would also love to have the script, please
select is offline   Reply With Quote
Old 01-19-2011, 07:48 AM   #25
tdw197
Member
tdw197 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
Sorry to everyone above who requested my script, I've been abroad (hence the need to email me the newspapers!).

Script is attached, replace the *@gmail.com and **** (for password) and *@kindle.com with your details. Rename it to .sh and copy it to your box etc.

Then create a crontab and run it when required - it takes a good 10 mins all in on my atom based acer revo.
Attached Files
File Type: txt newspapers.txt (598 Bytes, 522 views)
tdw197 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Daemonizing the calibre-server in Ubuntu gkbeer Calibre 10 01-20-2013 12:24 PM
Calibre crashes X server (Ubuntu 10.10) mfabry Calibre 9 10-15-2010 04:12 PM
Calibre Content Server error in Ubuntu 10.10 Bodman456 Calibre 1 07-07-2010 03:26 PM
Calibre RuntimeError on Ubuntu 8.04 Server alexbt Calibre 3 10-13-2009 04:26 AM
Problems installing Version: 0.4.109 on Ubuntu Server 8.10 machalla Calibre 0 12-03-2008 09:23 PM


All times are GMT -4. The time now is 12:25 AM.


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