##Preview
Simple Dashing widget to display LiveChat visitors status (number chatting and number queued).
If the number of visitors waiting to chat is more than 0, a red highlight is displayed.
##Dependencies
Add it to dashing's gemfile:
gem 'rest-client'
and run bundle install
. Everything should work now :)
##Usage
The easiest way to install is to grab this gist's ID from the URL and use dashing install
.
Otherwise, to use this widget, copy livechat_visitors.html
, livechat_visitors.coffee
, and livechat_visitors.scss
into the /widgets/livechat_visitors
directory. Put the livechat_visitors.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="livechat_visitors" data-view="LivechatVisitors" data-title="LiveChat Visitors"></div>
</li>
##Settings
You'll need to add a LiveChat login email and API key to the livechat_visitors.rb job file.
The jobs runs every thirty seconds by default, you can adjust that by editing the SCHEDULER line in the job file.