🦀 ClawHub
tianqi
by @jvy
Get current weather and forecasts via wttr.in and Open-Meteo. Use when: user asks in Chinese about weather, temperature, rain, wind, or short-range forecasts...
TERMINAL
clawhub install tianqi📖 About This Skill
name: tianqi description: "Get current weather and forecasts via wttr.in and Open-Meteo. Use when: user asks in Chinese about weather, temperature, rain, wind, or short-range forecasts for a city or region. Prefer Chinese place names, Chinese summaries, and Celsius-based answers. Use wttr.in for quick text lookups and Open-Meteo for structured forecast data or geocoding fallback." homepage: https://wttr.in/:help metadata: { "openclaw": { "emoji": "🌦️", "requires": { "bins": ["curl"] } } }
Tianqi Skill
面向中文用户的天气查询技能。
默认用中文回答,优先使用中文地名、摄氏度,以及“今天/明天/后天/周末”这类中文表达。
适用场景
不适用场景
地点习惯
数据源选择
wttr.in 做快速文本天气查询,适合“今天天气怎么样”“现在多少度”。wttr.in 地名识别不稳定,先用 Open-Meteo 地理编码确认经纬度,再查预报。回复习惯
wttr.in 示例
# One-line summary
curl "wttr.in/北京?format=3"更详细的当前天气
curl "wttr.in/北京?0"明天
curl "wttr.in/上海?1"周视图
curl "wttr.in/杭州?format=v2"自定义一行摘要
curl -s "wttr.in/深圳?format=%l:+%c+%t+(体感+%f),+风%w,+湿度%h"JSON
curl "wttr.in/北京?format=j1"
Open-Meteo 示例
# 用中文地名地理编码,减少重名地点误判
curl --get "https://geocoding-api.open-meteo.com/v1/search" \
--data-urlencode "name=北京" \
--data "count=5" \
--data "language=zh" \
--data "format=json"
# 结构化天气预报
curl "https://api.open-meteo.com/v1/forecast?latitude=39.9042&longitude=116.4074&daily=weather_code,temperature_2m_max,temperature_2m_min,precipitation_probability_max,precipitation_sum&forecast_days=3&timezone=auto"
常见问法处理
wttr.in 给一个快摘要。
precipitation_probability_max 和 precipitation_sum。
返回内容
注意事项
wttr.in 适合快查,Open-Meteo 适合结构化字段。