{"id":21844510,"url":"https://github.com/pudding0503/cityweather","last_synced_at":"2025-03-21T16:24:37.028Z","repository":{"id":46969641,"uuid":"151573598","full_name":"pudding0503/CityWeather","owner":"pudding0503","description":"一个简约的风格呈现世界各大城市天气的小程序","archived":false,"fork":false,"pushed_at":"2022-03-19T13:42:15.000Z","size":7214,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T11:43:31.979Z","etag":null,"topics":["miniprogram","qq","qq-miniprogram","weather","wechat","wechat-mini-program"],"latest_commit_sha":null,"homepage":"https://pudding.nousbuild.com/get-cityweather/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pudding0503.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}},"created_at":"2018-10-04T13:11:29.000Z","updated_at":"2024-08-02T13:51:49.000Z","dependencies_parsed_at":"2022-07-22T10:32:20.466Z","dependency_job_id":null,"html_url":"https://github.com/pudding0503/CityWeather","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2FCityWeather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2FCityWeather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2FCityWeather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pudding0503%2FCityWeather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pudding0503","download_url":"https://codeload.github.com/pudding0503/CityWeather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244827053,"owners_count":20516873,"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":["miniprogram","qq","qq-miniprogram","weather","wechat","wechat-mini-program"],"created_at":"2024-11-27T22:23:09.700Z","updated_at":"2025-03-21T16:24:36.997Z","avatar_url":"https://github.com/pudding0503.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg src=\"banner-1.jpg\" align=\"center\" alt=\"banner\" /\u003e\n \u003ch2 align=\"center\"\u003e城市天气小程序\u003c/h2\u003e\n \u003cp align=\"center\"\u003e一个简约的风格呈现世界各大城市天气的小程序\u003c/p\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.nousbuild.com/get-cityweather/\"\u003e\n  \t\u003cimg alt=\"Minipp\" src=\"https://img.shields.io/badge/Get-Minipp-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/github/v/release/pudding0503/CityWeather?label=version\" /\u003e\n  \u003ca href=\"https://github.com/pudding0503/CityWeather/blob/master/LICENSE\"\u003e\n  \t\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/pudding0503/CityWeather.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pudding0503/CityWeather/issues\"\u003e\n  \t\u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/pudding0503/CityWeather?color=F48D73\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n### 1. 城市天气 (CityWeather)\n\n一个简约风格的世界主要城市的天气查询小程序。（由于小程序的特性，存在一些关键机密信息，无法开源完整源代码，故将小程序移除了部分依赖于账号的功能，仅作演示）\n\n### 2. 需求\n\n+ 小程序云开发\n+ 对象存储\n+ 和风天气 API\n\n### 3. 截图\n\n![City Weather Banner](banner-2.jpg)\n\n### 4. 如何使用 ?\n\n1. 获取某个分支的代码文件到本地，保留根文件夹 `CityWeather`；\n2. 打开微信开发工具，点击 `+` 添加跟文件夹于小程序中；\n3. 本代码限制了 AppID 的值，可在项目中修改 `project.config.json` 文件添加 AppID；\n4. 本例天气API使用有和风天气提供的免费API，每天免费1000次请求，如遇到获取 `json` 数据错误，请次日再来尝试，亦或是使用自己的天气API；\n5. 本例中位置API使用腾讯位置服务SDK，可在 [此处](https://lbs.qq.com/) 注册。\n\n### 5. 特点\n\n当你运行此小程序时，你能够获得以下特性：\n\n- 略去配置城市步骤，直接获取地址查看你所在城市的天气状况；\n- 能够获取当前的风向和风速；\n- 能够查看未来24小时的天气及气温变化；\n- 能够查看未来7天的天气变化及气温变化。\n\n### 6. 历史版本\n\n#### 6.1 V2 版本\n\n`v2.2.3` 修改提示素材和入口。QQ 小程序强制要求改名，改为 `布丁天气`。\n\n`v2.2.2` 更新 CDN 预加载功能，修复个人中心页面顶部状态栏颜色。\n\n`v2.2.1` 更新天气 API 地址。\n\n`v2.2.0` 增加个人中心，教程提示，城市生活指数等新功能。由于 QQ 小程序强制要求改名，故封存这个版本为改名前最终版本。\n\n`v2.1.2` 增加振动反馈效果。\n\n`v2.1.1` 默认城市改为北京市，QQ小程序上线云开发，版本号为 `v2.1.0` 预留一个 debug 版本号。\n\n`v2.1.0` 优化关于页面、反馈页面，新增主题更换。QQ小程序发布。\n\n`v2.0.2` 反馈页面现在可以进行回复消息查看。\n\n`v2.0.0` 重新设计了部分页面。\n\n#### 6.2 V1 版本\n\n`v1.2.3` 包括 `v1.2.2`全部功能，微调UI及更改7天天气预报页面背景颜色。\n\n`v1.2.2` 包括 `v1.2.0`全部功能，优化更新提示，新增降水概率和相对湿度数据。\n\n`v1.2.0` 包括 `v1.1.1`全部功能，并适配最新小程序规范，重新设计部分天气背景。\n\n`v1.1.1` 包括 `v1.0.0` 全部功能，并增加当前天气分享以及7天天气分享，微调UI。\n\n`v1.0.0` 包括当前天气、24小时预报以及7天天气预报功能。 \n\n### 7. 版权\n\n[GPL-3.0 License](https://github.com/pudding0503/CityWeather/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpudding0503%2Fcityweather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpudding0503%2Fcityweather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpudding0503%2Fcityweather/lists"}