{"id":21288069,"url":"https://github.com/iml885203/7-segment-clock","last_synced_at":"2026-04-25T23:34:40.592Z","repository":{"id":77545377,"uuid":"352121093","full_name":"iml885203/7-Segment-Clock","owner":"iml885203","description":"7 segment clock with LED's","archived":false,"fork":false,"pushed_at":"2021-06-21T03:28:24.000Z","size":11893,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T19:22:12.287Z","etag":null,"topics":["7-segment","arduino","clock","eeprom","homekit","spiffs"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iml885203.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-27T16:27:23.000Z","updated_at":"2024-05-15T01:23:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b8c7238-e76c-4f44-bd3f-b4aef5e3c0dc","html_url":"https://github.com/iml885203/7-Segment-Clock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iml885203/7-Segment-Clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iml885203%2F7-Segment-Clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iml885203%2F7-Segment-Clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iml885203%2F7-Segment-Clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iml885203%2F7-Segment-Clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iml885203","download_url":"https://codeload.github.com/iml885203/7-Segment-Clock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iml885203%2F7-Segment-Clock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32280976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["7-segment","arduino","clock","eeprom","homekit","spiffs"],"created_at":"2024-11-21T12:18:40.010Z","updated_at":"2026-04-25T23:34:40.576Z","avatar_url":"https://github.com/iml885203.png","language":"C++","funding_links":["https://www.buymeacoffee.com/dodoro"],"categories":[],"sub_categories":[],"readme":"# 7-Segment-Clock\n7 segment clock with LED's\n\n使用ESP8266與LED燈條自製的NTP數位時鐘，可透過網頁控制亮度與顏色\n\n![image](https://github.com/iml885203/7-Segment-Clock/blob/master/Screenshot/banner.jpg?raw=true)\n\n# 硬體\n\n|硬體|x|\n|:-:|:-:|\n|ESP8266 WeMos Mini D1|1x|\n|Micro USB cable|1x|\n|WS2812B LED Strip 60 LED's per meter\t|1x|\n\n![image](https://github.com/iml885203/7-Segment-Clock/blob/master/Screenshot/hardware.jpg?raw=true)\n\n# 安裝\n使用[Arduino IDE](https://www.arduino.cc/en/software)\n\n先上傳SPIFFS再刷.ino檔案\n\n第一次請把`reset_eeprom`設為true，初始化eeprom\n\n根據妳的LED燈條擺放順序調整.ino裡面的設定\n\n# 設定\n\n## 初次設定\n第一次啟動後會有一個wifi為7SegmentClock，連線後打開瀏覽器連到4.3.2.1\n\n透過網頁設定時鐘wifi，更改後裝置會重啟連上網路並顯示時間\n\n之後每5分鐘會自動同步時間\n\n![image](https://github.com/iml885203/7-Segment-Clock/blob/master/Screenshot/webui.jpg?raw=true)\n\n## 自動化\n透過curl可以控制時鐘的顏色與亮度\n\n```bash\ncurl -X POST --data \"led_brightness=10\u0026led_color=#ffffaa\" http://192.168.0.0/setting\n```\n\n搭配HomeAssistant實作成一個按鈕\n\n打開為正常亮度與顏色，關閉則是夜燈模式\n\n```yaml\nswitch:\n  - platform: command_line\n    switches:\n      led_clock:\n        command_on: '/usr/bin/curl -X POST --data \"led_brightness=20\u0026led_color=#ffffaa\" http://192.168.0.0/setting'\n        command_off: '/usr/bin/curl -X POST --data \"led_brightness=5\u0026led_color=#ffff1e\" http://192.168.0.0/setting'\n        friendly_name: 數位時鐘\n```\n\n由於我每天會使用Homekit的`晚安`情境，所以透過HomeAssistant串接到Homekit上\n\n|把`數位時鐘`加進去晚安情境|並且增加一個自動化，於早上打開|\n|:-:|:-:|\n|\u003cimg src=\"https://github.com/iml885203/7-Segment-Clock/blob/master/Screenshot/homekit1.jpg?raw=true\" width=\"250px\"\u003e|\u003cimg src=\"https://github.com/iml885203/7-Segment-Clock/blob/master/Screenshot/homekit2.jpg?raw=true\" width=\"250px\"\u003e|\n\n\u003cp align=\"center\"\u003e\n\u003cbr\u003e\n\u003ca href=\"https://www.buymeacoffee.com/dodoro\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://github.com/appcraftstudio/buymeacoffee/raw/master/Images/snapshot-bmc-button.png\" width=\"300\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiml885203%2F7-segment-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiml885203%2F7-segment-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiml885203%2F7-segment-clock/lists"}