A Dashing widget to show Hipchat user presence on a dashboard.
Add the following to your dashing Gemfile
gem 'hipchat'And run bundle install
Copy the hipchat_presence.coffee, hipchat_presence.html and hipchat_presence.scss file to into /widgets/hipchat_presence directory and the hipchat_presence.rb into the /jobs directory.
Then to include widgets on the dashboard, add one or more of the following items to your dashboard file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="[email protected]" data-view="HipchatPresence"></div>
</li>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="[email protected]" data-view="HipchatPresence"></div>
</li>The data-id attribute should be in the form of hipchat-presence-<hipchat email>. You can have as many different widgets representing users as you want. Just make sure the email address used in the widget is added to the options hash in the :users key inside your jobs/hipchat_presence.rb file.
The following options need to be set in the /jobs/hipchat_presence.rb file in the options hash:
:api_token- Your hipchat v2 API token.:users- An array of user email addresses that correspond to their hipchat accounts.