No commit activity in last 3 years
No release in over 3 years
WeatherForecaster accepts the city name Ex: London or city name followed by country code Ex: London, GB It can accept the number of days from the current day to get the weather details. It provides the weather information as follows. - City name which you are searching for. - Country code. - Latitude, Longitude. - Day and night temperature values in Kelvin. - Pressure and humidity - Weather Description. - Current Date Time.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.10
~> 10.0
~> 0
 Project Readme

Weather Forecast finder by city name.

#Description

WeatherForecaster accepts the city name Ex: London or city name followed by country code Ex: London, GB It can accept the number of days from the current day to get the weather details. It provides the weather information as follows.

  • City name which you are searching for.
  • Country code.
  • Latitude, Longitude.
  • Day and night temperature values in Kelvin.
  • Pressure and humidity
  • Weather Description.
  • Dates of corresponding days.

#Installation

  • gem install weather_forecaster

or Add gem 'weather_forecaster' in gemfile.

Usage

require 'weather_forecaster'

To get the weather forecast for 5 days from today, use

forecast = WeatherForecaster.forecast("London", 5)

Default is 1 day.

  • forecast.city = London
  • forecast.country = GB
  • forecast.latitude = 51.50853
  • forecast.longitude = -0.12574

To get the details of day , night temperature values, humidity, pressure, weather condition(description), dates of corresponding days

  • forecast.list_details

Author

Santosh Turamari