{"id":21577835,"url":"https://github.com/foxzool/qweather-sdk","last_synced_at":"2026-01-04T23:42:25.408Z","repository":{"id":246780978,"uuid":"822373275","full_name":"foxzool/qweather-sdk","owner":"foxzool","description":"和风天气API SDK","archived":false,"fork":false,"pushed_at":"2024-09-20T06:16:23.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-31T11:52:21.406Z","etag":null,"topics":["api","rust","weather-api"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/foxzool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2024-07-01T03:01:43.000Z","updated_at":"2024-09-20T06:16:28.000Z","dependencies_parsed_at":"2024-09-18T08:06:18.607Z","dependency_job_id":"a959ca70-b331-4bc7-978c-b682dd119ecf","html_url":"https://github.com/foxzool/qweather-sdk","commit_stats":null,"previous_names":["foxzool/qweather-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fqweather-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fqweather-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fqweather-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxzool%2Fqweather-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxzool","download_url":"https://codeload.github.com/foxzool/qweather-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226165762,"owners_count":17583856,"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":["api","rust","weather-api"],"created_at":"2024-11-24T13:08:46.482Z","updated_at":"2026-01-04T23:42:25.373Z","avatar_url":"https://github.com/foxzool.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/qweather-sdk)](https://crates.io/crates/qweather-sdk)\n[![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](https://github.com/Seldom-SE/seldom_pixel#license)\n[![crates.io](https://img.shields.io/crates/d/qweather-sdk)](https://crates.io/crates/qweather-sdk)\n[![CI](https://github.com/foxzool/qweather-sdk/workflows/CI/badge.svg)](https://github.com/foxzool/qweather-sdk/actions)\n[![Documentation](https://docs.rs/qweather-sdk/badge.svg)](https://docs.rs/qweather-sdk)\n\n# 和风天气API SDK\n\n## Example\n\n在项目下创建`.env`文件，内容如下：\n\n```env\nQWEATHER_ID=your_id\nQWEATHER_KEY=your_key \n```\n\n```no_run\nuse std::env;\n\nuse dotenvy::dotenv;\n\nuse qweather_sdk::client::{ClientConfig, QWeatherClient};\n\n#[tokio::main]\nasync fn main() {\n    dotenv().expect(\".env file not found\");\n    env_logger::init();\n    let id = env::var(\"QWEATHER_ID\").unwrap();\n    let key = env::var(\"QWEATHER_KEY\").unwrap();\n    let client_config = ClientConfig::new(id, key);\n    let client = QWeatherClient::with_config(client_config);\n\n    let resp = client.weather_now(\"101010100\").await.unwrap();\n    println!(\"{:#?}\", resp);\n}\n\n```\n\n## 已完成的API\n\n- GeoAPI\n    - [x] 城市搜索\n    - [x] 热门城市查询\n    - [x] POI搜索\n    - [x] POI范围搜索\n\n- 城市天气\n    - [x] 实时天气\n    - [x] 每日天气预报\n    - [x] 逐小时天气预报\n- 分钟预报\n    - [x] 分钟级降水\n- 格点天气\n    - [x] 格点实时天气\n    - [x] 格点每日天气预报\n    - [x] 格点逐小时天气预报\n- 预警\n    - [x] 天气灾害预警\n    - [x] 天气预警城市列表\n- 天气指数\n    - [x] 天气指数预报\n- 空气质量(beta)\n    - 实时空气质量(beta)\n    - 监测站数据(beta)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxzool%2Fqweather-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxzool%2Fqweather-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxzool%2Fqweather-sdk/lists"}