crystal-darksky
dark-sky
Crystal implementation of the DarkSky weather API
Based primarily the Go implementation.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
dark-sky:
github: dscottboggs/dark-sky
- Run
shards install
Usage
require "dark-sky"
DarkSky.api_key = ENV["darksky_api_key"]? || "your-api-key-here"
weather = DarkSky::Forecast.new(longitude: -58.47028, latitude: -34.52959)
weather.retreive.currently # current weather
weathe.at 1.day.from_now # weather tomorrow.
Contributing
- Fork it (https://github.com/dscottboggs/dark-sky/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- D. Scott Boggs - creator and maintainer
Repository
crystal-darksky
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- over 5 years ago
- November 26, 2018
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 08:01:48 GMT
Languages