This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.textile | Fri Jun 20 22:20:40 -0700 2008 | |
| |
Rakefile | Tue Apr 01 23:02:21 -0700 2008 | |
| |
bom-weather.gemspec | Tue Apr 29 00:02:46 -0700 2008 | |
| |
lib/ | Thu Jun 26 05:08:37 -0700 2008 | |
| |
spec/ | Thu Jun 26 05:08:37 -0700 2008 | |
| |
tasks/ | Tue Apr 01 23:02:21 -0700 2008 |
README.textile
BOMWeather
Weather from the Australian Bureau of Meteorology (BOM)
Usage
To get the weather forecast, there are a few options:
- Getting a location by name
BOMWeather::Location.find({ :location => "NAME" }) - Getting a location by BOM location id
BOMWeather::Location.find({ :loc_id => "ID" }) - Getting a whole state’s weather forecasts
BOMWeather::Location.find({ :state => "STATE" })
This takes state’s in abbreviated form (e.g. WA, NSW, VIC)
Provided this finds a location (or locations), you will get an array of Location objects.
You can then get access to the forecast information:
loc = BOMWeather::Location.find({ :location => "NAME" })
loc.first.outlook
This returns an array of Forecast objects, each of which have the following accessible methods
- max_temp
- min_temp
- conditions
- forecast_date (a Time object)
- issue_time







