omnivore icon indicating copy to clipboard operation
omnivore copied to clipboard

Send to Kindle

Open I7T5 opened this issue 1 year ago • 18 comments

Same feature as with Instapaper. But it would be better if, Omnivore could convert docs to cleaner format and having the option to send either a compilations or a specific doc (with or without cover image) to Kindle.

I7T5 avatar Apr 29 '23 05:04 I7T5

yeah good feature, definitely a lot we could do here by converting to epub on the backend

jacksonh avatar May 02 '23 06:05 jacksonh

Would like to help here, format the html with https://www.npmjs.com/package/sanitize-html and then put it into https://www.npmjs.com/package/epub-gen-memory will do the basic work. I have written a script with graphql api to do that for my own use.

The next question will be which article should be send to Kindle and when to send?

Here's setting from Instapaper:

image

kebot avatar May 22 '23 10:05 kebot

hey @kebot our content should already have sanitize-html run on it, do you want to share your script here and we can discuss how to add it to Omnivore?

jacksonh avatar May 22 '23 10:05 jacksonh

@jacksonh You can fill in the OMNIVORE_API_KEY and run the script with Deno

deno run -A gen-epub.ts

https://gist.github.com/kebot/90de9c41742cacf371368d85870c4a75

kebot avatar May 22 '23 22:05 kebot

oh thank you, somehow i missed this reply. Going to test it out.

jacksonh avatar May 31 '23 05:05 jacksonh

Nice, tested this script out a bit and it works quite well. I really like the idea of chapters. Going to see how i can integrate this into our backend

jacksonh avatar May 31 '23 12:05 jacksonh

@jacksonh @kebot this looks amazing! I'm going to try it out as well! You guys do great work.

shsprivate avatar Aug 17 '23 15:08 shsprivate

@jacksonh You can fill in the OMNIVORE_API_KEY and run the script with Deno

deno run -A gen-epub.ts

https://gist.github.com/kebot/90de9c41742cacf371368d85870c4a75

Thanks. This code works and pulls down my unread articles. But it only pulls down 5 articles or so. Where is this limit hardcoded? How can I ask it to download all of my unread?

linnabraham avatar Aug 26 '23 02:08 linnabraham

Is this feature going to be added to Omnivore? Would love to switch from Instapaper to Omnivore for the Obsidian integration and the ability to send individual articles to kindle instead of combined multiple articles per day

corsair20141 avatar Sep 01 '23 05:09 corsair20141

@linnabraham It looks like the number of articles is an optional paramenter not included in the script. By default it downloads 10 articles for me. You can modify it as shown to download more.

diff --git a/gen-epub.ts b/gen-epub.ts
index e1ec1b2..a0ce6b6 100644
--- a/gen-epub.ts
+++ b/gen-epub.ts
@@ -15,7 +15,7 @@ const graphQLClient = new GraphQLClient(OMNIVORE_ENDPOINT, {
 async function getUnreadArticles() {
   const query = gql`
     {
-      articles {
+      articles(first: 100) {
         ... on ArticlesSuccess {
           edges {
             cursor

agrmohit avatar Sep 08 '23 14:09 agrmohit

@agrmohit Thank you...So far so good.. Does images work for you? Except for that the book is coming out to be very nice.

linnabraham avatar Sep 09 '23 17:09 linnabraham

The sanitize-html npm package filters out images by default. I have enabled images and made some other change in my fork if you are interested.

agrmohit avatar Sep 09 '23 17:09 agrmohit

Just wanted to quickly chime in to say I've been using Omnivore for a while now and wanted to add this Send to Kindle feature for myself. I've recently discovered ScriptKit and love it!

(First I thought the script from @kebot would be a perfect fit for Val.town but, unfortunately, the generated epub can't be saved and thus I can't attach it via mail. Maybe there is a way..)

Regardless, using ScriptKit I can trigger it manually or on a schedule! Everything's working and the generated epub gets saved! Just need to figure out the send to email part.

Thanks for Omnivore and thanks for the epub script!

Edited to add gist to the ScriptKit script

ment4list avatar Dec 06 '23 10:12 ment4list

Instead of send to kindle. If you have a new Kindle with the latest firmware (which supports modern web technology). I have build an alternative web client for that. You can try it on https://reink.app or repo(https://github.com/kebot/reink.app). I only tested it with my Kindle Scribe and my computer.

kebot avatar Dec 06 '23 10:12 kebot

Hello,

I actually use Wallabag and I use the EPUB export functionality often. I cannot consider migrate to Omnivore without this.

Any hope for an EPUB document export or a Send to Kindle (since Amazon support EPUB sending to Kindle by mail) functionality?

DanielChesters avatar Jan 31 '24 23:01 DanielChesters

Hi folks! Is there any update on this?

esoxjem avatar Apr 12 '24 17:04 esoxjem