##Preview
Simple Dashing widget (and associated job) to display recent Twitter data for a specific ticker symbol.
##Dependencies
Add it to dashing's gemfile:
gem 'twitter'
and run bundle install
or you can require it manually
##Usage
To use this widget, copy comments.html
, comments.coffee
, and comments.scss
into the /widgets/comments directory. Put the twitter.rb
file in your /jobs
folder.
To include the widget in a 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="twitter_mentions" data-view="Comments" data-title="Recent Tweets"></div>
</li>
##Settings
You'll need to select the stock ticker symbol you wish to use. You can set it by editing the Twitter search query in twitter.rb
Tweets are fetched every 10 minutes, but you can change that by editing the job schedule.
The scheduler part should be: