Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Ruby gem for weather extraction from
Fetching latest commit...
Cannot retrieve the latest commit at this time.


== rweather

Ruby gem to access Weather Channel ( XML API.

This gems lets you access to the search and get current conditions features. Forecast it's not implemented yet.

In order to use the API you will need first to get your partner_id and licence key from at this address:

Sign up, enter all your data and you'll get an email with the partner_id, licence key and a link to download the SDK info.
If you need to read the license agreement and the API doc you can do it here:

== Example

  require 'rubygems'
  require 'r_weather'

  RWeather.partner_id = "xxxxxxxxxx"
  RWeather.key = "yyyyyyyyyyyyyyyy"

  locations ='tucuman') # that's where I'm from :)
  unless locations.empty?
    locations.each_with_index do |location, i|
      puts "#{i}) #{} - #{}"
    cc = RWeather.current_conditions(
    puts "Current conditions: "
    puts "  Temperature: #{cc.tmp}"
    puts "  Feels like:  #{cc.flik}"
Something went wrong with that request. Please try again.