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_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
Close
Hashes for nonebot-plugin-heweather-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dd3d2c38fa08386449185604a5a5e1a9ea0dc188032505f102fb9767a48bb82 |
|
MD5 | e2dc3f7f890dbbe73818a8d176d726de |
|
BLAKE2b-256 | c262ff1f73239c786e3fd48723bf8b555ac1de3f594d2348a5ad97bbc5e6e51b |
Close
Hashes for nonebot_plugin_heweather-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6c8a6d3d6337113591abd903569e87977c9ffb39ae25c221326983b4f61aac9 |
|
MD5 | e62e1e6477e6e68c4958ca0c939d960c |
|
BLAKE2b-256 | e618c3a567722acc8f5099a3bb32fc1801ba1a60571bdfa8800d66450a45b42d |