Memot
Synchronize Evernote and Markdown in Dropbox
(TODO: Add image)
Installation
$ gem install memot
$ memot
Usage
Configure
You can choose configuration style:
~/.memot.yml
- Environment variables
~/.memot.yml
Create ~/.memot.yml
and fill this.
auth:
evernote:
token:
sandbox: false
dropbox:
app_key:
app_secret:
access_token:
notes:
<evernote_notebook>: <dropbox_path>
# example
daily: /memo/daily
reading: /memo/reading
Environment variables
key | type | example |
---|---|---|
MEMOT_DROPBOX_APP_KEY | string | |
MEMOT_DROPBOX_APP_SECRET | string | |
MEMOT_DROPBOX_ACCESS_TOKEN | string | |
MEMOT_EVERNOTE_TOKEN | string | |
MEMOT_EVERNOTE_SANDBOX | boolean | false |
MEMOT_NOTES | string | daily:/memo/daily,reading:/memo/reading |
MEMOT_NOTES: <evernote_notebook1>:<dropbox_path1>[,<evernote_notebook2>:<dropbox_path2> ...]
Docker image
Memot Docker image is available at quay.io/dtan4/memot.
$ docker run -e MEMOT_DROPBOX_APP_KEY=... quay.io/dtan4/memot
This image runs memot
every 15 minutes.
If you'd like to configure interval, specify command explicitly.
# Run every 30 minutes
$ docker run -e MEMOT_DROPBOX_APP_KEY=... quay.io/dtan4/memot bundle exec bin/memot -i 30
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
MIT