{"id":49561493,"url":"https://github.com/kexue-z/nonebot-plugin-heweather","last_synced_at":"2026-05-03T09:09:45.053Z","repository":{"id":37020873,"uuid":"392723250","full_name":"kexue-z/nonebot-plugin-heweather","owner":"kexue-z","description":"获取和风天气信息并转换为图片","archived":false,"fork":false,"pushed_at":"2026-05-02T18:10:31.000Z","size":23695,"stargazers_count":78,"open_issues_count":5,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-05-02T20:15:54.842Z","etag":null,"topics":["nonebot2"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kexue-z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-04T14:40:25.000Z","updated_at":"2026-05-02T18:09:55.000Z","dependencies_parsed_at":"2024-06-21T17:51:01.333Z","dependency_job_id":"592b0300-a7e8-49ff-8a33-14e7ddaa4813","html_url":"https://github.com/kexue-z/nonebot-plugin-heweather","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/kexue-z/nonebot-plugin-heweather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kexue-z%2Fnonebot-plugin-heweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kexue-z%2Fnonebot-plugin-heweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kexue-z%2Fnonebot-plugin-heweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kexue-z%2Fnonebot-plugin-heweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kexue-z","download_url":"https://codeload.github.com/kexue-z/nonebot-plugin-heweather/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kexue-z%2Fnonebot-plugin-heweather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32563618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nonebot2"],"created_at":"2026-05-03T09:09:41.153Z","updated_at":"2026-05-03T09:09:45.039Z","avatar_url":"https://github.com/kexue-z.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://v2.nonebot.dev/store\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/44545625/209862575-acdc9feb-3c76-471d-ad89-cc78927e5875.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n\r\n# nonebot-plugin-heweather\n\n_✨ 获取和风天气信息并转换为图片，支持每日定时推送 ✨_\n\r\n\u003c/div\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003ca href=\"https://raw.githubusercontent.com/kexue-z/nonebot-plugin-heweather/master/LICENSE\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/license/kexue-z/nonebot-plugin-heweather.svg\" alt=\"license\"\u003e\r\n  \u003c/a\u003e\r\n  \u003ca href=\"https://pypi.org/project/nonebot-plugin-heweather/\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/pypi/v/nonebot-plugin-heweather\" alt=\"pypi\"\u003e\r\n  \u003c/a\u003e\r\n  \u003cimg src=\"https://img.shields.io/badge/python-3.10+-blue.svg\" alt=\"python\"\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\n\n# 使用 html+playwright 来渲染好看的！\n\n\u003cimg src=\"docs/weather.png\"  width=\"50%\"\u003e\n\u003c/div\u003e\n\n## 功能特性\n\n- 天气查询：输入城市名称获取实时天气信息\n- 每日推送：订阅每日定时天气预报，支持群聊和私聊\n- 跨平台兼容：基于 nonebot-plugin-alconna，支持多种聊天适配器\n\n## 依赖\n\n- [nonebot-plugin-htmlrender](https://github.com/nonebot/plugin-htmlrender) - HTML 渲染\n- [nonebot-plugin-alconna](https://github.com/nonebot/plugin-alconna) - 跨适配器命令处理\n- [nonebot-plugin-apscheduler](https://github.com/nonebot/plugin-apscheduler) - 定时任务\n- [nonebot-plugin-localstore](https://github.com/nonebot/plugin-localstore) - 数据持久化\n\n**需要先保证 playwright 可以正常运行并在系统（或容器中）存在中文字体**\n\r\n# 安装\r\n\r\n直接使用 `pip install nonebot-plugin-heweather` 进行安装\r\n\r\n在 `bot.py` 中 写入 `nonebot.load_plugin(\"nonebot_plugin_heweather\")`\r\n\r\n# 指令\n\n## 天气查询\n\n`天气+地区` 或 `地区+天气`  \n例如：`上海天气` 或 `天气广州`\n\n## 每日推送\n\n| 指令 | 说明 | 示例 |\n|------|------|------|\n| `天气订阅 城市 HH:MM` | 订阅每日天气推送 | `天气订阅 上海 08:30` |\n| `天气取消订阅` | 取消当前订阅 | `天气取消订阅` |\n| `天气订阅状态` | 查看当前订阅配置 | `天气订阅状态` |\n\n**说明：**\n- 推送时间使用 24 小时制，格式为 `HH:MM`\n- 每个群聊/用户可订阅多个城市\n- 群聊中需要管理员权限才能管理订阅\n- 订阅数据保存在 NoneBot 数据目录中\n\r\n# 配置\n\n## JWT 认证配置\n\n参考文档 [身份认证](https://dev.qweather.com/docs/configuration/authentication/) 生成 Ed25519 密钥，并且上传公钥\n\n```env\n# JWT sub，即控制台中的项目管理的项目ID\nQWEATHER_JWT_SUB=\n\n# JWT Key ID，在控制台上传公钥后获取，凭据 ID\nQWEATHER_JWT_KID=\n\n# JWT 私钥文本，需要自行生成，需要单行填写，例如\n# qweather_jwt_private_key=\"-----BEGIN PRIVATE KEY-----\\n123abc\\n-----END PRIVATE KEY-----\"\nQWEATHER_JWT_PRIVATE_KEY=\n```\n\n## API 主机配置\n\n参考文档 [API 配置](https://dev.qweather.com/docs/configuration/api-config/) 在 [控制台-设置](https://console.qweather.com/setting) 获取地址。务必添加 scheme `https://`\n\n```env\n# API 主机地址，默认为 https://api.qweather.com\nQWEATHER_APIHOST=https://api.qweather.com\n```\n\n## 天气预报配置\n\r\n```env\r\n# 每日预报天数，默认 3 天 根据订阅类型可选最多 30 天\r\nQWEATHER_FORECASE_DAYS=3\r\n\r\n# 逐小时预报类型\r\n# 1 = 未来12小时 (默认值)\r\n# 2 = 未来24小时\r\nQWEATHER_HOURLYTYPE=1\r\n```\r\n\r\n## 调试配置\r\n\r\n```env\r\n# 是否开启调试模式，默认为 false\r\nDEBUG=false\r\n```\r\n\r\n## 配置获取方式\r\n\r\n1. 进入[控制台](https://console.qweather.com/)\r\n2. 项目管理 -\u003e 创建项目\r\n3. 创建凭据\r\n4. 选择 JWT 类型，并按照文档创建公钥和私钥\r\n5. 上传公钥并保存提交\r\n6. 设置 -\u003e 开发者信息 -\u003e API Host 获取地址\r\n7. 填写 .env 文件\r\n\r\n## 参考文档\r\n\r\n[和风天气文档-订阅](https://dev.qweather.com/docs/finance/subscription/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkexue-z%2Fnonebot-plugin-heweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkexue-z%2Fnonebot-plugin-heweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkexue-z%2Fnonebot-plugin-heweather/lists"}