Get Heweather information and convert to pictures
Project description
nonebot-plugin-heweather
获取和风天气信息并转换为图片
和风天气API图标信息编号变化
由于和风天气图标ID和图标发生变化
- 在2021.11.30前创建的API将保持原有信息
- 之后创建的API将使用新版图标信息
- 旧版API使用
pip install nonebot-plugin-heweather==0.2.1
进行安装 - 新版API图标已更新,可直接安装
- 图标适配还没做,打算重写,先等等吧~
安装
直接使用 pip install nonebot-plugin-heweather
进行安装
然后在 bot.py
中 写入 nonebot.load_plugin("nonebot_plugin_heweather")
指令
天气+地区
或 地区+天气
配置
apikey 必须配置 环境配置
QWEATHER_APIKEY = xxx
是否使用商业版 可选 环境配置
- 不添加则默认开发版
QWEATHER_COMMERCIAL = true
字体文件 可选 环境配置
QWEATHER_FONT = "./data/heweather/font.ttc"
- 使用 truetype 字体
- 建议使用微软雅黑
图标文件 可选 环境配置
注意末端的/
, 代表目录!
QWEATHER_ICON_DIR = "./data/heweather/icon/"
背景文件 可选 环境配置
默认路径./data/heweather/backgroud.png
QWEATHER_BACKGROUD = "./data/heweather/backgroud.png"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot-plugin-heweather-0.4.0.1.tar.gz
.
File metadata
- Download URL: nonebot-plugin-heweather-0.4.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Darwin/21.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6444735d96e3a646ff8f52d707d530cb40b14ca3c9b80f5b6547f1447cfeff80 |
|
MD5 | 04b635c90ba139d9884364521053c896 |
|
BLAKE2b-256 | f0efc7817f8de547a4a98ca5fec19c373502b348d499311f3296a0ebf5dc1cb0 |
File details
Details for the file nonebot_plugin_heweather-0.4.0.1-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_heweather-0.4.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Darwin/21.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636df7f1e5f0c071a17b328996df0fefc262664cdc262d6d10c7c935c7351a61 |
|
MD5 | ddbec20c1b3bd4bd833f765a62ed2663 |
|
BLAKE2b-256 | 9e05e8650580c1bd288f12c39d0a486800fcd00d330c7a693ae3fe919abe216b |