<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kindle &#8211; Obihörnchen&#039;s Blog</title>
	<atom:link href="https://obihoernchen.net/tag/kindle/feed/" rel="self" type="application/rss+xml" />
	<link>https://obihoernchen.net</link>
	<description>Beyond Reality</description>
	<lastBuildDate>Sun, 03 May 2015 16:28:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://obihoernchen.net/wordpress/wp-content/uploads/2016/10/cropped-1476646398_36-android-32x32.png</url>
	<title>Kindle &#8211; Obihörnchen&#039;s Blog</title>
	<link>https://obihoernchen.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Daily Newspaper on E-Book Reader via Arch Linux</title>
		<link>https://obihoernchen.net/933/newspaper-on-kindle-linux/</link>
					<comments>https://obihoernchen.net/933/newspaper-on-kindle-linux/#comments</comments>
		
		<dc:creator><![CDATA[Obihoernchen]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 13:43:51 +0000</pubDate>
				<category><![CDATA[Pogoplug]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://obihoernchen.net/wordpress/?p=933</guid>

					<description><![CDATA[My friend x23b5 has an Amazon Kindle and wants to read daily newspapers each morning. Time for a cron job on my Pogoplug to send some newspapers to this Kindle 🙂 There is a pretty cool package called calibre. It can convert online newspapers to ebook specific files and send it via email to your &#8230; <a href="https://obihoernchen.net/933/newspaper-on-kindle-linux/" class="more-link">Continue reading <span class="screen-reader-text">Daily Newspaper on E-Book Reader via Arch Linux</span></a>]]></description>
										<content:encoded><![CDATA[<p>My friend <span class="removed_link" title="http://icetea-planet.de/zeitungen-auf-den-kindle/">x23b5</span> has an Amazon Kindle and wants to read daily newspapers each morning.</p>
<p>Time for a cron job on my Pogoplug to send some newspapers to this Kindle <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>There is a pretty cool package called <a title="calibre" href="http://calibre-ebook.com/" target="_blank">calibre</a>.<br />
It can convert online newspapers to ebook specific files and send it via email to your eBook Reader.</p>
<p>Install calibre</p>
<pre class="EnlighterJSRAW" data-enlighter-language="default" data-enlighter-title="">pacman -Sy calibre</pre>
<p>Calibre uses recipes to fetch news and convert those to ebook files like <strong><em>.mobi</em></strong> or <strong><em>.epub</em></strong>.<br />
You can list all available recipes with the following command:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="default" data-enlighter-title="">ebook-convert --list-recipes</pre>
<p><em>Note: It&#8217;s a good idea to create a new email for this task because your password will be saved in plain text. Use a freemailer or create a new user on your own mailserver.<br />
</em>Create the following file in <strong>/usr/local/bin/calibre-cron</strong> and replace all variables and recipes with yours.<br />
I used another usb stick (cacheStick) to save the temp files because I want to protect my arch linux stick.<br />
To change the output format just change the file extension.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="default" data-enlighter-title="">nano /usr/local/bin/calibre-cron</pre>
<pre class="EnlighterJSRAW" data-enlighter-language="sh" data-enlighter-title="">#!/bin/bash

TEMPPATH=/media/cacheStick/calibre/
SERVER_ADDRESS=smtp.mailserver.com
USERNAME=myusername
PASSWORD=mypassword
FROM_EMAIL=ebook@mailserver.com
TO_EMAIL=testuser@kindle.com

# Netzpolitik
ebook-convert &quot;Netzpolitik.recipe&quot; ${TEMPPATH}netzpolitik.mobi
calibre-smtp -a ${TEMPPATH}netzpolitik.mobi -s &quot;Netzpolitik&quot; -r $SERVER_ADDRESS -u $USERNAME -p $PASSWORD $FROM_EMAIL $TO_EMAIL &quot;Netzpolitik&quot;

# Heise
ebook-convert &quot;Heise-online.recipe&quot; ${TEMPPATH}heise.mobi
calibre-smtp -a ${TEMPPATH}heise.mobi -s &quot;Heise&quot; -r $SERVER_ADDRESS -u $USERNAME -p $PASSWORD $FROM_EMAIL $TO_EMAIL &quot;Heise&quot;

# Berliner Zeitung
ebook-convert &quot;Berliner Zeitung.recipe&quot; ${TEMPPATH}bz.mobi
calibre-smtp -a ${TEMPPATH}bz.mobi -s &quot;Berliner Zeitung&quot; -r $SERVER_ADDRESS -u $USERNAME -p $PASSWORD $FROM_EMAIL $TO_EMAIL &quot;Berliner Zeitung&quot;</pre>
<p>Make it executable:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="sh" data-enlighter-title="">chmod u+x /usr/local/bin/calibre-cron</pre>
<p>Execute it and check whether it works.</p>
<p>Now we have to create a cron job to execute this script each morning.<br />
Execute this command before you edit your crontab file.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="sh" data-enlighter-title="">export EDITOR=&quot;/usr/bin/nano&quot;</pre>
<p>Edit your crontab file:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="sh" data-enlighter-title="">crontab -e</pre>
<pre class="EnlighterJSRAW" data-enlighter-language="sh" data-enlighter-title=""># daily at 5:00
0 5 * * *       /usr/local/bin/calibre-cron &gt; /dev/null 2&gt;&amp;1</pre>
<p>&#8220;<em>&gt; /dev/null 2&gt;&amp;1</em>&#8221; because I don&#8217;t need any email or log output.</p>
<p>Now enable cron service:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="sh" data-enlighter-title="">systemctl enable cronie
systemctl start cronie</pre>
<p><strong>Calibre is pretty memory and cpu intensive and takes pretty long! You should run it overnight otherwise your plug pc will be very slow.</strong></p>
<p>How it looks like:</p>
<p><a href="http://obihoernchen.net/wordpress/wp-content/uploads/2013/03/kindle2.jpg" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img fetchpriority="high" decoding="async" class="alignleft size-full wp-image-934" src="http://obihoernchen.net/wordpress/wp-content/uploads/2013/03/kindle2.jpg" alt="Kindle newspaper" width="400" height="533" srcset="https://obihoernchen.net/wordpress/wp-content/uploads/2013/03/kindle2.jpg 400w, https://obihoernchen.net/wordpress/wp-content/uploads/2013/03/kindle2-225x300.jpg 225w" sizes="(max-width: 400px) 100vw, 400px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://obihoernchen.net/933/newspaper-on-kindle-linux/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
