Qimena Qi Men Dun Jia & BaZi
v1.0.0Qi Men Dun Jia charts, BaZi Four Pillars, best-time ranking and solar terms.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
qimen_chart Qi Men Dun Jia chart
Cast an hour-based Qi Men Dun Jia (奇门遁甲) chart for a moment and place: four pillars, ju, Chief Star and Door, and for each of the nine palaces the deity, star, door, heaven/earth/hidden stems, void, horse star, punishment and door pressure, plus detected patterns, palace scores for the chosen focus and the lucky directions.
| Parameter | Type | Description |
|---|---|---|
datetime | string | Local wall-clock time "YYYY-MM-DDTHH:mm" in `timezone`. Omit for now. |
focus | string | What the question is about; changes palace scores and lucky directions. Default general. |
longitude | number | Longitude of the place in degrees, east positive, west negative. Default: the standard meridian of the time zone. |
timezone | string | IANA time zone, e.g. "Asia/Shanghai", "America/New_York". Default Asia/Shanghai. |
bazi_pillars BaZi Four Pillars
Four Pillars (八字) for a birth moment: converts the clock time with the zone rules for that date (daylight saving included) and the longitude to true solar time; the year follows Li Chun and the day changes at 23:00 true solar time. Returns the pillars, Day Master, five-element counts and the time conversion details.
| Parameter | Type | Description |
|---|---|---|
birth_datetime * | string | Birth wall-clock time "YYYY-MM-DDTHH:mm", as on the birth certificate. |
timezone * | string | IANA time zone of the birthplace, e.g. "Asia/Shanghai". |
longitude | number | Birthplace longitude, east positive. Default: the standard meridian of the time zone. |
best_times Best upcoming double-hours
Cast a Qi Men chart for every double-hour of the next few days and rank them for a goal, using the person's Day Master from the birth date. Returns the top windows with date, hour branch, true-solar-time range, score and the lucky direction at that time.
| Parameter | Type | Description |
|---|---|---|
birth_date * | string | Birth date "YYYY-MM-DD" (sets the Day Master). |
days | integer | How many days ahead to scan, 1-7. Default 7. |
focus | string | Goal to rank for. Default general. |
longitude | number | Longitude of where the person is now, east positive. Default 120 (Beijing meridian). |
top | integer | How many windows to return, 1-10. Default 5. |
solar_terms Solar terms of a year
The 24 solar terms (节气) of a calendar year, 1900-2100, with UTC and Beijing-time instants from the same table the charts use (within about a minute of the Hong Kong Observatory).
| Parameter | Type | Description |
|---|---|---|
year * | integer | Calendar year. |