Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xieyuschen/sub-magazines
Subscribe magazines published on Github and send it to my Kindle
https://github.com/xieyuschen/sub-magazines
haskell kindle magazine subscription
Last synced: about 1 month ago
JSON representation
Subscribe magazines published on Github and send it to my Kindle
- Host: GitHub
- URL: https://github.com/xieyuschen/sub-magazines
- Owner: xieyuschen
- Created: 2023-08-18T07:30:25.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-19T06:53:14.000Z (11 months ago)
- Last Synced: 2024-02-19T07:48:04.730Z (11 months ago)
- Topics: haskell, kindle, magazine, subscription
- Language: Haskell
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Sub-Magazines
Sub-magazines subscribes to the [magazine repo](https://github.com/hehonghui/awesome-english-ebooks) and sends newly added `epub` format files to my Kindle by email. It checks the latest commit on the master branch daily with the help of scheduled github action. Currently, it supports hardcoded destination only.
## Configuration Scheme
The Github action relies on configurations in environment variables.
- `SMTP_CONFIG`:
The format of `SMTP_CONFIG` is JSON. It could be set up directly on github page. If you want to set up it by shell, please squash multiple lines to one line and add `\` before `"`.```json
{
"name": "name",
"email": "[email protected]",
"password": "password",
"host": "localhost",
"destination": "destination"
}
```- `TOKEN_GITHUB`: String format.
### Local Debug
Exporting the environment variables like this:
```sh
export SMTP_CONFIG="{\"name\":\"xieyuschen\",\"email\":\"[email protected]\",\"password\":\"your-password\",\"host\":\"smtp.gmail.com\",\"destination\":\"[email protected]\"}"
export TOKEN_GITHUB=github_blablabla
```