##Preview
##Description
Simple Smashing widget to display followed and currently live twitch streams.
##Dependencies and Installation
Add it to smashing's gemfile:
gem 'twitch', '~> 0.1.0'
and run bundle install
.
Create a twitch api app
Run smashing install e1b452fc01bcae68f050fb48f44df93f
, or copy twitch.haml
, twitch.coffee
, and twitch.sass
into the /widgets/twitch
directory and put the twitch.rb
file in your /jobs
folder.
Go to the base folder of your smashing project and run:
wget https://gist.githubusercontent.com/thiemok/e1b452fc01bcae68f050fb48f44df93f/raw/5c6d540da7bbc7d7999f0c5c841b59ad063c8094/authorize_twitch.rb
ruby authorize_twitch.rb
Follow the prompts and the widget should be ready to use.
If you want the twitch logo as a background image, grab this package from the twitch brand assets. And put the contained png file in the /public
folder of your project.
##Usage
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="twitch" data-view="Twitch"></div>
</li>