Weather Cn

v1.3.0

国内天气+空气质量查询。支持城市和区县级,中文输出。数据源: wttr.in + Open-Meteo。无需 API Key。

0· 102·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for lujun2508/weather-cn-jj.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Weather Cn" (lujun2508/weather-cn-jj) from ClawHub.
Skill page: https://clawhub.ai/lujun2508/weather-cn-jj
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: python
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install weather-cn-jj

ClawHub CLI

Package manager switcher

npx clawhub@latest install weather-cn-jj
Security Scan
Capability signals
Requires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (国内天气 + AQI) align with the included Python script and the single required binary (python). The listed city/district coordinates and network data sources (wttr.in, Open‑Meteo) match the declared purpose.
Instruction Scope
SKILL.md tells the agent to run the included Python script or import specific functions; it does not instruct reading arbitrary local files, other credentials, or sending data to unexpected endpoints beyond the stated APIs.
Install Mechanism
No install spec (instruction-only with a bundled script). No downloads or archive extraction; the code is provided in the skill bundle.
Credentials
Requires no environment variables or credentials; the script uses public HTTP APIs for weather and AQI data. No evidence it tries to read unrelated env vars or config paths.
Persistence & Privilege
always:false and no behavior that modifies other skills or system-wide settings. Normal autonomous invocation is allowed but not exceptional here.
Assessment
This skill appears coherent and implements a straightforward weather + AQI fetcher using wttr.in and Open‑Meteo; it does not request secrets. Before installing, review the bundled script if you can, and be aware it will make outbound HTTP requests to public services (so running it requires network access and is subject to those services' rate limits and privacy policies). If you prefer caution, run the script in a sandbox or isolated environment. If you need stronger guarantees, verify the remainder of the code (the truncated portion) to ensure no unexpected network endpoints or local-file/credential reads are present.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

OSWindows · macOS · Linux
Binspython
aqivk9781tb4n3gtswxba3gy52dc5x8517z7chinavk9781tb4n3gtswxba3gy52dc5x8517z7cnvk9781tb4n3gtswxba3gy52dc5x8517z7latestvk9781tb4n3gtswxba3gy52dc5x8517z7weathervk9781tb4n3gtswxba3gy52dc5x8517z7
102downloads
0stars
4versions
Updated 1w ago
v1.3.0
MIT-0
Windows, macOS, Linux

Weather CN — 国内天气 + 空气质量

纯中文输出,国内用户友好。天气数据来源 wttr.in,空气质量来源 Open-Meteo(US AQI 标准)。

支持地区

城市级别

北京上海杭州深圳广州成都武汉西安南京重庆天津苏州郑州长沙沈阳青岛大连哈尔滨长春石家庄福州厦门南昌济南太原合肥昆明贵阳南宁海口拉萨兰州银川西宁乌鲁木齐呼和浩特雄安新区东阳义乌永康金华

区县级别(定位支持,天气以城市数据为准)

北京: 朝阳、海淀、东城、西城、丰台、石景山、通州、顺义、大兴、昌平、房山...
上海: 浦东、黄浦、徐汇、静安、普陀、虹口、杨浦、闵行、宝山、嘉定、松江...
杭州: 西湖、上城、拱墅、滨江、萧山、余杭、临平、钱塘、富阳、临安、桐庐...
广州: 天河、越秀、海珠、番禺、白云、黄埔、花都、南沙、从化、增城
深圳: 福田、罗湖、南山、宝安、龙岗、龙华、坪山、光明、盐田、大鹏
成都: 锦江、青羊、金牛、武侯、成华、龙泉驿、青白江、新都、温江、双流...
武汉: 江岸、江汉、硚口、汉阳、武昌、青山、洪山、东西湖、汉南、蔡甸...
南京: 玄武、秦淮、建邺、鼓楼、浦口、栖霞、雨花台、江宁、六合、溧水、高淳
西安: 新城、碑林、莲湖、雁塔、灞桥、未央、阎良、临潼、长安、高陵、鄠邑...
苏州: 姑苏、虎丘、吴中、相城、吴江、苏州工业园、昆山、常熟、张家港、太仓
以及全国所有地级市的市辖区

支持的输入格式

  • 北京 (城市)
  • 北京朝阳 / 北京 朝阳 / 北京:朝阳 (区级)
  • 上海浦东 / 杭州西湖 / 广州天河 / 深圳南山 (区级)
  • 东阳 (城市,浙江金华下辖)

注意: 部分区县在 wttr.in 无数据(如东阳白云街道),使用城市级别即可。

快速查询

城市天气

python3 scripts/weather_cn.py 北京

精确到区+AQI

python3 scripts/weather_cn.py 北京朝阳 --aqi
python3 scripts/weather_cn.py 上海浦东 --aqi
python3 scripts/weather_cn.py 杭州西湖 --aqi

明日预报

python3 scripts/weather_cn.py 广州天河 --tomorrow --aqi

Python调用

import sys
sys.path.insert(0, 'skills/weather-cn/scripts')
from weather_cn import fetch_weather, fetch_aqi_by_coords, format_weather

# 仅天气
weather = fetch_weather('上海')
print(format_weather('上海', weather))

# 天气+AQI
weather = fetch_weather('上海')
aqi = fetch_aqi_by_coords(31.2304, 121.4737)
print(format_weather('上海', weather, aqi))

# 明日预报
weather = fetch_weather('上海', tomorrow=True)
print(format_weather('上海', weather, tomorrow=True))

AQI等级参考(US AQI标准)

AQI等级建议
0-50空气质量令人满意
51-100空气质量可接受
101-150轻度污染敏感人群减少户外
151-200中度污染减少户外活动
201-300重度污染避免外出
300+严重污染停止户外活动

注: AQI数据来源为 Open-Meteo(欧洲CAMS模型,US AQI标准),数据更新可能有数小时延迟。US AQI 100 对应中国 AQI 约150,同数值下 US AQI 标准更严格。

天气代码映射

Code中文
113☀️ 晴
116⛅ 多云
119☁️ 阴
122🌫️ 雾
143🌫️ 薄雾
176🌦️ 晴转阵雨
179🌨️ 阵雪
182🌨️ 小雪
185🌨️ 冻雨
200⛈️ 雷暴
227🌨️ 风雪
230❄️ 大雪
248🌫️ 大雾
260🌫️ 浓雾
263🌧️ 小雨
266🌧️ 小雨
269🌨️ 雨夹雪
281🌨️ 冻雨
293🌧️ 小雨
296🌧️ 中雨
299🌧️ 大雨
302🌨️ 雷阵雨
308🌧️ 暴雨
353🌧️ 中雨
356🌧️ 大雨
359🌧️ 雷阵雨
362🌨️ 小阵雨
365🌨️ 中阵雨
368🌨️ 大阵雨
371🌨️ 冰粒
386⛈️ 雷阵雨
389⛈️ 雷暴雨

穿衣指数参考

根据温度给出建议:

  • <5°C:羽绒服
  • 5-10°C:厚外套+毛衣
  • 10-15°C:外套+打底
  • 15-20°C:轻薄外套
  • 20-25°C:长袖/短袖
  • 25-30°C:短袖
  • 30°C:超薄短袖

Comments

Loading comments...