知己排盘 BaZi

v0.2.1
com.zhijipaipan/zhiji-bazi Checked 4 days ago Published 3 months ago

BaZi (Chinese Four Pillars) chart calculator.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

bazi_compute

输入出生时间(公历、农历或直接给四柱),返回八字命盘 JSON:四柱、身强弱、格局、用神。只做计算,不含解读文案、不做预测;转述结果时给结构不给吉凶断语,并说明身强弱与格局各流派口径不同。Compute a BaZi (Four Pillars) chart from a birth datetime. Returns structured data only, no predictions or readings.

ParameterTypeDescription
inputMode *stringsolar=公历,lunar=农历,pillar=直接四柱
dayinteger
hourinteger
isLeapMonthboolean农历闰月,inputMode=lunar 时用
isMaleboolean男=true,影响大运顺逆
longitudenumber出生地经度。给了就按真太阳时校正
minuteinteger
monthinteger
pillarsobjectinputMode=pillar 时用,干支各两字
timeZonestringIANA 时区,默认 Asia/Shanghai
yearinteger
zishiRulestring晚子时日柱归属,默认 sameDay