christianhans / pinboard-to-kindle

Calibre recipe for sending unread Pinboard bookmarks to your Kindle.
MIT License
21 stars 4 forks source link

Raspberry Pi and Kindle

Pinboard to Kindle

Calibre recipe for sending unread Pinboard bookmarks to your Kindle.

➡️ Build your personal Read Later Service using Raspberry Pi

Table of Contents

Overview

Getting Started

Prerequisites

Prerequisite Version Comment
Git Any Required for cloning this repository.
Node.js 10 or later
NPM 5 or later
Calibre >= 5.0
Firefox 68 or later
Geckodriver 0.26.0 or later

Install Prerequisites on macOS

On macOS you can use Homebrew to install all prerequisites:

brew install git node geckodriver
brew cask install calibre firefox

Install Prerequisites on Debian/Ubuntu

On Debian and Ubuntu you can run this command to install all prerequisites except Geckodriver:

sudo apt-get install git nodejs npm calibre firefox-esr

Prebuilt Geckodriver binaries for x86 and x64 architectures can be downloaded here. Copy geckodriver for example to /user/local/bin, such that the geckodriver binary is in your PATH.

Installation

Clone this repository and cd into the cloned pinboard-to-kindle directory:

git clone https://github.com/christianhans/pinboard-to-kindle.git
cd pinboard-to-kindle

Set your Pinboard API token. Copy your token from this page and replace username:A3F...HG78 below with your actual token:

echo 'PINBOARD_TOKEN="username:A3F...HG78"' >> config.env

Usage

In order to generate an eBook optimized for Kindle Paperwhite run:

eval $(egrep -v "^#" config.env | xargs) ebook-convert pinboard-to-kindle.recipe pinboard.mobi --output-profile kindle_pw3

To generate an eBook in ePub format run:

eval $(egrep -v "^#" config.env | xargs) ebook-convert pinboard-to-kindle.recipe pinboard.epub

License

Distributed under the MIT License. See LICENSE for more information.