SunCalc

SunCalc is a tiny Ruby library for calculating sun position, sunlight phases (times for sunrise, sunset, dusk, etc.), moon position and lunar phase for the given location and time. This library is a port of Vladmir Agafonkin's (@mourner) excellent SunCalc.js library.

Installation

Add this line to your application's Gemfile:

gem 'suncalc'

And then execute:

$ bundle

Or install it yourself as:

$ gem install suncalc

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/[my-github-username]/suncalc/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