Simple Dashing widget (and associated job) to display a Twitter search. Uses Twitter API v1.1.
##Dependencies
Add it to dashing's gemfile:
gem 'twitter', '~> 5.0.0'
and run bundle install
. Everything should work now :)
##Usage
Put the twitter-search.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="Search Tweets" style="background-color: #71388a"></div>
</li>
##Settings
You'll need to add the twitter configs for your desired account to the job.
Tweets are fetched every 10 minutes, but you can change that by editing the job schedule.
If you have issues with SSL, you can bundle the SSL root certificates like this.
- Download http://curl.haxx.se/ca/cacert.pem and put it somewhere in your project
- In ruby, tell OpenSSL where to find the file:
ENV['SSL_CERT_FILE'] = File.expand_path('../cacert.pem', __FILE__)