##Preview
Simple Dashing widget (and associated job) to display GitHub Status. Uses GitHubs Status API
##Dependencies
Add it to dashing's gemfile:
gem 'httparty'
and run bundle install
. Everything should work now :)
##Usage
To use this widget, copy github_status.html
, github_status.coffee
, and github_status.scss
into the /widgets/github_status
directory. Put the github_status.rb
file in your /jobs
folder.
You'll also need various images from GitHub InvertoCat, Good Logo, Minor Logo, and Major Logo. Download them. Please do not leech them from Github for each request you make to your widgit! Download them, and put the files in your /assets/images
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="github_status" data-view="GithubStatus" data-title="GitHub Status"></div>
</li>
##Settings
Status is fetched every minute, which maybe a bit much. You can change that by editing the job schedule.
I cant get the githubstatus image to show up for some reason. the images are all there in the assets/images and i double checked the coffee file and they point to them correctly so im not sure why they are not visible on the widget.
edit: it seems that the coffee file should points to the images as /assets not /assets/images, as it was originally before lynnaloo suggests changing it. after changing from assets/images to just assets/, it displays correctly.