Skip to content
visualize evernote data, based on d3.js
Ruby CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
coffee
evernote-sdk-ruby
public
sass
.gitignore
README.md
Rakefile
client.rb
config.rb
config.ru
en-sql.rb
enclient.rb

README.md

Evernote HeatMap

Evernote HeatMap visualizes Evernote metadata using d3.js and Evernote Cloud API.

Overview

  • rackup - run sinatra server
  • rake full - run sinatra server and start watching files
  • localhost:9292/ - view heatmap
  • localhost:9292/reload - regenerate JSON file via Cloud API

Paste your "Developer Tokens" to config.ru

Evernote HeatMap uses evernote/evernote-sdk-ruby (already in the repository).

Requirements

To run rake full, following libraries, gems or datas will be required:

For minimalists

If you would like to view your Evernote HeatMap immediately, you need followings:

  • Command-Line-Interface
  • Ruby Programming Language
  • Sinatra Gem
  • Git
  • Developer Token

If you you know and available above, edit config.ru like

$token = "YOUR-DEVELOPER-TOKEN"

to

$token = "S=s1:U=279bf:E=13f92f064bf:C=1383b3f38c3:P=1cd:A=en-devtoken:H=725df8b086b2cb08e13a7bf5ca186406"

Then rackup, open the URL and skip to Generating JSON.

Sinatra Gem is driven by Ruby Programming Language. You need to install Ruby. To install Ruby, read this page. If you are using Mac, you don't need to install Ruby because Ruby is already installed. You can check whether Ruby is woking by typing the following command in Command-Line-Interface (e.g. Terminal):

ruby -e "puts 'hello, world'"

Sinatra gem requires RubyGems. Because RubyGems is a part of Ruby, RubyGems is basically available if Ruby is installed. To get Sinatra Gem, type:

gem install sinatra

To get Developer Token, visit Evernote developer page and get a production developer token. Once you've got developer token, edit config.ru file using Text Editor (not Word Processor). find the line something like this:

$token = "YOUR-DEVELOPER-TOKEN"

Change that line like so:

$token = "S=s1:U=279bf:E=13f92f064bf:C=1383b3f38c3:P=1cd:A=en-devtoken:H=725df8b086b2cb08e13a7af5ca186406"

Make suer you quote Developer token using " (quotation mark).

Download this repository via Git and go to the repository. Again, if you are using Mac, you don't need to install Git because Git is already installed. In Command-Line-Interface, type the following commands:

git clone git://github.com/puraumu/evernote-heatmap.git
cd evernote-heatmap

Now, you can run Sinatra Server by typing following command in Command-Line-Interface:

rackup

Then open your browser and go to the URL:

http://localhost:9292/reload

Generating JSON

This page will generate JSON file. But the page does not immediately generate JSON file unless you click "reload" button. So the page seems no error or no warning, click the button.

When you got some error, check out the message or google some words.

Note

This code uses your Evernote Account. The code uses Developer Tokens for read only access, but use at your own risk.

License

(The MIT License)

Copyright (C) 2012 Puraumu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.