Get Heweather information and convert to pictures
Project description
nonebot-plugin-heweather
获取和风天气信息并转换为图片
使用html+playwright来渲染好看的!
- 使用了
自产自销的nonebot-plugin-htmlrender - 需要先保证playwright可以正常运行并在系统(或容器中)存在中文字体
安装
直接使用 pip install nonebot-plugin-heweather
进行安装
不仅要在 bot.py
中 写入 nonebot.load_plugin("nonebot_plugin_htmlrender")
还要在 bot.py
中 写入 nonebot.load_plugin("nonebot_plugin_heweather")
因为用到了require 所以
nonebot_plugin_htmlrender
要先载入(虽然
指令
天气+地区
或 地区+天气
配置
apikey 必须配置 环境配置
QWEATHER_APIKEY = xxx
是否使用商业版 可选 环境配置
- 不添加则默认开发版
QWEATHER_COMMERCIAL = true
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.5.0.3.tar.gz
.
File metadata
- Download URL: nonebot-plugin-heweather-0.5.0.3.tar.gz
- Upload date:
- Size: 91.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 | 3725cd42bad11428be7c45562ac1df0b24c8b8b247d3f77fccb916677e48ea45 |
|
MD5 | d446b2275fb1783852a38d3e7d75c4aa |
|
BLAKE2b-256 | 44d124a21c614d1c7451fc80332210cfb774c35d521bed8c1b529fbf0d09976f |
File details
Details for the file nonebot_plugin_heweather-0.5.0.3-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_heweather-0.5.0.3-py3-none-any.whl
- Upload date:
- Size: 90.5 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 | 8f4e0d3f48009c57b59dc61443230836ecfcd09137a4ac7e5f3c18816a1282fe |
|
MD5 | c45d9fa3a818f3956109aef727fe4687 |
|
BLAKE2b-256 | de431212fba172335f593604345e19294d3d915d301410d2117cd7b550ba3761 |