{"id":24915520,"url":"https://github.com/hasscc/tianqi","last_synced_at":"2025-04-09T20:06:04.831Z","repository":{"id":193334335,"uuid":"688550694","full_name":"hasscc/tianqi","owner":"hasscc","description":"天气预报HomeAssistant集成，支持15天及逐小时预报、各种生活指数，兼容彩云卡片，无需申请appkey","archived":false,"fork":false,"pushed_at":"2024-06-27T08:04:19.000Z","size":74,"stargazers_count":226,"open_issues_count":0,"forks_count":31,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T20:05:59.647Z","etag":null,"topics":["custom-component","home-assistant","weather","weather-forecast"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hasscc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-09-07T15:23:34.000Z","updated_at":"2025-04-09T15:51:55.000Z","dependencies_parsed_at":"2023-09-07T19:38:49.342Z","dependency_job_id":"39398953-fb52-47e9-9de6-8dc0170c3e04","html_url":"https://github.com/hasscc/tianqi","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"7ff53ee497e64c7fd2e997ebcf05826cb085a4f6"},"previous_names":["hasscc/tianqi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Ftianqi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Ftianqi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Ftianqi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasscc%2Ftianqi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasscc","download_url":"https://codeload.github.com/hasscc/tianqi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103871,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["custom-component","home-assistant","weather","weather-forecast"],"created_at":"2025-02-02T07:17:58.787Z","updated_at":"2025-04-09T20:06:04.803Z","avatar_url":"https://github.com/hasscc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ☁️ 天气预报\n\n\n本集成为HomeAssistant的中国用户提供天气实体(`weather`)，支持15天及逐小时预报、各种生活指数，兼容[彩云卡片](https://github.com/fineemb/lovelace-colorfulclouds-weather-card)，无需申请appkey。\n\n\n\u003e **Note**\n\u003e \n\u003e 如果你想使用彩云卡片，请在配置集成时勾选`兼容彩云卡片`。\n\u003e\n\u003e 由于没有云层覆盖率和24小时后的降水量数据，且彩云卡片需要这些数据，本集成提供的云层覆盖率及降水量(24至48小时)是根据天气状况给的固定数据，仅供参考。\n\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n## 安装/更新\n\n\u003e 以下几种方法任选其一！\n\n#### 方法1: [HACS (**点击这里安装**)](https://my.home-assistant.io/redirect/hacs_repository/?owner=hasscc\u0026repository=tianqi\u0026category=integration)\n\n#### 方法2: 通过 Samba / SFTP 手动安装\n\u003e [下载](https://github.com/hasscc/tianqi/archive/main.zip)解压并复制`custom_components/tianqi`文件夹到HA配置目录下的`custom_components`文件夹\n\n#### 方法3: 通过`SSH`或`Terminal \u0026 SSH`加载项执行一键安装命令\n```shell\nwget -O - https://hacs.vip/get | DOMAIN=tianqi bash -\n```\n\n#### 方法4: `shell_command`服务\n1. 复制代码到HA配置文件 `configuration.yaml`\n    ```yaml\n    shell_command:\n      update_tianqi: |-\n        wget -O - https://hacs.vip/get | DOMAIN=tianqi bash -\n    ```\n2. 重启HA使配置生效\n3. 在开发者工具中执行服务 [`service: shell_command.update_tianqi`](https://my.home-assistant.io/redirect/developer_call_service/?service=shell_command.update_tianqi)\n4. 再次重启HA使插件生效\n\n\n\u003ca name=\"config\"\u003e\u003c/a\u003e\n## 配置\n\n\u003e [⚙️ 配置](https://my.home-assistant.io/redirect/config) \u003e 设备与服务 \u003e [🧩 集成](https://my.home-assistant.io/redirect/integrations) \u003e [➕ 添加集成](https://my.home-assistant.io/redirect/config_flow_start?domain=tianqi) \u003e 🔍 搜索 [`天气预报`](https://my.home-assistant.io/redirect/config_flow_start?domain=tianqi)\n\n\n## 截图\n\u003cimg width=\"800\" alt=\"tianqi\" src=\"https://github.com/hasscc/tianqi/assets/4549099/545e5c98-dce3-46b6-95c0-3e42d8a26a9a\"\u003e\n\n## 相关链接\n\n- 使用教程: https://mp.weixin.qq.com/s/_4aFbsb40qPgII-kYB3phA\n- [安装彩云卡片(HACS)](https://my.home-assistant.io/redirect/hacs_repository/?owner=fineemb\u0026repository=lovelace-colorfulclouds-weather-card\u0026category=lovelace)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasscc%2Ftianqi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasscc%2Ftianqi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasscc%2Ftianqi/lists"}