tobi/highlights
소개
download your kindle highlights and email random ones to your inbox
생산성 및 자동화측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHighlights
Automatically email yourself a random Amazon Kindle highlight from your collection with this script. I run it on Heroku for free and email you a highlight each day.
Heroku Setup Instructions
Clone this repository.
Install the Heroku toolbelt. (and run
heroku login)In the highlights repository, create a new Heroku app:
heroku apps:create
- Push your Ruby app to Heroku:
git push heroku master
- Add the Heroku Scheduler add on to your app:
heroku addons:create scheduler
- Add the free Heroku Mailgun add on to your app. This will automatically set your email environment variables as well:
heroku addons:create mailgun
- Set your additional environment variables in Heroku:
heroku config:set AMAZON_USER="[email protected]"
heroku config:set AMAZON_PASS="youramazonpassword"
heroku config:set TO="[email protected]"
- On your Heroku scheduler dashboard, schedule the default rake task daily (or at an interval of your choosing):
bundle exec rake
- Add and verify your own Mailgun SMTP Domain from the dashboard or add your email as an authorized receipient.
Optionally you can test the script via heroku run bundle exec rake
Notes
The default rake task first downloads and updated list of your highlights, then emails a random one to the TO address. This is because the file system on the Heroku Cedar stack is ephemeral. Each time a dyno is spun up, the file system is wiped, including any previous copies of data.json, the JSON file containing your highlights. For this reason, the script naively downloads an updated copy each time.
관련 프로젝트 살펴보기
불러오는 중…