Install
openclaw skills install weather-longli提供贵州省龙里县每日天气信息及穿衣建议,支持定时推送,无需API费用,基于网页爬取和本地规则引擎。
openclaw skills install weather-longli龙里县天气日报与穿衣建议技能
为贵州省龙里县提供每日天气爬取、穿衣建议生成,支持 OpenClaw cron 定时推送。
# 方式一:从 ClawHub 安装(若已发布)
clawdhub install weather-longli
# 方式二:手动安装
cd ~/.openclaw/skills
git clone <repository> weather-longli
cd ~/.openclaw/skills/weather-longli/scripts
source /path/to/your/venv/bin/activate # 如有虚拟环境
python3 daily_weather_report.py
输出将直接打印到 stdout,适合 OpenClaw cron 捕获并发送。
在 OpenClaw 配置中添加(或通过 openclaw cron add):
# cron-example.yaml
name: longli_weather_morning
schedule: "20 7 * * 1-5" # 工作日 7:20
command: |
cd ~/.openclaw/skills/weather-longli/scripts
python3 daily_weather_report.py
编辑 scripts/dress_advice.py 中的 generate_dress_advice 函数,调整温度阈值与建议文本。
weather-longli/
├── SKILL.md # 本文件
├── scripts/
│ ├── crawl_longli_weather.py # 爬虫核心
│ ├── dress_advice.py # 穿衣建议引擎
│ └── daily_weather_report.py # 整合脚本
├── templates/
│ └── cron-example.yaml # OpenClaw cron 配置示例
└── config.example.yaml # (预留)配置模板
requests、beautifulsoup4安装依赖:
pip install requests beautifulsoup4
🌤️ 龙里县今日天气(2026-03-15)
温度:8℃~15℃
天气:多云转晴
风力:东北风 2级
👔 穿衣建议:长袖衬衫+薄外套,早晚温差大,建议带件外套备用。
Lancy(根据用户需求定制)
创建于 2026-03-14
MIT(可根据需要调整)