GithubHelp home page GithubHelp logo

ebraminio / ekastrologycalc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emvakar/ekastrologycalc

0.0 2.0 0.0 12.84 MB

Astrology Calculator calculates moon's rise/set times, moon Age, moon phases and Zodiac Sign for location and time

Home Page: https://t.me/emvakar

Ruby 1.05% Swift 98.95%

ekastrologycalc's Introduction

Swift Version Cocoapods Build Status

Astrology Calculator

This is Moon Calc Framework written on Swift Get moon phase by Date and Location

What we can do right now:

  • set and rise moon
  • get moon Age
  • get moon rise
  • get moon set
  • get zodiac sign
  • get moon phase
  • get moon trajectory
  • get moon illumination
  • get moon rise if rise on past date
  • get moon set if set on future date
  • get zodiac sign rise time
  • get zodiac sign set time
  • get mercury status and times
  • get eclipse times (begin, duration, finish)
  • create UI for calendar

Support EKAstrologyCalc development by giving a ⭐️

Installation

via Swift Package Manager

    .package(url: "https://github.com/emvakar/EKAstrologyCalc.git", from: "1.0.4")

Usage

import UIKit
import CoreLocation
import EKAstrologyCalc

class ViewController: UIViewController {

    let location = CLLocation(latitude: 55.751244, longitude: 37.618423) // Moscow
    var moonPhaseManager: EKAstrologyCalc!

    override func viewDidLoad() {
        super.viewDidLoad()
        
        moonPhaseManager = EKAstrologyCalc(location: location)

        let info = moonPhaseManager.getInfo(date: Date())

        print("Current localtion: -", info.location.coordinate)

        print("Moon days at", "current date: -", info.date)
        info.moonModels.forEach {
            print("===========")
            print("Moon Age: -", $0.age)
            print("Moon rise: -", $0.moonRise)
            print("Moon set: -", $0.moonSet)
        }
        print("===========")
        print("Moon phase: -", info.phase)
        print("Moon trajectory: -", info.trajectory)
    }
}

ekastrologycalc's People

Contributors

emvakar avatar abcdeiko avatar

Watchers

James Cloos avatar  avatar

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.