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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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