krz/daily-poem

clone: git clone https://gitbay.org/krz/daily-poem.git

main: README.nfo · raw

 1┌──────────────────────────────────────────────────────────────┐
 2│  D A I L Y   P O E M                       [ KRZ ]   krz.sh  │
 3└──────────────────────────────────────────────────────────────┘
 4
 5WHAT
 6  python program. requests a random poem from the poetrydb api and
 7  emails it to a configured list of addresses.
 8
 9REQUIRES
10  python, and a way to send mail (e.g. mailutils on debian).
11
12RUN
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└──────────────────────────────────────────────────────────────┘