Nike+ widget for Dashing, which uses the Nike gem by Eric Harrison. It displays your last activity data (NikeFuel points, calories, distance and duration). All of the previously mentioned options are shown in a slideshow. Examples of the widget can be viewed below.
Nike v2 is a dependency of the Nike+ widget. So, add nike_v2 to the Gemfile of your Dashing dashboard:
gem "nike_v2"and run bundle install.
To actually use the widget on your own Dashboard, you'll have to request an Access Token from Nike+ (Nike didn't release the OAuth API yet.) With this Access Token you'll be able to retrieve data from you Nike+ account.
To use this widget, copy nikeplus.coffee, nikeplus.html and nikeplus.scss into the /widgets/nikeplus directory of your dashboard. Copy nike+logo.png into the /assets/images directory and put the nikeplus.rb file in your /jobs folder.
To include the widget on your dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="nikeplus" data-view="Nikeplus"></div>
</li>On to the next part. Enter the Access Token in the nikeplus.rb job file:
# widget configuration
access_token = "ACCESS_TOKEN"
