A Dashing widget to add live twitch streams do your dashboard
<object type="application/x-shockwave-flash" height="700" width="990" id="live_embed_player_flash" data-bind-data="channel | prepend 'http://www.twitch.tv/widgets/live_embed_player.swf?start_volume=50&channel='"></object>
class Dashing.Twitch extends Dashing.Widget
@echo off
echo Enter Channel Name
setlocal
set /p channel=
curl -d {"""auth_token""":"""YOUR_AUTH_TOKEN""","""channel""":"""%channel%"""} http://host:3030/widgets/twitch
A Dashing widget to add live twitch streams to your dashboard.
Note that this is not really a productive widget (unless you are a streamer, I suppose). Our's is in the break room with weather and news widgets.
Make a folder called 'twitch' in your widgets directory. Add twitch.html and twitch.coffee to the twitch folder.
Add the widget HTML to your dashboard
<li data-row="1" data-col="1" data-sizex="3" data-sizey="2">
<div data-id="twitch" data-view="Twitch"></div>
</li>
Use the following to switch channels:
curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "channel": "CHANNELNAME" }' \http://host:3030/widgets/twitch
if you have curl for windows in your path, you can use the batch file to make it easy!