Project

windward

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Windward is a parser for meteofrance.fr\n You can retrieve informations like weather, temperature for each region of France.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

= 2.7.2
 Project Readme

Windward

Build Status Coverage Status Code Climate Test Coverage Gem Version

Windward is a parser for http://meteofrance.com/accueil

Installation

Add this line to your application's Gemfile:

gem 'windward'

And then execute:

$ bundle

Or install it yourself as:

$ gem install windward

Usage

Instantiate a Weather object

When a Weather object is instantiate, a request is sent to meteofrance.com and weather informations are stored.

require 'windward'
weather = Windward::Weather.new

Reload Weather informations

weather.reload

List availables regions

weather.regions

Get actual weather for a specific region

weather.previsions("Alsace")
=> {"Rhin (Bas)"=>{"temps"=>"Pluies éparses", "temper"=>"5"}}

This method returns a Hash with weather informations for each department of specified region. Some regions have 3 departments like "Provence-Alpes-Côte d'Azur".

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request