Is there a Ruby client for US National Weather Service data?

The only US weather data that is commercially available is the US National Weather Service . I would like to use it. Is there a Ruby / Rails library to access it?

Perl will also be useful. They provide an example of Perl . I would use it as a guide for writing a version of Ruby.

+7
ruby ruby-on-rails weather-api weather
source share
4 answers

NWS provides a RESTful web service in addition to the SOAP service, but if your needs are simple, consider the outoftime-noaa gem on github. It provides a simple interface for obtaining forecasts and current conditions.

(We’ll warn you that one of its dependencies is not yet compatible with Ruby 1.9.)

+3
source share

There is a Perl CPAN module called Weather-NWS that uses NDFD .

+3
source share

NDFD is a SOAP-based web service. Just use the Ruby SOAP client to send it the correct information and process the response. Have questions about using SOAP from Ruby?

+2
source share

It depends on what you want to do.

If you just want a widget for a location or two SOAP interfaces to be fine.

If you need a large amount of data (or many places), NOAA wants you to upload raw grib2 data (updated) hourly. A simple batch job works for this.

0
source share

All Articles