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'
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.
First of all thanks jeroenbegyn for sharing this script. It works great for me.
I also wanted to display the time of the tweet and was able to get this from 'tweet.created_at' in the .rb file but didn't know the exact steps to display this within the dashing dashboard (.erb file).
Can someone kindly suggest the exact solution for this please?
Thanks