Simple Uptime Robot Dashing widget
Dashing widget to display a short list of Uptime Robot monitors.
##Usage
Add this to your Gemfile and run bundle install
:
gem 'uptimerobot'
The files uptimerobot.coffee
, uptimerobot.html
and uptimerobot.scss
go in the /widget/uptimerobot
directory.
The uptimerobot.rb
goes into the /jobs
directory.
Put the following in your dashboard.erb file to make it show up in your dashboard:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="uptimerobot" data-view="Uptimerobot"></div>
</li>
##Settings (uptimerobot.rb
)
You will need to provide an API key from Uptime Robot API
The correct link is https://gist.github.com/Flo3561/9664be31e6cd9f53abc909b8c4b3b567 and there's a little bug (at least with current dependencies): you have to change the API keys id in the constructor to
client = UptimeRobot::Client.new(api_key: apiKey)
It's an underscore...