init: 云枢·Agent 初始提交
This commit is contained in:
56
skills/msn-weather-api/SKILL.md
Normal file
56
skills/msn-weather-api/SKILL.md
Normal file
@@ -0,0 +1,56 @@
|
||||
---
|
||||
name: msn-weather-api
|
||||
description: MSN 天气 API 详细知识
|
||||
---
|
||||
|
||||
# MSN 天气 API 参考
|
||||
|
||||
## 接口地址
|
||||
|
||||
| 接口 | URL |
|
||||
|------|-----|
|
||||
| 当前天气 | `https://assets.msn.cn/service/weather/current` |
|
||||
| 每日预报 | `https://assets.msn.cn/service/weather/dailyforecast` |
|
||||
|
||||
## 必须参数
|
||||
|
||||
- `apiKey`: `j5i4gDqHL6nGYwx5wi5kRhXjtf2c5qgFX9fzfk0TOo`(固定值,不可修改)
|
||||
- `lat` / `lon`: 经纬度(WGS84)
|
||||
- `locale`: `zh-cn`
|
||||
- `units`: `C`(摄氏)
|
||||
|
||||
## 可选参数
|
||||
|
||||
- `days`: 预报天数(最大 10)
|
||||
|
||||
## 必须请求头
|
||||
|
||||
```
|
||||
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
|
||||
Referer: https://www.msn.com/zh-cn/weather
|
||||
```
|
||||
|
||||
## 响应数据结构
|
||||
|
||||
### current 接口
|
||||
```
|
||||
value[].responses[].weather[].current.{
|
||||
temp, cap, feels, rh, baro, windSpd, windDir,
|
||||
windGust, uv, uvDesc, vis, dewPt, aqi,
|
||||
aqiSeverity, cloudCover, created
|
||||
}
|
||||
```
|
||||
|
||||
### dailyforecast 接口
|
||||
```
|
||||
value[].responses[].weather[].days[].daily.{
|
||||
valid, tempLo, tempHi, precip, windMax,
|
||||
windMaxDir, rhHi, rhLo, icon, symbol, uv, uvDesc
|
||||
}
|
||||
```
|
||||
|
||||
## 注意事项
|
||||
- 数据源为微软 MSN 天气后台接口
|
||||
- 国内访问速度快(msn.cn 国内节点)
|
||||
- apiKey 可能随时更换
|
||||
- 不可用于商业产品
|
||||
Reference in New Issue
Block a user