A powerful C++ command-line astrology tool featuring comprehensive horoscope calculations, traditional Vedic chart systems, authentic Hindu Panchanga calendar, and complete Chinese calendar system with Swiss Ephemeris precision.
- โญ Swiss Ephemeris Integration - Industry-leading astronomical accuracy for planetary calculations
- ๐ฎ Planetary Positions - Calculate exact positions for any date, time, and location worldwide
- ๐ Lunar Calculations - Precise moon phases, nodes, and lunar mansion positions
- โ๏ธ Solar Analysis - Solar returns, transits, and seasonal transitions
- ๐ฟ Historical Coverage - Complete astronomical calculations from ancient BC era through 2400 AD
- ๐๏ธ Ancient Astronomy - Calculate planetary positions for historical events like Julius Caesar's assassination (44 BC)
- ๐ Eclipse History - Find eclipses visible from any location across millennia of recorded history
- ๐๏ธ Multiple House Systems - Placidus, Koch, Equal House, Whole Sign, and more
- ๐ Accurate Cusps - Precise house cusp calculations for professional astrology
- ๐ฏ House Placement - Automatic planet-to-house assignments with degrees
- ๐ฎ๐ณ Eastern/Vedic Charts - Authentic North Indian, South Indian, and East Indian chart styles
- ๐ญ Multiple Chart Formats - Traditional ASCII art charts with planetary symbols
- ๐ Western Charts - Classic Western astrological chart representations
- ๐ผ๏ธ Visual Comparisons - Side-by-side chart style comparisons
- ๐ Traditional Calendar - Full Hindu lunar calendar with Vikram Samvat years
- ๐ Five Limbs (Panchangam):
- ๐ Tithi - Lunar day calculations with precise timing
- ๐ Vara - Weekday and planetary rulership
- โญ Nakshatra - 27 lunar mansions with characteristics
- ๐ค Yoga - 27 planetary combinations and their meanings
- โฐ Karana - Half-day periods for activity planning
- ๐ Festival Calendar - Automatic detection of Hindu festivals and observances
- โฐ Muhurta Analysis - Auspicious timing calculations for important events
- ๐ Multiple Formats - Detailed view, table, CSV, and JSON outputs
- ๐ญ 60-Year Sexagenary Cycle - Traditional Gan-Zhi (ๅนฒๆฏ) stem-branch combinations with astronomical precision
- ๐ฒ 12-Year Zodiac Animals - Complete zodiac system with 5-element associations (็่)
- ๐ฟ Wu Xing Five Elements - Traditional Wood-Fire-Earth-Metal-Water theory with generating/overcoming cycles
- ๐ 24 Solar Terms - Precise seasonal markers based on sun longitude (็ฏๆฐฃ)
- ๐ Lunar Calendar - Traditional Chinese lunar months with leap month detection
- ๐ Festival Calendar - Spring Festival, Mid-Autumn, Dragon Boat, and traditional observances
- ๐ฎ Four Pillars of Destiny - Complete BaZi (ๅ ซๅญ) astrological analysis system
- ๐ Multi-language Support - Traditional Chinese characters, English names, and Pinyin romanization
- โก Swiss Ephemeris Integration - Astronomical precision for all calculations
- ๐ Aspect Calculator - Major and minor planetary aspects with orbs
- ๐ Location Manager - Global coordinate support with timezone handling
- ๐ฏ KP System Support - Krishnamurti Paddhati calculations
- โก Advanced Conjunction Analysis - Revolutionary birthfinder algorithms with Newton-Raphson refinement
- ๐ฏ Sub-Arcsecond Precision - Up to ยฑ0.000001ยฐ accuracy with derivative calculations
- ๐งฎ Progressive Tolerance Search - Multi-level refinement from 5.0ยฐ to 0.01ยฐ precision
- ๐ Multi-Planet Detection - Automatic triple and grand conjunction identification
- โ๏ธ Graha Yuddha Analysis - Planetary wars with winner determination and effects
- ๐ Multiple Formats - Text, JSON, CSV for easy integration
- ๐ง API Ready - JSON output perfect for web applications
- ๐ Spreadsheet Compatible - CSV export for data analysis
- ๐จ Rich Text Output - Colorful terminal display with emojis
- โก Fast Calculations - Optimized C++ performance for quick results
- ๐ฆ Self-Contained - No external dependencies, Swiss Ephemeris embedded
- ๐ Cross-Platform - Works on Linux, macOS, and Windows
- ๐ ๏ธ Easy Installation - Simple Makefile or CMake build process
- C++17 compatible compiler
- CMake 3.10 or higher (optional - Makefile also provided)
- Standard C math library
Note: Swiss Ephemeris is embedded in the project - no external installation required!
The project includes comprehensive ephemeris data files covering:
- Ancient Era: 6000 BC through 0 AD (BC/AD boundary calculations)
- Classical Period: 0 AD through 600 AD (early civilizations)
- Medieval Era: 600 AD through 1200 AD (medieval period)
- Renaissance: 1200 AD through 1800 AD (renaissance to modern)
- Contemporary: 1800 AD through 2400 AD (modern era and future)
Historical Examples:
# Julius Caesar's assassination (44 BC)
./bin/horoscope_cli --date -0044-03-15 --time 12:00:00 --lat 41.9028 --lon 12.4964 --timezone 1
# Ancient eclipse calculations
./bin/horoscope_cli --eclipse-range -0100-01-01 -0001-12-31 --lat 41.9028 --lon 12.4964
# Myanmar calendar for historical dates
./bin/horoscope_cli --date 1200-01-01 --myanmar-calendar --lat 16.8661 --lon 96.1951 --timezone 6.5make clean
makemkdir build
cd build
cmake ..
makeThe Swiss Ephemeris library is embedded in the project under third_party/swisseph/.
No external package installation is needed.
./horoscope_cli --date "1990-01-15" --time "14:30:00" --lat 40.7128 --lon -74.0060 --timezone -5--date: Birth date in YYYY-MM-DD format--time: Birth time in HH:MM:SS format (24-hour)--lat: Latitude in decimal degrees--lon: Longitude in decimal degrees--timezone: Timezone offset from UTC in hours--house-system: House system (P=Placidus, K=Koch, E=Equal, W=Whole Sign)--chart-style: Chart style (western, north-indian, south-indian, east-indian)--output: Output format (text, json)
Western Style (Default):
Birth Chart for 1990-01-15 14:30:00 UTC-5
Location: 40.7128ยฐN, 74.0060ยฐW
=== PLANETARY POSITIONS ===
Sun: 25ยฐ42' Capricorn (House 5)
Moon: 12ยฐ18' Scorpio (House 3)
Mercury: 05ยฐ33' Aquarius (House 6)
...
North Indian Vedic Chart:
=== NORTH INDIAN VEDIC CHART ===
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ โ โ โ โ
โ 12 โ 1 โ 2 โ 3 โ
โ โ โ Su,Me โ โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ โ โ โ
โ 11 โ โ 4 โ
โ โ RASI โ Ve โ
โโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโค
โ โ โ โ
โ 10 โ โ 5 โ
โ Ju โ โ Ma,Sa โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโผโโโโโโโโโโโโโโค
โ โ โ โ โ
โ 9 โ 8 โ 7 โ 6 โ
โ โ โ โ โ
โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ
East Indian Vedic Chart (Bengali/Oriya Style):
=== EAST INDIAN VEDIC CHART ===
โโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโ
โ Ve,Ke โ Su,Me โ 2 โ
โโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโค
โ Ju โ โ Sa โ
โโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโค
โ 10 โ โ Mo โ
โโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโค
โ Ma โ Ra โ 7 โ
โโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโ
# North Indian style
./horoscope_cli --date "1990-01-15" --time "14:30:00" --lat 40.7128 --lon -74.0060 --timezone -5 --chart-style north-indian
# South Indian style
./horoscope_cli --date "1990-01-15" --time "14:30:00" --lat 40.7128 --lon -74.0060 --timezone -5 --chart-style south-indian
# East Indian style (Bengali/Oriya tradition)
./horoscope_cli --date "1990-01-15" --time "14:30:00" --lat 40.7128 --lon -74.0060 --timezone -5 --chart-style east-indian
# Compare all stylesThe Hindu calendar system provides complete traditional Panchanga calculations:
# Basic Panchanga for a specific date
./horoscope_cli --date "2024-01-15" --time "12:00:00" --lat 28.6139 --lon 77.2090 --timezone 5.5 --panchanga
# Panchanga for date range (3 days)
./horoscope_cli --date "2024-01-14" --time "12:00:00" --lat 28.6139 --lon 77.2090 --timezone 5.5 --panchanga-range 2024-01-14 2024-01-16
# JSON output for API integration
./horoscope_cli --date "2024-01-15" --time "12:00:00" --lat 28.6139 --lon 77.2090 --timezone 5.5 --panchanga --panchanga-format json
# CSV output for spreadsheet analysis
./horoscope_cli --date "2024-01-14" --time "12:00:00" --lat 28.6139 --lon 77.2090 --timezone 5.5 --panchanga-range 2024-01-14 2024-01-16 --panchanga-format csv
# Show only festivals and special observances
./horoscope_cli --date "2024-03-14" --time "12:00:00" --lat 28.6139 --lon 77.2090 --timezone 5.5 --panchanga --festivals-onlySample Panchanga Output:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐๏ธ HINDU PANCHANGA ๐๏ธ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐
DATE INFORMATION:
Hindu Year (Vikram Samvat): 2373
Hindu Month: Pausha
Paksha: Shukla (Bright)
๐ PANCHANGAM (FIVE LIMBS):
1. Tithi: Panchami (ends in 21.3 hours)
2. Vara: Monday
3. Nakshatra: Purva Phalguni (ends in 12.7 hours)
4. Yoga: Saubhagya (ends in 5.4 hours)
5. Karana: Taitila (ends in 8.8 hours)
๐ CELESTIAL POSITIONS:
Sun in: Makara (Capricorn) (270.24ยฐ)
Moon in: Simha (Leo) (140.02ยฐ)
Lunar Phase: 229.8ยฐ
๐ SPECIAL OBSERVANCES:
โข Sankranti - Solar transition
๐ MUHURTA ASSESSMENT:
Status: โ
Shubha (Auspicious)
Note: Generally auspicious time for most activities
Complete traditional Chinese calendar with astronomical precision:
# Basic Chinese calendar for current date
./horoscope_cli --chinese-calendar
# Chinese calendar for specific date
./horoscope_cli --chinese-calendar --date 2024-02-12
# Your Chinese zodiac animal
./horoscope_cli --chinese-zodiac --date 1990-08-15
# Complete Four Pillars analysis (BaZi)
./horoscope_cli --chinese-bazi --date 1985-03-15 --time 14:30 --lat 39.9042 --lon 116.4074 --timezone 8
# Chinese monthly calendar
./horoscope_cli --chinese-monthly --month 2024-02
# Multi-language output (Chinese/English/Pinyin)
./horoscope_cli --chinese-calendar --date 2024-12-25 --chinese-lang zhFeatures:
- ๐ญ 60-Year Sexagenary Cycle (Gan-Zhi ๅนฒๆฏ) - Traditional stem-branch combinations
- ๐ฒ 12-Year Zodiac Animals (็่) - Complete zodiac with element associations
- ๐ฟ 5-Element Theory (Wu Xing ไบ่ก) - Wood, Fire, Earth, Metal, Water cycles
- ๐ 24 Solar Terms (Jie Qi ็ฏๆฐฃ) - Precise seasonal transitions
- ๐ Lunar Calendar - New moon calculations with leap month detection
- ๐ Traditional Festivals - Spring Festival, Mid-Autumn, Dragon Boat, etc.
- ๐ฎ Four Pillars of Destiny (BaZi ๅ ซๅญ) - Complete astrological analysis
- ๐ Multi-language Support - Chinese characters, English names, Pinyin romanization
Sample Chinese Calendar Output:
๐ Chinese Calendar Data
=======================
Chinese Date: 4721/11/23
Gan-Zhi Year: ็ฒ่พฐ (Jia-Chen) - Wood Dragon
Zodiac Animal: ้พ Dragon (Wood Element)
Solar Term: ๅฌ่ณ Winter Solstice
Current Festival: Winter Solstice Festival
60-Year Cycle Position: 41
โโโ Year Stem: ็ฒ Jia (Wood, Yang)
โโโ Year Branch: ่พฐ Chen (Earth, Yang)
โโโ Month Stem: ไธ Bing (Fire, Yang)
โโโ Day Stem: ๆ Wu (Earth, Yang)
Auspicious: โ
Yes
Lucky Elements: Wood, Water
./examples/chart_comparison.sh 1990-01-15 14:30:00 40.7128 -74.0060 -5
## License
MIT License