{"id":21056105,"url":"https://github.com/217heidai/astronautsclock","last_synced_at":"2026-03-08T04:31:31.347Z","repository":{"id":122365510,"uuid":"409807024","full_name":"217heidai/AstronautsClock","owner":"217heidai","description":"基于 ESP8266 及 1.3 寸 TFT 实现的华为太空人时钟","archived":false,"fork":false,"pushed_at":"2025-05-06T01:53:28.000Z","size":5528,"stargazers_count":19,"open_issues_count":0,"forks_count":8,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-09T11:51:01.351Z","etag":null,"topics":["clock","esp8266","esp8266-arduino","tft","tft-display"],"latest_commit_sha":null,"homepage":"","language":"C","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/217heidai.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":"2021-09-24T02:30:41.000Z","updated_at":"2025-09-20T17:55:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"19f971ee-ddf2-45ed-85c5-f9bd719b693b","html_url":"https://github.com/217heidai/AstronautsClock","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/217heidai/AstronautsClock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/217heidai%2FAstronautsClock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/217heidai%2FAstronautsClock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/217heidai%2FAstronautsClock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/217heidai%2FAstronautsClock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/217heidai","download_url":"https://codeload.github.com/217heidai/AstronautsClock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/217heidai%2FAstronautsClock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30245214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clock","esp8266","esp8266-arduino","tft","tft-display"],"created_at":"2024-11-19T16:48:54.620Z","updated_at":"2026-03-08T04:31:31.339Z","avatar_url":"https://github.com/217heidai.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AstronautsClock\n基于 ESP8266 及 1.3 寸 TFT 实现的华为太空人时钟。参考了 d88880(抖音号) 的简易太空人时钟代码。\n\n## 展示\n![AstronautsClock](doc/AstronautsClock.jpeg)\n\n## 功能\n1. 时间、日期、星期，每 1 小时校准一次\n2. 实时天气信息：天气、温度、湿度、空气质量，每半小时刷新一次\n3. 整点蜂鸣报时\n4. 整点更换 gif（龙猫跳绳、龙猫跳舞、太空人）\n\n## 材料清单\n1. ESP8266 开发板\n2. 中景园 1.3 寸 TFT，分辨率 240 x 240\n3. 蜂鸣器\n4. 微积木\n\n## 电路图\n![tft](doc/TFT.png)\n\n## 代码编译说明\n### 依赖库\n1. ArduinoJson\n2. TimeLib\n3. TFT_eSPI\n4. TJpg_Decoder\n5. Buzzer\n\n### 配置修改\n1. 修改 TFT_eSPI 库管脚定义，参考 [User_Setup.h.backup](https://raw.githubusercontent.com/217heidai/AstronautsClock/main/src/User_Setup.h.backup)：\n```C\n#define TFT_MISO 14\n#define TFT_MOSI 13\n#define TFT_CS   -1  // Chip select control pin D8\n#define TFT_DC    5  // Data Command control pin\n#define TFT_RST   4  // Reset pin (could connect to NodeMCU RST, see next line)\n#define TFT_BL   -1  // LED back-light (only for ST7789 with backlight control pin)\n```\n2. `CLOCK.ino`中修改 WiFi 信息，设置 `ssid`、`password`\n3. `CLOCK.ino`中修改天气城市代码，设置 `cityCode`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F217heidai%2Fastronautsclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F217heidai%2Fastronautsclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F217heidai%2Fastronautsclock/lists"}