Be the most popular guy at the office by building a Beer O’clock monitor

So we have a tech team Beer o’clock on Fridays, at 5pm in the breakout room.

What we also have is bunch of monitors mounted on the walls displaying data about how the service is doing and business metrics such as number of bookings for us to be quickly able to react if anything flashes red and goes below a certain threshold. We use Geckoboard

Geckoboard is pretty flexible on what you can feed to it. What I ended up doing is writing a few lines of PHP to produce a JSON endpoint for Geckoboard to read. 

It look like this:

{"item":[{"text":"6 days 4 hours 48 minutes","type":"0"}]}

You’ll need to host  somewhere. Take a look at my previous posts on how to build a free simple hosting solution on AWS In Geckoboard on the dashboard you want the widget to reside in select Add a widget -> Custom Widget -> Text.  Fill in the Label, Widget size (I found 2x1 the best for this purpose) and the URL where you host your oclock.php.

Check that the Data Feed format is JSON, choose GET and how often you want Beer O’Clock to update.

You can download the Gecko-beer code snippet from [GitHub](https://github.com/samituohino/gecko-beer) 
  • I lied. This won’t make you the most popular guy at the office. It is entertaining though.