Sha256: 8344f360f2cdfa61f96aab45dc84a44bbdde8143227185208d17b855aad6c68d

Contents?: true

Size: 860 Bytes

Versions: 2

Compression:

Stored size: 860 Bytes

Contents

# Weather-API

A Ruby wrapper for the Yahoo! Weather XML RSS feed.

## Installation

    [sudo] gem install weather-api

## Description

Weather-API provides an object-oriented interface to the Yahoo! Weather XML RSS
feed service.

Details on the service can be found [here](http://developer.yahoo.com/weather).

## Usage

A simple example:

    require 'rubygems'
    require 'weather-api'

    # look up WOEID via http://weather.yahoo.com; enter location by city
    # name or zip and WOEID is at end of resulting page url.
    response = Weather.lookup(9830)

    print <<EOT
    #{response.title}
    #{response.condition.temp} degrees
    #{response.condition.text}
    EOT

This produces:

     Conditions for Ladysmith, CA at 5:00 pm PDT
     13 degrees
     Cloudy

## Copyright

Copyright (c) 2012 Andrew Stewart. See `LICENSE` file for more details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
weather-api-1.1.1 README.md
weather-api-1.1.0 README.md