公告
-
24-8-16 更新部分逻辑
- 添加韩小韩WebAPI接口的实况天气api
-
24-7-10开始对插件设置部分进行重构
安装
- 使用 nb-cli
nb plugin install nonebot-plugin-xjie-weather
- 使用 pip
pip install nonebot-plugin-xjie-weather
支持
目前支持
| API | 是否支持 | 调用天气预报 | 城市编码获取 |
|---|---|---|---|
| 高德天气 | 支持✅ | 300000次 | 5000次/天 |
| 和风天气 | 支持✅ | 1000次/天 | 和前面次数共用 |
| Visual Crossing | 未完成❌ | ||
| 心知天气 | 未完成❌ | ||
| 韩小韩WebAPI接口(天气) | 支持✅ | 免费 | 无需 |
BUG反馈
请提issues或邮箱1095530449@qq.com
配置
一
- 使用
setup命令交互式设置key
AMAP_KEY 高德
QWEATHER_KEY 和风天气
VVHAN_KEY 韩小韩WebAPI接口(天气)
如果有多个key想使用哪个或者在一个平台的调用次数用完后可以进行切换
default_api 优先使用的平台
手动填入的话平台名为上面的key名
二
- 在.env文件中配置
高德密钥
AMAP_KEY = ""
和风天气密钥
QWEATHER_KEY = ""
和风天气订阅配置免费为0(默认)付费为1
QWEATHER_APITYPE = 0
在.env文件配置的信息覆盖权限小于交互式设置的key,也就是说当您在使用setup设置过密钥后,会使用您在setup设置的密钥而不使用您.env中配置的密钥。
平台key获取
插件返回的天气预报图片效果
高德
高德地图返回的天气数据种类不多但对于只看个天气预报而已的完全够
毕竟高德调用的次数挺多的
和风天气
好看
韩小韩WebAPI接口(天气)
由于这是一个免费的api,作者无法保证其稳定性。
其api仅支持到市的天气,请勿使用市级以下的城市调用。如我在泉州市xx区,请使用泉州或泉州市进行调用。
该api的支持还在优化,最好是测试一下awa。
Metadata
Release files for nonebot-plugin-xjie-weather 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_xjie_weather-1.2.4.tar.gz | 939.3 kB | Without provenance | Details for nonebot_plugin_xjie_weather-1.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_xjie_weather-1.2.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_xjie_weather-1.2.4-py3-none-any.whl |
Total release size: 1.9 MB
Release files / nonebot_plugin_xjie_weather-1.2.4.tar.gz
| Download URL | nonebot_plugin_xjie_weather-1.2.4.tar.gz |
|---|---|
| Size | 939.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
366f5829cceeb86d37927994790d8c71428809a4f721cfea94e7af808f9bc76e
|
|
BLAKE2b-256 checksum How to use checksums |
a1e73abc707882380e661e03ae9304eea9d464e214038710fb950d84f0515bbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Windows/11
|
Release files / nonebot_plugin_xjie_weather-1.2.4-py3-none-any.whl
| Download URL | nonebot_plugin_xjie_weather-1.2.4-py3-none-any.whl |
|---|---|
| Size | 948.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3f37a3e6d19abe6e4d6b2205271fda5f78c7fc16d3cdb0f20f90f5ee5ca5af9
|
|
BLAKE2b-256 checksum How to use checksums |
40d32929f3a99f34b1da7871b2dfb6375c4272d2d215d237afeb0b6612a34770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.3 Windows/11
|
Security for nonebot-plugin-xjie-weather 1.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.