{"id":17451113,"url":"https://github.com/janaka/desktop-clock","last_synced_at":"2026-05-01T12:31:38.268Z","repository":{"id":141895263,"uuid":"276630024","full_name":"janaka/desktop-clock","owner":"janaka","description":"A digital desktop clock built using an ESP32 microcontroller, MAX7219 LED matrix display, and Ardunio lang.","archived":false,"fork":false,"pushed_at":"2022-04-09T10:12:25.000Z","size":213,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-18T05:28:02.028Z","etag":null,"topics":["arduino","arduino-sketch","esp32","esp32-arduino","max7219"],"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/janaka.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":"2020-07-02T11:36:18.000Z","updated_at":"2023-11-03T23:15:07.000Z","dependencies_parsed_at":"2023-03-13T10:27:55.286Z","dependency_job_id":null,"html_url":"https://github.com/janaka/desktop-clock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janaka/desktop-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fdesktop-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fdesktop-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fdesktop-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fdesktop-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janaka","download_url":"https://codeload.github.com/janaka/desktop-clock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janaka%2Fdesktop-clock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["arduino","arduino-sketch","esp32","esp32-arduino","max7219"],"created_at":"2024-10-17T22:42:56.862Z","updated_at":"2026-05-01T12:31:38.216Z","avatar_url":"https://github.com/janaka.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Desktop Clock\n\nA desktop digital clock built using an ESP32 microcontroller, MAX7219 led matrix display, and Arduino lang.\n\n- Syncs time from an Internet time server (NTP) on boot-up\n- Syncs time once a day from Internet servers to prevent drift.\n- Connects to WiFi just before Internet time sync and then disconnects when done to conserve power\n- Automatically adjusts UK daylight saving\n\n## Design Principles\n\n- Optimise for power consumption.\n  - Minimise external service dependencies.\n  - JIT connect to WiFi for external calls. Disconnect immediately after.\n- Minimise third part library dependencies.\n\n## Dependencies\n\n- SPI.h\n- WiFi.h\n- LedMatrix.h [MAX7219 library](https://github.com/janaka/esp32-led-matrix). Forked from [@nhatuan84](https://github.com/nhatuan84/esp32-led-matrix) and modified to support the max7219 hardware variation I have.\n- time.h [ref](https://en.wikibooks.org/wiki/C_Programming/time.h), [source](https://github.com/esp8266/Arduino/blob/master/cores/esp8266/time.cpp) - standard C library.\n  - Not using TimeLib.h by Michael Margolis because we don't need all that functionality. [Github](https://www.pjrc.com/teensy/td_libs_Time.html), [Docs](https://www.pjrc.com/teensy/td_libs_Time.html)\n\n## Contributions\n\nNote: the following has only been tested on macOS.\n\n### Third-party libraries\n\n- Open Arduino IDE \u003e preferences, note the sketchbook location\n- `cd \u003csketchbook location\u003e/libraries`\n- `git clone https://github.com/janaka/esp32-led-matrix`\n\n### Tool Dependencies\n\nJust the Arduino IDE\n[Arduino IDE](https://www.arduino.cc/en/main/software#download)\n\nBoard manager URLs - one off config\n\n- `http://arduino.esp8266.com/stable/package_esp8266com_index.json`\n- `https://dl.espressif.com/dl/package_esp32_index.json`\n\nUsing VS Code\n\n[Arduino VS Code extension](https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.vscode-arduino)\nDepends on the Arduino IDE\n\n### Configure WiFi\n\n- Rename `1.wifi_config.tmp` to `1.wifi_config.ino`\n  - NOTE: the `1.wifi_config.ino` is in `.gitignore`. **DO NOT** check-in\n- Add your wifi details.\n\n### Uploading a sketch in VS Code\n\n- Serial port should show as `/dev/tty.SLAB_USBtoUART`.\n  - this needs the SLAB driver to be install\n- Upload from VS Code: `option + command + u`.\n\n### Debug\n\nLook at the serial monitor output for information using the Arduino IDE\n\n### Hardware wiring diagram\n\nTODO: diagram\n\n- CS  -\u003e GPIO 15\n- CLK -\u003e GPIO 14\n- DIN -\u003e GPIO 12\n\n## ESP-WROM-32 devkit pinout schema\n\nYou may have a different variation of the ESP32 dev board. Check before connecting.\n\n![ESP-WROM-32 devkit pinout schema](./docs/assets/esp-wrom-32_devkit_schema.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanaka%2Fdesktop-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanaka%2Fdesktop-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanaka%2Fdesktop-clock/lists"}