Skip to content

[WIP] Generates 紫微斗术盘 by providing date and time of birth.

Notifications You must be signed in to change notification settings

chkhong/purple-star-astrology-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purple Star Astrology Docs

This project outputs purple star astrology given birth date and time


TOC


Implementations

Definition

Star-Code Mapping

Star Category Code
紫微 main m0
天機 main m1
太陽 main m2
武曲 main m3
天同 main m4
廉貞 main m5
天府 main m6
太陰 main m7
貪狼 main m8
巨門 main m9
天相 main m10
天梁 main m11
七殺 main m12
破軍 main m13
文昌 good g0
文曲 good g1
左輔 good g2
右弼 good g3
天魁 good g4
天鉞 good g5
祿存 good g6
天馬 good g7
擎羊 bad b0
陀羅 bad b1
火星 bad b2
鈴星 bad b3
地空 bad b4
地劫 bad b5
化祿 effect e0
化權 effect e1
化科 effect e2
化忌 effect e3
intensity i0
intensity i1
intensity i2
intensity i3
平闲 intensity i4
intensity i5
intensity i6
命宮 palace p0
兄弟宮 palace p1
夫妻宮 palace p2
子女宮 palace p3
財帛宮 palace p4
疾厄宮 palace p5
遷移宮 palace p6
奴僕宮 palace p7
官祿宮 palace p8
田宅宮 palace p9
福德宮 palace p10
父母宮 palace p11
身宮 palace p12
tiangan tg0
tiangan tg1
tiangan tg2
tiangan tg3
tiangan tg4
tiangan tg5
tiangan tg6
tiangan tg7
tiangan tg8
tiangan tg9
dizhi dz0
dizhi dz1
dizhi dz2
dizhi dz3
dizhi dz4
dizhi dz5
dizhi dz6
dizhi dz7
dizhi dz8
dizhi dz9
dizhi dz10
dizhi dz11

API

Arrange Stars

Arrange purple stars 排盘

Request

URL : /arrange

Method : GET

Header Parameters

Name Required Description
birth_year yes year of birth in western calendar
birth_month yes month of birth in western calendar
birth_day yes day of birth in western calendar
birth_hour yes hour of birth in western calendar

Response (Success)

Code : 200 OK

Content :

{
  "success": true,
  "message": "",
  "data": {
    "身宫": "夫妻宫",
    "五行局": "木三局",
    "1": {
      "地支": "",
      "天干": "",
      "宫位": "兄弟宮",
      "主星": [
        ["ziwei", "miao", "ke"],
        ["tanlang", "miao", "ji"]
      ],
      "吉星": [
        ["wenqu", "xian"],
        ["zuofu", "ping"]
      ],
      "煞星": [
        ["qingyang", "xian"],
        ["dikong", "ping"]
      ],
      "杂曜": [
        ["tianxing", "xian"],
        ["tianxi", "ping"]
      ]
    }
  }
}

Response (Error)

Code : 400 BAD REQUEST

Content :

{
  "success": false,
  "message": "Error message",
  "data": []
}

Reference

https://baike.baidu.hk/item/%E5%8D%81%E5%9B%9B%E4%B8%BB%E6%98%9F/991733 http://m.dajiazhao.com/paipan/zwdsjc/9540.html https://wantubizhi.com/image.aspx

About

[WIP] Generates 紫微斗术盘 by providing date and time of birth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published