Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot-plugin-heweather-0.4.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot-plugin-heweather-0.4.0.3.tar.gz.

File metadata

File hashes

Hashes for nonebot-plugin-heweather-0.4.0.3.tar.gz
Algorithm Hash digest
SHA256 a4c5ffb30352cfaacdd2d00d5c38c4abaaeb5892ed43bc99c46f4da8bc442cc1
MD5 b145098eccf6e36ee6e6a43ab8eab1fe
BLAKE2b-256 50629aa30e9b56bccd5d6717bae75b2f2ecba67fa0c7fda7ea78d0fcefb5bf77

See more details on using hashes here.

File details

Details for the file nonebot_plugin_heweather-0.4.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_heweather-0.4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 27805ee9b241793daca1e080fd358922da00f84b115e67c0374b23fa9412cf24
MD5 455ddb5d566f802ca9d6ed99b81a013f
BLAKE2b-256 04b43ff1de936207d82b814ddbe3fc40b73c6b5a08bd8342eeaaea6b186b89a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page