Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 853 Bytes

README.md

File metadata and controls

46 lines (28 loc) · 853 Bytes

Openweather.cr

A Crystal wrapper for the Openweather API

Installation

Add this to your application's shard.yml:

dependencies:
  openweather:
    github: lucasocon/openweather.cr

Usage

require "openweather"

Get Weather

Openweather::Client.new.get("london").sys.country
# => GB

Data available here: http://openweathermap.org/current#current_JSON

Contributing

  1. Fork it ( https://github.com/[your-github-name]/openweather/fork )
  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 a new Pull Request

Contributors