Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kexue-z authored Aug 15, 2024
1 parent d7f0b95 commit 3cb6863
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,22 @@ QWEATHER_APIKEY = xxx

## api 类型 必须配置 环境配置

0 = 普通版 **免费订阅** (3 天天气预报)
1 = 个人开发版 **标准订阅** (7 天天气预报)
2 = 商业版 (7 天天气预报)
0 = 免费订阅 (3-7 天天气预报)
1 = 标准订阅 (3-30 天天气预报)
2 = 高级订阅 (3-30 天天气预报)

```
QWEATHER_APITYPE = 0
```

## 每日预报天数 可选配置 环境变量

天数,默认 3 天

```
QWEATHER_FORECASE_DAYS = 3
```

## 逐小时类型 可选配置 环境变量

1 = 未来12小时 (默认值)
Expand All @@ -79,3 +87,7 @@ QWEATHER_HOURLYTYPE = 1
“选择订阅” -> “免费订阅”,“设置 KEY” -> “Web API”,都填好后“创建”
**4、获取 key 并配置.env.xx**
返回 “项目管理”,可以看到创建的项目,点击 KEY 下面的 “查看”,复制 KEY 到你的.env.xx 即可。

## 参考文档

[和风天气文档-订阅](https://dev.qweather.com/docs/finance/subscription/)

0 comments on commit 3cb6863

Please sign in to comment.