Skip to main content

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


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.3.0.tar.gz (15.4 MB view details)

Uploaded Source

Built Distribution

nonebot_plugin_heweather-0.3.0-py3-none-any.whl (15.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot-plugin-heweather-0.3.0.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.5 Darwin/21.1.0

File hashes

Hashes for nonebot-plugin-heweather-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6dd3d2c38fa08386449185604a5a5e1a9ea0dc188032505f102fb9767a48bb82
MD5 e2dc3f7f890dbbe73818a8d176d726de
BLAKE2b-256 c262ff1f73239c786e3fd48723bf8b555ac1de3f594d2348a5ad97bbc5e6e51b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_heweather-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6c8a6d3d6337113591abd903569e87977c9ffb39ae25c221326983b4f61aac9
MD5 e62e1e6477e6e68c4958ca0c939d960c
BLAKE2b-256 e618c3a567722acc8f5099a3bb32fc1801ba1a60571bdfa8800d66450a45b42d

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