← Back to Skills Marketplace
453
Downloads
9
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install jisu-weather
Description
查询实时天气、7 天预报、24 小时逐时、空气质量与生活指数,可查城市列表。当用户说:上海今天天气怎样?北京明天会下雨吗?带伞吗?或类似天气预报问题时,使用本技能。
README (SKILL.md)
\r \r
极速数据全国天气预报(Jisu Weather)\r
\r
数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。\r \r
- 当前实时天气\r
- 未来 7 天预报(
daily)\r - 未来 24 小时逐小时预报(
hourly)\r - 空气质量 AQI 指数\r
- 生活指数(穿衣、运动、洗车等)\r
- 城市列表(
/weather/city)\r \r
前置配置:获取 API Key\r
\r
- 前往 极速数据官网 注册账号\r
- 进入 全国天气预报 API 页面,点击「申请数据」\r
- 在会员中心获取 AppKey\r
- 配置 Key:\r \r \r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/weather/weather.py`\r
\r
## 使用方式\r
\r
### 1. 按城市名称查询天气\r
\r
```bash\r
python3 skills/weather/weather.py '{"city":"杭州"}'\r
```\r
\r
### 2. 按城市 ID / 城市代号查询\r
\r
```bash\r
python3 skills/weather/weather.py '{"cityid":111}'\r
python3 skills/weather/weather.py '{"citycode":"101260301"}'\r
```\r
\r
### 3. 按经纬度或 IP 查询\r
\r
```bash\r
# 经纬度:纬度在前,逗号分隔\r
python3 skills/weather/weather.py '{"location":"39.983424,116.322987"}'\r
\r
# IP\r
python3 skills/weather/weather.py '{"ip":"8.8.8.8"}'\r
```\r
\r
> 请求 JSON 中至少要提供 `city` / `cityid` / `citycode` / `location` / `ip` 中的一个字段。\r
\r
### 4. 获取支持的城市列表\r
\r
对应极速数据 `/weather/city` 接口:\r
\r
```bash\r
python3 skills/weather/weather.py cities\r
```\r
\r
返回值为数组,每一项形如:\r
\r
```json\r
{\r
"cityid": "1",\r
"parentid": "0",\r
"citycode": "101010100",\r
"city": "北京"\r
}\r
```\r
\r
## 请求参数(天气查询 JSON)\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|---------|--------|------|----------------------------------------------------------------------|\r
| city | string | 否 | 城市名称,如 `"杭州"` |\r
| cityid | int | 否 | 城市 ID |\r
| citycode| string | 否 | 城市天气代号 |\r
| location| string | 否 | 经纬度,纬度在前,逗号分隔,如 `"39.983424,116.322987"` |\r
| ip | string | 否 | IP 地址 |\r
\r
> 至少需要提供上述 5 个字段中的一个,否则脚本会报错并退出。\r
\r
示例请求:\r
\r
```json\r
{\r
"city": "安顺",\r
"cityid": 111,\r
"citycode": "101260301"\r
}\r
```\r
\r
## 返回结果示例\r
\r
脚本直接输出接口的 `result` 字段(JSON),典型结构与官网示例一致:\r
\r
```json\r
{\r
"city": "安顺",\r
"cityid": "111",\r
"citycode": "101260301",\r
"date": "2015-12-22",\r
"week": "星期二",\r
"weather": "多云",\r
"temp": "16",\r
"temphigh": "18",\r
"templow": "9",\r
"humidity": "55",\r
"windspeed": "14.0",\r
"winddirect": "南风",\r
"windpower": "2级",\r
"index": [\r
{\r
"iname": "空调指数",\r
"ivalue": "较少开启",\r
"detail": "您将感到很舒适,一般不需要开启空调。"\r
}\r
],\r
"aqi": {\r
"aqi": "35",\r
"primarypollutant": "PM10",\r
"quality": "优",\r
"timepoint": "2015-12-09 16:00:00"\r
},\r
"daily": [\r
{\r
"date": "2015-12-22",\r
"week": "星期二",\r
"sunrise": "07:39",\r
"sunset": "18:09",\r
"night": {\r
"weather": "多云",\r
"templow": "9",\r
"img": "1",\r
"winddirect": "无持续风向",\r
"windpower": "微风"\r
},\r
"day": {\r
"weather": "多云",\r
"temphigh": "18",\r
"img": "1",\r
"winddirect": "无持续风向",\r
"windpower": "微风"\r
}\r
}\r
],\r
"hourly": [\r
{\r
"time": "16:00",\r
"weather": "多云",\r
"temp": "14",\r
"img": "1"\r
}\r
]\r
}\r
```\r
\r
当出现错误(如城市不存在、没有天气信息等)时,脚本会输出:\r
\r
```json\r
{\r
"error": "api_error",\r
"code": 202,\r
"message": "城市不存在"\r
}\r
```\r
\r
## 常见错误码\r
\r
来源于极速数据文档部分错误码:\r
\r
| 代号 | 说明 |\r
|------|------------------------------|\r
| 201 | 城市和城市ID和城市代号都为空 |\r
| 202 | 城市不存在 |\r
| 203 | 此城市没有天气信息 |\r
| 210 | 没有信息 |\r
\r
系统错误码:\r
\r
| 代号 | 说明 |\r
|------|--------------------|\r
| 101 | APPKEY 为空或不存在|\r
| 102 | APPKEY 已过期 |\r
| 103 | APPKEY 无请求权限 |\r
| 104 | 请求超过次数限制 |\r
| 105 | IP 被禁止 |\r
\r
## 推荐用法\r
\r
1. 用户输入:「查下杭州今天的天气和未来几天下雨情况」。 \r
2. 代理构造 JSON:`{"city":"杭州"}` 并调用: \r
`python3 skills/weather/weather.py '{"city":"杭州"}'` \r
3. 从返回 JSON 中提取当前天气、`daily` / `hourly` 的降水相关字段,为用户生成自然语言总结。 \r
4. 如需城市编码或城市 ID,可先调用:`python3 skills/weather/weather.py cities`,在结果中查找目标城市后再发起天气查询。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息 \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测 \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询 \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别 \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令 \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换 \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
Usage Guidance
This skill appears to do only what it claims: call JisuAPI for weather. Before installing: 1) Confirm you trust the JisuAPI provider and protect your JISU_API_KEY (do not share it publicly). 2) Ensure the runtime has python3 and the 'requests' package installed (SKILL.md doesn't list this dependency). 3) Expect the skill to make outbound HTTPS requests to api.jisuapi.com (network egress required). 4) Check your JisuAPI account rate limits and permissions. If you require stricter guarantees, review the script locally (it's small and readable) before enabling autonomous use.
Capability Analysis
Type: OpenClaw Skill
Name: jisu-weather
Version: 1.0.2
The skill is a standard weather forecast tool that interfaces with the JisuAPI service. The Python script `weather.py` retrieves weather data or city lists by making authorized GET requests to the official API endpoint (api.jisuapi.com) using a user-provided API key stored in an environment variable. The code follows safe practices, lacks any signs of data exfiltration, obfuscation, or unauthorized execution, and the instructions in `SKILL.md` are consistent with its stated purpose.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md and the code all target the JisuAPI weather endpoints. Requiring JISU_API_KEY and python3 is expected for this functionality. The code talks only to https://api.jisuapi.com which matches the documented provider.
Instruction Scope
SKILL.md instructs the agent to run the included script with a small JSON payload or the 'cities' subcommand. The instructions do not request unrelated files, system configuration, or additional environment variables beyond JISU_API_KEY.
Install Mechanism
There is no install spec (instruction-only), which minimizes install risk. The shipped script uses the Python 'requests' library but the SKILL.md does not document installing that dependency; this is an operational omission (not a security risk) that could cause runtime failures if 'requests' is missing.
Credentials
Only JISU_API_KEY is required (declared as primaryEnv). No other secrets, system config paths, or unrelated credentials are requested; this is proportionate to calling the Jisu weather API.
Persistence & Privilege
The skill is not forced-always, does not request system-wide changes, and does not modify other skills. It runs when invoked by the agent or user per platform defaults.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install jisu-weather - After installation, invoke the skill by name or use
/jisu-weather - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Updated skill description and summary for clearer usage scenarios and more natural language.
- Added "About JisuAPI" section introducing data provider and additional APIs.
- Improved instructions for obtaining and configuring the JisuAPI key.
- Revised usage instructions and reordered sections for better clarity.
- Enhanced prompts to clarify when the skill should be triggered (e.g., weather questions).
v1.0.1
- No code or content changes detected in this version.
- Documentation and functionality remain unchanged.
v1.0.0
- Initial release of jisu-weather skill.
- Supports querying real-time weather, 7-day and 24-hour weather forecasts, AQI, and life indices via Jisu API.
- Provides full city list retrieval for city-based weather queries.
- Detailed usage instructions for querying by city name, ID, code, coordinates, or IP.
- Requires JISU_API_KEY environment variable for operation.
- Returns raw API JSON results for easy parsing; outputs clear errors for common failure cases.
Metadata
Frequently Asked Questions
What is Weather Forecast - 全国天气预报?
查询实时天气、7 天预报、24 小时逐时、空气质量与生活指数,可查城市列表。当用户说:上海今天天气怎样?北京明天会下雨吗?带伞吗?或类似天气预报问题时,使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 453 downloads so far.
How do I install Weather Forecast - 全国天气预报?
Run "/install jisu-weather" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Weather Forecast - 全国天气预报 free?
Yes, Weather Forecast - 全国天气预报 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Weather Forecast - 全国天气预报 support?
Weather Forecast - 全国天气预报 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Weather Forecast - 全国天气预报?
It is built and maintained by 极速数据 (@jisuapi); the current version is v1.0.2.
More Skills