https://github.com/emvakar/ekastrologycalc
Astrology Calculator calculates moon's rise/set times, moon Age, moon phases and Zodiac Sign for location and time
https://github.com/emvakar/ekastrologycalc
astrology-calculator astronomical-algorithms lunar-calendar moon moon-age moon-phase moon-rise suncalc swift swift-framework swift-package-manager swift4 swift5 zodiac-sign
Last synced: about 1 year ago
JSON representation
Astrology Calculator calculates moon's rise/set times, moon Age, moon phases and Zodiac Sign for location and time
- Host: GitHub
- URL: https://github.com/emvakar/ekastrologycalc
- Owner: emvakar
- Created: 2019-03-23T09:52:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-09T05:20:56.000Z (over 1 year ago)
- Last Synced: 2025-03-03T21:58:03.169Z (over 1 year ago)
- Topics: astrology-calculator, astronomical-algorithms, lunar-calendar, moon, moon-age, moon-phase, moon-rise, suncalc, swift, swift-framework, swift-package-manager, swift4, swift5, zodiac-sign
- Language: Swift
- Homepage: https://t.me/emvakar
- Size: 12.5 MB
- Stars: 58
- Watchers: 8
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 🌙 EKAstrologyCalc
📅 Astrology Calculator for Moon Phases, Zodiac Signs & More
🛠 Swift-based astronomical calculations for iOS, macOS & tvOS





---
## 🌟 Features
✅ Calculates **moon rise/set times**
✅ Determines **moon phases** & **age**
✅ Computes **Zodiac sign** for a given date & location
✅ Supports **iOS, macOS & tvOS**
✅ High-precision **astronomical calculations**
---
## ✅ Completed Features
- 🌙 Moon phase calculation
- 🌒 Moon rise/set time estimation
- 🏛 Zodiac sign determination
- 📅 Moon age computation
- 🖥 Cross-platform support (iOS, macOS, tvOS)
---
## 🔜 Planned Features
- 🌎 Location-based enhancements
- 📊 Improved accuracy in moon cycle prediction
- 🌓 Visualization of moon phases
- 📡 API integration for live astronomical data
- 📆 Custom date range support
---
## 🚀 Installation
```swift
.package(url: "https://github.com/emvakar/EKAstrologyCalc.git", from: "1.0.6")
```
- Requires **Xcode 14+**
- Supports **iOS 15+**, **macOS 14+**, **tvOS 15+**
---
## 📖 Usage
To use EKAstrologyCalc, import the module and create an instance of `MoonPhaseCalculator`. The example below demonstrates how to retrieve moon phase details and zodiac sign based on the current date and location.
```swift
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 location: \(info.location.coordinate)")
print("📅 Calculation date: \(info.date)")
info.moonModels.forEach {
print("🌙 --- Lunar Day ---")
print("🔢 Lunar Day Number: ", $0.age)
print("🌅 Moonrise: ", $0.rise?.toString(style: .short) ?? "No data")
print("🌄 Moonset: ", $0.set?.toString(style: .short) ?? "No data")
print("♈ Lunar Zodiac Sign: ", $0.sign)
}
print("🌑 Moon Phase: \(info.phase)")
print("📈 Moon Trajectory: \(info.trajectory)")
}
}
```
This will output on debug console:
```
🌍 Current location: CLLocationCoordinate2D(latitude: 55.751244, longitude: 37.618423)
📅 Calculation date: 2025-02-09 04:53:16 +0000
🌙 --- Lunar Day ---
🔢 Lunar Day Number: 11
🌅 Moonrise: 09.02.2025, 12:46
🌄 Moonset: 10.02.2025, 07:53
♈ Lunar Zodiac Sign: cancer
```
---
## 🛠 Technologies Used
- **Swift**
- **Foundation & CoreLocation**
- **Astronomical Algorithms**
- **UIKit & SwiftUI** (if UI included)
---
## 🤝 Contributing
Want to improve **EKAstrologyCalc**? Feel free to:
- Submit issues 🚀
- Open pull requests 🔥
- Suggest features 🌟
---
## 📜 License
This project is licensed under the **MIT License** – see the [LICENSE](https://github.com/emvakar/EKAstrologyCalc/blob/main/LICENSE) file for details.
---
## 🌐 Connect with Me
[](https://www.linkedin.com/in/emvakar)
[](https://t.me/emvakar)
---
🌙 **Enjoy using EKAstrologyCalc?** Give it a ⭐ to support development!