Dashing widget to display random girls. Check out this video to see how it works.
- Install Wavegirls widget
The files wavegirls.coffee
, wavegirls.html
and wavegirls.scss
go in the /widget/wavegirls
directory.
The wavegirls.rb
goes in the /jobs
directory.
Otherwise you can install this plugin typing:
dashing install GIST_ID
- Add the following span right before
gridster
div in your dashingboard.erb file:
<span id="wavegirls-img" data-id="wavegirls" data-view="Wavegirls" data-title="wavegirls" style="padding: 0px"></span>
<div class="gridster">
...
- Dashing API
To be able to communicate with the widget we need an API (reasons explained below). Add this block to config.ru
after configure
section:
get '/api/:widget/:command' do
widget = params[:widget]
send_event(widget, params)
200
end
Widget has 3 modes:
- default (hide pictures)
- friday (show pictures in random widgets)
- fullscreen (show pictures in fullscreen)
By default it won't show you anything! This is because it probably would distract you from your work. Thus, we need a way control it. Luckily, we can now use the widget's api.
/api/wavegirls/show?mode={mode}
- enable given mode
Example:
curl 'http://localhost:3030/api/wavegirls/show?mode=friday'
Note: if you are using Github's Hubot, take a look at this script. It provides hubot commands to control wavegirls widget.
By default, widget will be showing pictures randomly using all the dashboard widgets. If you want to prevent some of the widgets showing the pictures, add their ids to excluded_dash_ids
(see wavegirls.coffee
).
You are free to use, modify or build something new on the top of this widget. However, I want to warn you, that it is using http://wavegirls.net service, which content suitable only for adults ages 18 and up. Make sure you've read the terms of Wavegirls service. By using this widget you agree with the terms of Wavegirls service.
is wavegirls.net down?