安全扫描
OpenClaw
可疑
high confidence附带的脚本确实会从 Hebcal 获取 zmanim(符合声明用途),但文档和运行说明却声称具备代码未实现的额外功能、依赖与配置(GeoNames、NOAA 算法、IP 自动检测、pip 包、~/.config 文件)——该技能内部不一致且具有误导性。
评估建议
This 技能's core behavior — calling Hebcal to 获取 zmanim — is coherent and the code is readable. However the 技能.md clAIms extra features (NOAA algorithms, GeoNames lookup, IP auto-检测ion, a ~/.config file, and extra pip packages) that are not implemented in the included script. Before 安装ing or granting automatic invocation: 1) If you expect IP-based location, NOAA-based calculations, or GeoNames lookups, do not rely on this 技能 — ask the author to implement or 移除 those clAIms. 2) The script makes out...详细分析 ▾
⚠ 用途与能力
Name/description (zmanim via Hebcal/NOAA/GeoNames, IP auto-检测, config file) partially matches the actual code: the script calls the Hebcal API which is 应用ropriate, but it does not implement NOAA algorithms, GeoNames lookups, IP-based geolocation, or reading the ~/.config/zmanim/default.json referenced in 技能.md. The 技能.md's suggested pip dependencies (hebcal-python, python-dateutil) are not used by the script. These mismatches mean the documentation promises capabilities and dependencies that aren't present.
⚠ 指令范围
技能.md instructs 安装ing extra Python packages, creating a config file, and says 'auto-检测ed IP' for location; none of these are used by scripts/zmanim.py. The script only uses local hard-coded city lookups and HTTP calls to Hebcal. The instructions thus overreach and are inaccurate, which could mislead the 代理 or user into expecting broader behaviour.
ℹ 安装机制
There is no 安装 spec (lowest risk). 技能.md suggests pip 安装s, but the shipped script 运行s without those dependencies. No external 安装ers or 归档 下载s are used. Risk from 安装 mechanism itself is low, but the documentation recommending unnecessary packages is inconsistent.
✓ 凭证需求
The 技能 declares no required 环境 variables, no 凭证s, and 请求s only python3/pip3 binaries — which is proportionate for a Python script. The script does perform outbound network calls (Hebcal over HTTPS and an unused GEONAMES_API constant), but does not 请求 or read secrets or 系统 config.
✓ 持久化与权限
The 技能 is not always-enabled and does not 请求 persistent 系统 privileges or modify other 技能s. It is user-invocable and can be invoked autonomously by the 代理 (平台 default). There is no evidence of attempts to persist 凭证s or alter global 代理 configuration.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install zmanim-calculator
镜像加速npx clawhub@latest install zmanim-calculator --registry https://cn.longxiaskill.com镜像同步中
技能文档
计算任意地点和日期的犹太教律法时间。基于 hebcal Python 库与 NOAA 日出/日落算法。
快速开始
``bash
# 今日当前位置(自动 IP 检测)的 zmanim
zmanim today # 指定城市的安息日时间
zmanim shabbos --city "New York, NY"
# 指定日期的完整 zmanim 表
zmanim --date 2026-05-15 --lat 40.7128 --lon -74.0060
# 点蜡烛时间
zmanim candles --city "Jerusalem"
# 今日 Daf Yomi
zmanim daf
# 本周 parsha
zmanim parsha
`
命令
| 命令 | 说明 | 示例 |
|---------|-------------|---------|
| zmanim today | 今日所有 zmanim | zmanim today |
| zmanim shabbos | 安息日进出时间 | zmanim shabbos --city "Brooklyn, NY" |
| zmanim candles | 点蜡烛时间 | zmanim candles --zip 11230 |
| zmanim --date YYYY-MM-DD | 指定日期的 zmanim | zmanim --date 2026-06-01 |
| zmanim --lat X --lon Y | 指定坐标的 zmanim | zmanim --lat 31.7683 --lon 35.2137 |
| zmanim daf | 今日 Daf Yomi | zmanim daf |
| zmanim parsha | 本周 parsha | zmanim parsha |
| zmanim yomtov | 即将到来的 Yom Tov 日期 | zmanim yomtov | 输出格式
`
📅 Zmanim for Brooklyn, NY — Friday, May 15, 2026
───────────────────────────────────────────────
🕯️ Candle Lighting (18 min): 7:42 PM
🌅 Shkiah (Sunset): 8:02 PM
🌙 Tzeis (72 min): 9:14 PM
🌄 Dawn (Alos HaShachar): 4:12 AM
☀️ Netz HaChamah (Sunrise): 5:42 AM
📖 Sof Zman Shema (Gra): 9:24 AM
📖 Sof Zman Shema (M'A): 8:48 AM
🕰️ Chatzos (Midday): 12:52 PM
🕰️ Mincha Gedolah: 1:12 PM
🕰️ Mincha Ketanah: 4:52 PM
🕰️ Plag HaMincha: 6:27 PM
🌅 Shkiah: 8:02 PM
` 安装
`bash
pip3 install hebcal-python python-dateutil
`
或使用捆绑脚本(无依赖):
`bash
python3 scripts/zmanim.py --city "New York, NY"
` API
`python
from scripts.zmanim import get_zmanim, get_shabbos_times, get_daf_yomi # 获取某地点所有 zmanim
times = get_zmanim(lat=40.7128, lon=-74.0060, date="2026-05-15")
print(times['candle_lighting'])
# 安息日时间
shabbos = get_shabbos_times(city="Brooklyn, NY")
print(f"Candles: {shabbos['candle_lighting']}")
print(f"Havdalah: {shabbos['tzeis_72']}")
# Daf Yomi
daf = get_daf_yomi()
print(f"Today: {daf['tractate']} {daf['daf']}")
`
配置
创建 ~/.config/zmanim/default.json:
`json
{
"default_city": "Brooklyn, NY",
"candle_lighting_minutes": 18,
"tzeis_minutes": 72,
"timezone": "America/New_York"
}
`` 数据来源
- Hebcal API — 犹太历计算
- NOAA — 日出/日落算法
- GeoNames — 城市转坐标查询
限制
- 位置查询需联网(或使用缓存坐标)
- 极近极地的高纬度地区可能存在边界情况
- Yom Tov 日期使用希伯来历;请与当地 minhag 核对
评论 登录后发表评论。 暂无评论。