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_heweather")

指令

天气+地区地区+天气
例如:上海天气天气广州

配置

apikey 必须配置 环境配置

QWEATHER_APIKEY = xxx

api类型 必须配置 环境配置

0 = 普通版(3天天气预报) 1 = 个人开发版(7天天气预报) 2 = 商业版 (7天天气预报)

QWEATHER_APITYPE = 0

APIKEY获取方式

1、注册和风天气账号
进入官网注册https://id.qweather.com/#/login
2、进入控制台
登录后,点击 “和风天气开发者控制台”
3、创建项目
点击控制台左侧 “项目管理”,然后点击 “创建项目”,根据提示自行填写
“选择订阅” -> “免费订阅”,“设置KEY” -> “Web API”,都填好后“创建”
4、获取key并配置.env.xx
返回 “项目管理”,可以看到创建的项目,点击KEY下面的 “查看”,复制KEY到你的.env.xx即可。

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.6.3.tar.gz (92.6 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_heweather-0.6.3-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_heweather-0.6.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_heweather-0.6.3.tar.gz
  • Upload date:
  • Size: 92.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.2 Linux/5.15.0-1034-azure

File hashes

Hashes for nonebot_plugin_heweather-0.6.3.tar.gz
Algorithm Hash digest
SHA256 4ba8b14ad8962794be64fb814bc61994b6d8d8daa4eec28cac2f4e4c3b3dc675
MD5 05b77ceca7c453e1f38b4545e2a35bc8
BLAKE2b-256 99b30cd3299aebe9364b4bd19efc79e70218a01b80422f77e05b4fb77eb4fd10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_heweather-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db8340f2ede6733ef2c5c9e7a43e862588d8ea43534f98231c0500ce1284250f
MD5 42a88c524917b9b12fe5f9878a6fb09d
BLAKE2b-256 cd0fa2cc5a11882f339d76a70d73f801fee4835fda358d410cd7ab80afd7731f

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