View Single Post
Old 11-23-2014, 09:42 PM   #1
nicolaus
Junior Member
nicolaus began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2014
Device: Kindle Paperwhite
Question How to speed up "fetch news" on Raspberry Pi?

Dear Kovid and all

First of all thanks for the marvelous tool that calibre is! I've been using it for a while and it has served me quite well!

Now on to my question: I previously ran it on Windows 8.1 64bit where the fetch news feature would need about 5 minutes to download and e-mail one news recipe. So as to not having to have my PC switched on at all times, I installed calibre on a Raspberry Pi. Unfortunately, the download of the same recipes now takes 2,5 hours!

This is my setup:
  • Raspbian Wheezy (Sept 2014)
  • Most recent calibre packet downloaded via apt-get
  • RPi overclocked to 1000 MHz
  • Wired LAN connection to router
  • No X session running
  • Cron server running custom fetch news bash script at defined time in the morning
I use the ebook-convert and calibre-smtp commands. Will post exact code later.

Do you guys have any idea how to speed this up? I'm still new to Linux so please let me know if you require further information.

Many thanks

Nicolaus


Edit: This is my script:

Code:
#!/bin/sh

ebook-convert '/home/pi/.config/calibre/custom_recipes/recipe.recipe' news.mobi --output-profile=kindle

calibre-smtp --attachment /home/pi/news.mobi --relay mail.gmx.net --port 587 --username "user" --password "pass" --encryption-method "TLS" e-mail_sender kindle_e-mail_recipient ""

rm news.mobi

Last edited by nicolaus; 11-24-2014 at 10:58 AM.
nicolaus is offline   Reply With Quote