Git Product home page Git Product logo

ekastrologycalc's Introduction

Emil Karimov

  • ๐Ÿ”ญ Iโ€™m currently working on special own project
  • ๐Ÿ’ฌ Ask me about Swift or iOS
  • ๐Ÿ“ซ How to reach me: @emvakar on telegram

ekastrologycalc's People

Contributors

abcdeiko avatar emvakar 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ekastrologycalc's Issues

Question about getMoonAges / getMoonModels function in EKAstrologyCalc ?

getMoonAges(date: Date) should returns moon age at a given date, why this function return an array of Int ?

getMoonModels(date: Date) should return EKMoonModel at a given date, why this function return an array of EKMoonModel ?

These two function should return 1 specific result from a given date, isn't it ? Or I miss something ?

zodiac sign detection problem

Not working zodiac sign detection.
getMoonZodicaSign
Not sure why, but seems like Zodiac is detected wrongly by date passed like 20.07 should be cancer, but it is libra somewhy. But maybe it shouldn't work like that. Please, tell me if I misunderstood

Also, there is obvious mistake in this switch :

if (longitude < 33.18) {
            zodiac = .aries
        } else if (longitude < 51.16) {
            zodiac = .cancer
        } else if (longitude < 93.44) {
            zodiac = .gemini
        } else if (longitude < 119.48) {
            zodiac = .cancer
        } else if (longitude < 135.30) {
            zodiac = .leo
        } else if (longitude < 173.34) {
            zodiac = .virgo
        } else if (longitude < 224.17) {
            zodiac = .libra
        } else if (longitude < 242.57) {
            zodiac = .scorpio
        } else if (longitude < 271.26) {
            zodiac = .sagittarius
        } else if (longitude < 302.49) {
            zodiac = .capricorn
        } else if (longitude < 311.72) {
            zodiac = .aquarius
        } else if (longitude < 348.58) {
            zodiac = .pisces
        } else {
            zodiac = .aries
        }

it contains Cancer twice, but no Taurus
good luck with improving your library

Improve accuracy on Zodiac calculation

I noticed that the Zodiac calculation precission is only by day (this function: getMoonZodicaSign(date: Date) ) Is it possible for you to update the code so that I can get the moon zodiac down to minutly precision?

usage code outdated

print("Moon rise: -", $0.moonRise)
print("Moon set: -", $0.moonSet)

does not compile

Value of type 'EKMoonModel' has no member 'moonRise'
Value of type 'EKMoonModel' has no member 'moonSet'

Apple Watch crash on get var millisecondsSince1970

On Apple Watch i get this error that cause the crash of the app:
WatchKit App Extension[548:794557] Fatal error: Double value cannot be converted to Int because the result would be greater than Int.max: file Swift/armv7k-apple-watchos.swiftinterface, line 31242

The problem is for the var millisecondsSince1970 in the file Date+Extension.swift (line 29):

// Extended functionality to get milliseconds from 1970 to present time
public var millisecondsSince1970: Int {
    return Int((self.timeIntervalSince1970 * 1000.0).rounded())
}

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.