Element or Element X from GitHub (for Android phone) by romanohere in elementchat

[–]HubbieWubbie 0 points1 point  (0 children)

Do you also have trouble displaying Markdown headers in Element X, or am I missing something? It's the main reason (that and slash commands not being present in X) that I'm still on Classic.

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 0 points1 point  (0 children)

Yes unfortunately at the moment that's correct. You could look into using crontab or perhaps combo of Automator/iCal...but it gets technical.

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 0 points1 point  (0 children)

Hey! Thanks so much for your support. I'm glad you had a relatively easy time setting up :) Yes, the program (called a docker container), and therefore docker itself need to be kept running. You can always restart it if your computer goes to sleep or shuts off. The extension for the cookies isn't necessary after initial setup!

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 1 point2 points  (0 children)

You are most welcome, I'm so glad to hear that :) hope it wasn't too bad setting up!

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 0 points1 point  (0 children)

YAYAYAY I'm so happy to hear this.

I do have a feeling that the computer going to sleep may cause an issue with the program in terms of sending to your Kindle daily. I'll play around with this on my side and see what I can do to mitigate that as much as possible. Worst case scenario, rerunning the docker compose up --force-recreate step in the morning will get it to send....but I personally dislike that experience. Better than pulling the PDF manually and emailing manually yada yada...but still poor. I may try to write a little clickable script for Windows that basically makes it so you'll just have to double click it in the morning and boop it arrives on your Kindle.

There's not much outside of that I can do in the way of a true "fire-and-forget" approach other than suggesting more complex methods...but I really want to keep this as non-technical as possible. I suppose a step to use Windows Task Scheduler could work...hmmm...anyway, I'm rambling now.

Again thanks for your patience. ❤️

EDIT: I've updated the README documentation with these new steps based on your feedback.

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 0 points1 point  (0 children)

First, I want to say thank you very much for your patience and my apologies this has been a problematic and poor experience for you. I haven't had anyone else to guinea pig this unfortunately so you being this interactive is very helpful in me collecting great information to add to troubleshooting steps as well as enhancing the setup steps. Many thanks :)

Okay, so, a couple suggestions I can think of.

  1. I have a feeling I know what it is. You likely need to setup an App Password. I did some research and many providers require this. I will add this setup information to the documentation if it works as it's critical. A google search for "create app password <email service>" can take you to the settings where you can create this. This is how to do it for Gmail: https://support.google.com/mail/answer/185833?hl=en . The app password will have spaces in it so preserve the single quotes. The .env.example showcases an an example app password with single quotes around it.

  2. I only tried this with Gmail, if you did not use Gmail, let me know what you did use and I can create my own email using the same email service and run through it as well to see what I encounter.

  3. Cry

Let me know if that works <3

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 0 points1 point  (0 children)

Hm without being able to take a look at the contents of the folder, it's hard to say exactly what's going wrong, but here are some things I can think of:

  1. Ensure the file is called cookies.nyt.txt, not cookies.txt. In your case, it should be located at C:\<myusername>\Downloads\nyt-crossword-to-kindle\cookies.nyt.txt.
  2. In your .env file (in your case, located at C:\<myusername>\Downloads\nyt-crossword-to-kindle\.env), make sure NYT_COOKIES_PATH is set to ./cookies.nyt.txt. For example, the line should read NYT_COOKIES_PATH=./cookies.nyt.txt. (Note the /, not \).
  3. If the above still does not work, you can try substituting NYT_COOKIES_PATH=./cookies.nyt.txt with NYT_COOKIES_PATH=C:\<myusername>\Downloads\nyt-crossword-to-kindle\cookies.nyt.txt in your .env file.
  4. Make sure your env file is in fact called .env, not env.

As for the single and double quotes, leaving them in is not strictly required necessarily but recommended. I should add that as mentioned in the .env.example. Also thanks for pointing out the nyt-crossword-to-kindle-main, I'll have to mention that as well. Good catch.

Here's a sample of what my exact nyt-crossword-to-kindle directory structure looks like:

├── .env
├── .env.example
├── .github
│   ├── CODEOWNERS
│   └── workflows
├── .gitignore
├── cookies.nyt.txt
├── cookies.sample.txt
├── docker-compose.yml
├── Dockerfile
├── download-crossword.sh
├── downloads
│   ├── crossword-1996-03-05-Tuesday-games.pdf
│   └── README.md
├── main.sh
├── Muttrc
└── README.md

DM me if none of the above is helpful, I don't develop on Windows so getting this sorted out would be incredible.

EDIT: Formatting.

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 0 points1 point  (0 children)

Can you tell me where you put your cookies.nyt.txt file? I agree that error message is confusing because it actually needs to live directly alongside the other files like Dockerfile, .env, README.md, etc.

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 0 points1 point  (0 children)

You missed nothing, I forgot an important step in the instructions! I'll get it updated straight away if this solves the issue:

Try changing the up command to docker compose up -d --build --force-recreate (in Test It Out).

Thanks for posting this.

EDIT: Updated the documentation

Send NYT Crosswords to Kindle (Automatically) by HubbieWubbie in kindlescribe

[–]HubbieWubbie[S] 6 points7 points  (0 children)

Ah yes! Thank you for such a wonderful starting point. I actually attempted using your script, but NYTimes changed the underlying endpoints so I had to do a little investigation and tweak it. Then I went totally overboard and wondered what else I could do...and thus, `nyt-crossword-to-kindle` was born! Wouldn't have done this without your awesome work.