Commit 8177a0a0b7
Unsigned
Layout: unified · split
README.nfo deleted −28
| @@ -1,28 +0,0 @@ | |||
| 1 | ┌──────────────────────────────────────────────────────────────┐ | ||
| 2 | │ D A I L Y P O E M [ KRZ ] krz.sh │ | ||
| 3 | └──────────────────────────────────────────────────────────────┘ | ||
| 4 | |||
| 5 | WHAT | ||
| 6 | python program. requests a random poem from the poetrydb api and | ||
| 7 | emails it to a configured list of addresses. | ||
| 8 | |||
| 9 | REQUIRES | ||
| 10 | python, and a way to send mail (e.g. mailutils on debian). | ||
| 11 | |||
| 12 | RUN | ||
| 13 | git clone <REPO_URL> | ||
| 14 | cd daily-poem | ||
| 15 | pip install -r requirements.txt | ||
| 16 | |||
| 17 | edit main.py and set: | ||
| 18 | - sender_email: the from address | ||
| 19 | - recipient_emails: a list of to addresses | ||
| 20 | - smtp_server: smtp host, defaults to localhost | ||
| 21 | |||
| 22 | then: | ||
| 23 | |||
| 24 | python main.py | ||
| 25 | |||
| 26 | ┌──────────────────────────────────────────────────────────────┐ | ||
| 27 | │ krz.sh │ | ||
| 28 | └──────────────────────────────────────────────────────────────┘ | ||
README.org added +26
| @@ -0,0 +1,26 @@ | |||
| 1 | #+title: daily poem | ||
| 2 | |||
| 3 | * what | ||
| 4 | python program. requests a random poem from the poetrydb api and | ||
| 5 | emails it to a configured list of addresses. | ||
| 6 | |||
| 7 | * requires | ||
| 8 | python, and a way to send mail (e.g. mailutils on debian). | ||
| 9 | |||
| 10 | * run | ||
| 11 | #+begin_src sh | ||
| 12 | git clone <REPO_URL> | ||
| 13 | cd daily-poem | ||
| 14 | pip install -r requirements.txt | ||
| 15 | #+end_src | ||
| 16 | |||
| 17 | edit main.py and set: | ||
| 18 | - sender_email: the from address | ||
| 19 | - recipient_emails: a list of to addresses | ||
| 20 | - smtp_server: smtp host, defaults to localhost | ||
| 21 | |||
| 22 | - then: | ||
| 23 | |||
| 24 | #+begin_src sh | ||
| 25 | python main.py | ||
| 26 | #+end_src | ||