jisu-calendar

使用极速数据万年历 API 查询指定日期的公历、农历、星座、生肖、黄历及节假日信息。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "jisu-calendar" with this command: npx skills add jisuapi/jisu-calendar

极速数据万年历(Jisu Calendar)

基于 万年历 API 的 OpenClaw 技能,支持:

使用技能前需要申请数据,申请地址:https://www.jisuapi.com/api/calendar/

  • 万年历查询/calendar/query):指定日期查询公历、农历、星座、生肖、干支、黄历(宜忌、吉神凶神等)信息,可进行阴阳历转换。
  • 节假日查询/calendar/holiday):查询法定节假日的放假/调休说明。

适合在对话中回答「某天是周几、什么星座」「农历是多少」「这天宜做什么」「今年有什么法定节假日安排」等问题。

环境变量配置

# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"

脚本路径

脚本文件:skills/calendar/calendar.py

使用方式与请求参数

1. 万年历查询(/calendar/query)

python3 skills/calendar/calendar.py '{"date":"2015-10-22"}'

也可以显式指定阴历标记,例如按农历查询:

python3 skills/calendar/calendar.py '{"date":"2015-09-10","islunar":1,"islunarmonth":0}'

请求 JSON 示例:

{
  "date": "2015-10-22",
  "islunar": 0,
  "islunarmonth": 0
}
字段名类型必填说明
datestring日期,格式 YYYY-MM-DD,默认今天
islunarint是否是阴历,0 表示阳历(默认),1 表示阴历
islunarmonthint是否是闰月,0 不是(默认),1 为闰月

返回结果示例(节选自 极速数据文档):

{
  "year": "2015",
  "month": "10",
  "day": "22",
  "week": "四",
  "lunaryear": "2015",
  "lunarmonth": "九月",
  "lunarday": "初十 ",
  "ganzhi": "乙未",
  "shengxiao": "羊",
  "star": "天枰座",
  "huangli": {
    "nongli": "农历二〇一五年九月初十",
    "taishen": "厨灶厕外西南",
    "wuxing": "路旁土",
    "chong": "冲(乙丑)牛",
    "sha": "煞西",
    "jiri": "朱雀(黑道)收日",
    "zhiri": "朱雀(黑道凶日)",
    "xiongshen": "地曩 月刑 河魁 五虚 朱雀",
    "jishenyiqu": "天德合 母仓 不将 玉宇 月德合",
    "caishen": "正东",
    "xishen": "西南",
    "fushen": "西南",
    "suici": [
      "乙未年",
      "丙戌月",
      "辛未日"
    ],
    "yi": [
      "祭祀",
      "冠笄",
      "移徙",
      "会亲友",
      "纳财",
      "理发",
      "捕捉"
    ],
    "ji": [
      "嫁娶",
      "开市",
      "开池",
      "作厕",
      "破土"
    ]
  }
}

主要字段说明:

  • 公历与星期year, month, day, week
  • 农历与干支lunaryear, lunarmonth, lunarday, ganzhi, shengxiao, nongli
  • 星座star
  • 黄历信息(在 huangli 对象中):yi(宜)、ji(忌)、suici(岁次)、taishenwuxingchongshajirizhirixiongshenjishenyiqucaishenxishenfushen 等。

2. 节假日查询(/calendar/holiday)

python3 skills/calendar/calendar.py holiday

无额外 JSON 参数。

返回结果示例(节选自 极速数据文档):

{
  "2015-01-01": "1月1日至3日放假调休,共3天。1月4日(星期日)上班。",
  "2015-02-18": "2月18日至24日放假调休,共7天。2月15日(星期日)、2月28日(星期六)上班。",
  "2015-04-05": "4月5日放假,4月6日(星期一)补休。"
}

部分实现中也可能返回更结构化的对象(包含 namecontent),脚本不会做额外处理,原样返回 result

常见错误码

来自 极速数据万年历文档 的业务错误码:

代号说明
201日期有误
202没有信息

系统错误码:

代号说明
101APPKEY 为空或不存在
102APPKEY 已过期
103APPKEY 无请求此数据权限
104请求超过次数限制
105IP 被禁止
106IP 请求超过限制
107接口维护中
108接口已停用

在 OpenClaw 中的推荐用法

  1. 用户提问:「帮我查一下 2025-05-20 是周几、农历多少、属什么、适合干什么?」
  2. 代理构造 JSON:{"date":"2025-05-20"} 并调用:
    python3 skills/calendar/calendar.py '{"date":"2025-05-20"}'
  3. 从结果中读取:weeknonglishengxiaostar,以及 huangli.yi / huangli.jihuangli.jirihuangli.xiongshen 等字段,整理成自然语言回答。
  4. 如用户只关心法定节假日安排,则调用:python3 skills/calendar/calendar.py holiday,根据返回的日期键值对,提取今年或指定年份的放假/调休说明,并用人话归纳给用户。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

PayPilot by AGMS

Process payments, send invoices, issue refunds, manage subscriptions, and detect fraud via a secure payment gateway proxy. Use when a user asks to charge som...

Registry SourceRecently Updated
General

Poem Generator

诗歌生成助手。现代诗、俳句、对联、藏头诗、古诗翻译。Poem generator with free verse, haiku, couplets, acrostic poems, classical poetry translation. Use when you need poem generator cap...

Registry SourceRecently Updated
General

Garmin Sync

Sync activities from Garmin China to Garmin Global using local timestamps and distance to avoid duplicates in a one-way sync process.

Registry SourceRecently Updated
General

Trader Simulator

🤖 OpenClaw Skill /skills | 炒股大师模拟器 | 股市模拟交易练习 | A股/港股/美股投资学习 | 化身文主任/股神老徐/炒股养家/孙宇晨等各位大师学习投资思路 | 多智能体股票讨论群

Registry SourceRecently Updated