Buoyancy
A Ruby gem for getting data from the NDBC (National Data Buoy Center). The data provided by these stations (buoys) is incredibly useful, but the data itself is inconsistent, poorly formatted, and somewhat difficult to figure out how to get. This gem is a wrapper that simplifies all of that.
Installation
Add this line to your application's Gemfile:
gem "buoyancy"
And then execute:
$ bundle
Or install it yourself as:
$ gem install buoyancy
Usage
require "rubygems"
require "bundler"
Bundler.setup
require "buoyancy"
# Get a list of all the stations
Buoyancy.stations
# Meteorological data coming soon
# Buoyancy.station("0y2w3").meteorological
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request