Giter VIP home page Giter VIP logo

edsunriseset's People

Contributors

erndev avatar pauldapolito avatar t-unit avatar tonklon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

edsunriseset's Issues

Incorrect values

Previously, I was getting correct sunrise and sunset hours. The times for sunrise and sunset don't make any sense, they are hours between each other. I'm getting correct coordinates from CoreLocation so this issue is confusing.

EDSunriseSet *sunriseSet = [EDSunriseSet sunrisesetWithDate:[NSDate date] timezone:[NSTimeZone localTimeZone] latitude:location.coordinate.latitude longitude:location.coordinate.longitude];
NSDateComponents *sunrise = sunriseSet.localSunrise;
NSDateComponents *sunset = sunriseSet.localSunset;

No 0.0.2 in podspec

In installed EDSunriseSet using pod but I get 0.0.1 version. Do you plan to update it to 0.0.2?

Moonrise and Moonset

Is it possible to get the same values as the Sun but for the Moon ?
Thanks to this library I can get the Sunset and Sunrise value easily, it works great, I would like to know if the implementation for the Moon can be easily done ?

Please add semantic version tags.

I’ve recently added EDSunriseSet to the CocoaPods package manager repo.

CocoaPods is a tool for managing dependencies for OS X and iOS Xcode projects and provides a central repository for iOS/OS X libraries. This makes adding libraries to a project and updating them extremely easy and it will help users to resolve dependencies of the libraries they use.

However, EDSunriseSet doesn't have any version tags. I’ve added the current HEAD as version 0.0.1, but a version tag will make dependency resolution much easier.

Semantic version tags (instead of plain commit hashes/revisions) allow for resolution of cross-dependencies.

In case you didn’t know this yet; you can tag the current HEAD as, for instance, version 1.0.0, like so:

$ git tag -a 1.0.0 -m "Tag release 1.0.0"
$ git push --tags

(I copied this text from the CocoaPods wiki)

Midnight sun and polar night

Hi Ernesto, great library!

It seems like midnight sun and polar night is not supported. Could you add support for that? I live in Norway, so a large portion of my user base have midnight sun of polar night a large portion of the year.

http://en.wikipedia.org/wiki/Midnight_sun
http://en.wikipedia.org/wiki/Polar_night

Seems like the simplest way is to check whether sunrise = sunset. If that is the case, the sun is not rising or setting that day. Then it should be easy to figure out which is the case. If winter, the sun is not rising. If summer, the sun is not setting. Not sure what values should be returned to indicate that a particular day has a midnight sun or is a polar night though.

Daniel

Bug in tsouth calculation

EDSunriseSunset.m line 447 - bracket is misplaced. Instead of

tsouth = 12.0 - [self rev180:(sidtime - sRA)/15.0];

it should be

tsouth = 12.0 - [self rev180:sidtime - sRA] / 15.0;

With this error, the sunrise/set dates can be off by a full day.

nil values

Hi,
I tried using this library but I'm getting nil values for all NSDate vaues

EDSunriseSet *sunriseSet = [EDSunriseSet sunrisesetWithTimezone:[NSTimeZone localTimeZone] latitude:kDemoLatitude longitude:kDemoLongitude];

screen shot 2014-02-07 at 11 43 40

Besides, shouldn't the calculation be based on a given date of the year?

cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.