Top Level Namespace
- Includes:
- REXML
Defined Under Namespace
Modules: YahooWeather Classes: String
Constant Summary collapse
- BASE_URL =
Yahoo! Weather service’s base url.
'http://weather.yahooapis.com/forecastrss'
- TTL =
Time To Live. Data is cached for at least TTL seconds.
60 * 60
- DAY =
Default day is today.
0
- WOEID =
Default woeid. Change this to your preference.
'12847789'
- UNITS =
Default units are :metric. You can either set this to :english, if you like.
:metric
- SEPARATOR =
Separator between infos.
("\t" * 2) + ('=' * 40)
- FORMAT =
Default output formatting directives.
[]
- FORMAT_ALL =
Format directive which prints all available informations.
fmt
- FORMAT_HELP =
Format directives help screen.
<<EOF Format codes: Basic %tn Text description. %T Current temperature. %ln Low forecast temperature. %hn High forecast temperature. %cn Current condition code. %dn Date/Time of observation/forecast. Location %L Observed location. %a Latitude of observed location. %b Longitude of observed location. %r Region name. %C Country name. Units %U Temperature units. %D Distance units. %p Pressure units. %s Speed units. Wind/Pressure/Humidity %W Wind chill. %e Wind direction. %S Wind speed. %H Humidity. %v Visibility. %P Pressure. %R Barometer status (0 steady, 1 rising, 2 falling). Astronomy %f Sunrise time. %g Sunset time. EOF