Module: SimpleOpenWeatherMap

Defined in:
lib/simple_open_weather_map.rb,
lib/simple_open_weather_map/version.rb

Defined Under Namespace

Classes: Config, HttpConnection, Report, Weather

Constant Summary collapse

BASE_URL =

OpenWeatherMap API URL

'http://api.openweathermap.org/data/2.5'.freeze
ICON_URL_TEMPLATE =

Weather icon url template. You must bind icon name into this strings.

'http://openweathermap.org/img/w/%s.png'.freeze
PATH_CURRENT =

Url path for current

'/weather'.freeze
PATH_FORECAST =

Url path for forecast daily

'/forecast/daily'.freeze
UNIT_KELVIN =

Parameter value for unit (kelvin)

'kelvin'.freeze
UNIT_METRIC =

Parameter value for unit (metric)

'metric'.freeze
FORECAST_DAYS =

Default number of days to get forecast. 7 days

7
VERSION =
"0.1.0"