Skip to content

Daily Digest for Pocket (with Readability, calibre and IFTTT)

Notifications You must be signed in to change notification settings

miyagawa/daily_digest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daily_digest

Generates Daily Digest from Pocket

Screenshot

Prerequisite

Workflow

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.

How To

bundle install
$EDITOR .env
bundle exec rake deliver

Environment

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

Copyright

Tatsuhiko Miyagawa

License

This software is licensed under the MIT License.

About

Daily Digest for Pocket (with Readability, calibre and IFTTT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages