Generates Daily Digest from Pocket
- Ruby 1.9 or later
- Bundler
- calibre and
ebook-convert
CLI - Readability Parser API Key
- Pocket API Key and authorized token
rake deliver
will run the following tasks:
- Fetch unread items from Pocket
- Parse content with Readbility
- Create MOBI with Calibre ebook-convert
Depending on your configuration, daily_digest
will deliver the generated MOBI file to your destination in either:
- Copy the mobi to
~/Dropbox/Public/Kindle
for IFTTT automation if the folder exists - Send the mobi file as an email attachment if SMTP server authentication is configured (see below)
You can let IFTTT watch /Kindle
subfolder to send to your Kindle personal document free email address.
bundle install
$EDITOR .env
bundle exec rake deliver
You will have .env
file that looks like:
POCKET_CONSUMER_KEY=1234-abcd
POCKET_ACCESS_TOKEN=a2aa5caa-c000-6ecb-b589-f7daea
READABILITY_PARSER_KEY=2caeae6676796adada6967a5cddcd6a2292
You have to manually authenticate against Pocket OAuth endpoint to get the tokens. Sorry.
If you want to directly send email to your Kindle Personal Document, you'll need the following environment variables as well:
[email protected]
[email protected]
SMTP_SERVER=smtp.example.com:587
[email protected]
SMTP_PASSWORD=43829f4cchRRY8
Tatsuhiko Miyagawa
This software is licensed under the MIT License.