README.md in accuweather-0.2.0 vs README.md in accuweather-0.2.2
- old
+ new
@@ -1,10 +1,11 @@
# Accuweather
-Get weather information for cities around the world using the accuweather API. Includes
-temperature, pressure, humidity, weather text and GPS coordinates.
+A simple wrapper around the accuweather web API written in Ruby
+Get weather information for cities around the world. Includes current current conditions for temperature, pressure and humidity. Forecasts include temperature highs, lows, "real feels", UV, wind speed and direction, rain, snow, ice probabilities and amounts. The web API returns seven days of forecasts with estimates for both day and nighttime.
+
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -19,11 +20,11 @@
$ gem install accuweather
## Usage
-Search for an accuweather location:
+Search for a city location to determine its id:
```ruby
location_array = Accuweather.city_search(name: 'vancouver')
vancouver = location_array.first
@@ -59,14 +60,12 @@
weather_forecast.map(&:date) # => ["11/27/2015", "11/28/2015", "11/29/2015", "11/30/2015", "12/1/2015", "12/2/2015", "12/3/2015"]
weather_forecast.map(&:daytime).map(&:high_temperature) # => ["45", "45", "47", "44", "44", "48", "48"]
weather_forecast.map(&:nighttime).map(&:low_temperature) # => ["27", "28", "31", "32", "40", "42", "36"]
```
-Here is a full list of attributes for daytime and nighttime forecasts:
+See `Accuview::Conditions::ForecastWeather` class for a full list of attributes for daytime and nighttime forecasts.
-`weather_text`,`weather_text_long`,`weather_icon`,`high_temperature`,`low_temperature`,`real_feel_high`,`real_feel_low`,`wind_speed`,`wind_direction`,`wind_gust`,`max_uv`,`rain_amount`,`snow_amount`,`ice_amount`,`precipitation_amount`,`thunderstorm_probability`,`rain_probability`,`snow_probability`,`ice_probability` and `precipitation_probability`
-
Get the units for the conditions:
```ruby
units = Accuweather.get_conditions(location_id: 'cityId:53286').units
units.temperature # => 'F'
@@ -81,10 +80,10 @@
local.time # => '13:41'
local.time_zone # => '-8'
local.time_zone_abbreviation # => 'PST'
```
-Imperial units are returned by default, but metric results are available:
+English units are returned by default, but metric results are available:
```ruby
Accuweather.get_conditions(location_id: 'cityId:53286', metric: true)
```