tiny sinatra server to publish your server status via http (cors headers included = can be called via ajax)
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
Gemfile
Gemfile.lock
Readme.md
config.ru
srvstatus.rb

Readme.md

srvstatus

tiny sinatra server to publish your server status via http

uses CORS headers so you can reach it trough ajax calls

just

bundle

then

rackup

and you are gtg


usecase:

http://riotvan.net

when the dot in the upper right corner turns green means someone's in the office

how does it work

it makes an ajax call to http://riotvan.dyndns.org to figure out if the office is opened (electricity turned on == server goes online)