A wrapper for the Noaa weather API. This wrapper is barometer compatiable and can be used with or without barometer.
This wrapper was designed to be used via Barometer, or on its own.
By using this wrapper directly, you lose any Barometer aggregation and failover capabilities. Barometer is still dependency to provide a framework for query conversion, weather service integration and data processing.
query = Barometer::Query.new('42.7243,-73.6927')
result = Barometer::Noaa.call(query)
puts result.current.temperature.c
Barometer is a weather service framework, providing aggregation and failover capabilities. To make Noaa available to Barometer, you must register it as an available weather service.
Barometer::WeatherService.register(:noaa, Barometer::Noaa)
Then follow the instructions provided by Barometer.
- 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
- repo: http://github.com/attack/barometer-noaa
- travis ci: https://travis-ci.org/attack/barometer-noaa
- code climate: https://codeclimate.com/github/attack/barometer-noaa
Copyright (c) 2009-2014 Mark Gangl. See LICENSE for details.