{"id":19273044,"url":"https://github.com/fluttercandies/flutter_qweather","last_synced_at":"2025-04-21T22:32:25.347Z","repository":{"id":44378905,"uuid":"359456352","full_name":"fluttercandies/flutter_qweather","owner":"fluttercandies","description":"和风天气  Flutter 插件","archived":false,"fork":false,"pushed_at":"2024-06-24T09:56:28.000Z","size":45603,"stargazers_count":30,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-21T04:14:15.749Z","etag":null,"topics":["flutter","qweather","weather"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttercandies.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG-ZH.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-19T12:45:46.000Z","updated_at":"2025-04-04T04:07:27.000Z","dependencies_parsed_at":"2024-06-24T11:13:40.985Z","dependency_job_id":"6c5e5a26-ed39-4c98-a1f4-89792426515f","html_url":"https://github.com/fluttercandies/flutter_qweather","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_qweather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_qweather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_qweather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fflutter_qweather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercandies","download_url":"https://codeload.github.com/fluttercandies/flutter_qweather/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250144445,"owners_count":21382225,"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":["flutter","qweather","weather"],"created_at":"2024-11-09T20:40:33.666Z","updated_at":"2025-04-21T22:32:20.334Z","avatar_url":"https://github.com/fluttercandies.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter 和风天气插件 \n\n[![pub package](https://img.shields.io/pub/v/flutter_qweather?logo=dart\u0026label=stable\u0026style=flat-square)](https://pub.dev/packages/flutter_qweather)\n[![pub package](https://img.shields.io/pub/v/flutter_qweather?color=42a012\u0026include_prereleases\u0026label=dev\u0026logo=dart\u0026style=flat-square)](https://pub.dev/packages/flutter_qweather)\n[![CodeFactor](https://img.shields.io/codefactor/grade/github/fluttercandies/flutter_qweather?logo=codefactor\u0026logoColor=%23ffffff\u0026style=flat-square)](https://www.codefactor.io/repository/github/fluttercandies/flutter_qweather)\n[![GitHub license](https://img.shields.io/github/license/fluttercandies/flutter_qweather?style=flat-square)](https://github.com/fluttercandies/flutter_qweather/blob/master/LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/fluttercandies/flutter_qweather?logo=github\u0026style=flat-square)](https://github.com/fluttercandies/flutter_qweather/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/fluttercandies/flutter_qweather?logo=github\u0026style=flat-square)](https://github.com/fluttercandies/flutter_qweather/network)\n\u003ca target=\"_blank\" href=\"https://jq.qq.com/?_wv=1027\u0026k=5bcc0gy\"\u003e\u003cimg border=\"0\" src=\"https://pub.idqqimg.com/wpa/images/group.png\" alt=\"FlutterCandies\" title=\"FlutterCandies\"\u003e\u003c/a\u003e\n\n## qweather_icons\n\n若需要图标支持，请查看 [qweather_icons](https://pub.dev/packages/qweather_icons) 包。\n\n## 已有功能\n  - [x] 城市信息查询\n  - [x] 热门城市查询\n  - [x] POI信息搜索\n  - [x] POI范围搜索\n  - [x] 实时天气查询\n  - [x] 逐天天气查询\n  - [x] 逐时天气查询\n  - [x] 中国地区未来2小时内每5分钟降水查询\n  - [x] 当天生活指数查询\n  - [x] 三天生活指数查询\n  - [x] 天气灾害预警\n  - [x] 灾害预警列表\n  - [x] 空气质量实况\n  - [x] 空气质量5天预报\n  - [x] 历史天气\n  - [x] 历史空气质量\n  - [x] 日出日落\n  - [x] 月升月落月相\n  - [x] 太阳高度角\n  - [x] 潮汐\n  - [x] 潮流\n  - [x] 台风列表\n  - [x] 台风实况和路径\n  - [x] 台风预报\n  - [ ] 其他功能(好像没有了)\n\n## 运行\n### 注册账号 并 get 秘钥\n首先你得有个和风天气的账号，[去吧骚年](https://id.qweather.com)。账号注册成功后在应用管理创建应用。注意包名别写错了哦。 \n\n#### 本项目 example 的包名  \n\n    Android：com.fluttercandies.flutter_qweather_example\n    ios: com.fluttercandies.flutterQweatherExample\n### 初始化插件\n```dart\n    QweatherConfig config = QweatherConfig(\n        publicIdForAndroid: 'HE210xxxxxxxxxxxxx',\n        keyForAndroid: '8453863xxxxxxxxxxxxxxxxxxxxxxxxxx',\n        publicIdForIos: 'HE210xxxxxxxxxxxxx',\n        keyForIos: 'aead742xxxxxxxxxxxxxxxxxxxxxxxxx',\n        biz: false,\n        debug: true);\n    await FlutterQweather.instance.init(config);\n```\n  location 为 LocationID 或者 经纬度;\n  LocationID 可通过geo 接口查询 或 查看[https://github.com/qwd/LocationList](https://github.com/qwd/LocationList)\n\n### 实时天气查询\n```dart\n  String location = '116.41,39.92'；\n  WeatherNow? _resp = await FlutterQweather.instance.getWeatherNow(location);\n```\n\n### 逐天天气查询\n\n```dart\n  String location = '116.41,39.92'；\n  WeatherDailyResp? _resp = await FlutterQweather.instance.getWeatherDaily(location, WeatherDailyForecast.WeatherForecast3Day);\n```\n\n### 逐时天气查询\n```dart\n  String location = '116.41,39.92'；\n  WeatherHourlyResp? _resp = await FlutterQweather.instance.getWeatherHourly(location, WeatherHourlyForecast.WeatherForecast24Hour);\n```\n\n### 中国地区未来2小时内每5分钟降水查询\n```dart\n  String location = '116.41,39.92'；\n  WeatherMinutelyResp? _resp = await FlutterQweather.instance.getWeatherMinuteLy(location);\n```\n### 其他接口....相信你能看懂怎么用\n\n## 贡献代码\n第一次写跟原生交互的插件，望各位大大多多指点，有写得不好的地方，请直接用 PR 来怼我。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutter_qweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercandies%2Fflutter_qweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutter_qweather/lists"}