an assorted collection of randomness and non-essential remarks
Have at least one original repos where PHP is the dominant language The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos Fork and commit to someone's open source project in need Have a project valued enough to be forked by someone else Have at least three original repos where Ruby is the dominant language Have at least one original repo where Ruby is the dominant language Have at least one original repo where some form of shell script is the dominant language
Endorse tarakanbg on Coderwall Powered by Obtvse

Vatsim_metar: a ruby gem for displaying Vatsim metars

I just released a simple ruby library for pulling and displaying latest VATSIM metar for a particular station. Can be used with Rails, Sinatra or any other kind of ruby application (web or otherwise).

The usage is really simple, here's a quote from the README:

The .metar method can be applied to a string (or variable containing a string), representing a valid ICAO code. Like this:

Loading gist...

The input ICAO code is not case sensitive, so the following should work as well:

Loading gist...


This library augments the default Ruby String class with a method named .metar. It returns a string, containing the latest Vatsim METAR. The data is obtained via curl from Vatsim's web API, hence the curb dependency.

The packaged gem is available on rubygems and the source code and documentation are on github.

Back to Blog