{"id":16655667,"url":"https://github.com/mtrudel/desk_clock","last_synced_at":"2026-03-07T03:02:13.744Z","repository":{"id":66311746,"uuid":"206700299","full_name":"mtrudel/desk_clock","owner":"mtrudel","description":"A Nerves-powered, NTP-synchronized, SPI-connected, OLED-outputting desktop clock","archived":false,"fork":false,"pushed_at":"2021-11-13T14:58:10.000Z","size":15,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T18:13:57.882Z","etag":null,"topics":["clock","elixir-lang","nerves-project","oled-display","rotary-encoder","spi","ssd1322"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/mtrudel.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":"2019-09-06T02:54:13.000Z","updated_at":"2025-03-04T18:12:36.000Z","dependencies_parsed_at":"2023-06-26T07:30:58.612Z","dependency_job_id":null,"html_url":"https://github.com/mtrudel/desk_clock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtrudel/desk_clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fdesk_clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fdesk_clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fdesk_clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fdesk_clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtrudel","download_url":"https://codeload.github.com/mtrudel/desk_clock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrudel%2Fdesk_clock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30206339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"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","elixir-lang","nerves-project","oled-display","rotary-encoder","spi","ssd1322"],"created_at":"2024-10-12T09:53:43.163Z","updated_at":"2026-03-07T03:02:13.727Z","avatar_url":"https://github.com/mtrudel.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Desk Clock\n\nA Nerves-powered, NTP-synchronized, SPI-connected, OLED-outputting desktop clock, running on a Raspberry Pi.\nIt was built as a demo for a [talk\ngiven](https://github.com/mtrudel/talks/tree/master/2020-07-Toronto-Elixir-Night-Nerves.pdf) at the July 2020 Toronto Elixir Meetup, but is also\nsuitable for actual use.\n\nTime is synchronized via NTP and display updates are adjusted to optimize the timeliness of the displayed time. In\ntypical operation, the displayed time should be no more than ~5ms out of sync with the device's NTP dervied time.\n\nIt looks like this:\n\n![desk_clock](https://user-images.githubusercontent.com/79646/89941198-af68d480-dbe8-11ea-9055-fb3ec7321884.png)\n\n## Building Hardware\n\nDesk Clock runs on a Raspberry Pi and uses the following peripherals:\n\n* An SSD1322 display configured and connected as suggested in the [SSD1322 library](https://github.com/mtrudel/ssd1322)\n* A PEC11-style rotary encoder connected as per the\n  [docs](https://github.com/mtrudel/desk_clock/blob/master/lib/desk_clock/rotary_encoder.ex#L11). See [here](https://github.com/mtrudel/rotary_breakout) for an easy to use breakout board suitable to purpose.\n\n## Building the Application\n\nDesk Clock is a standard nerves application, so it's best to consult their [excellent\ndocs](https://hexdocs.pm/nerves/getting-started.html) for the most up-to-date guide.\n\n## Setting up Networking\n\nDesk Clock uses VintageNet to configure networking. In the common case where you want to set up wifi, you'll want \nto ssh into the device and run a `VintageNet.configure` command as described in their\n[README](https://github.com/nerves-networking/vintage_net_wifi). Settings made in such a way will be persistent.\n\n## User Interface\n\nThe rotary encoder attached to Desk Clock performs the following tasks:\n\n* When rotated, it cycles the top time display through the available timezones  \n* When rotated while depressed, it cycles the bottom time display through the available timezones  \n* When tapped, it toggles the display on and off\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrudel%2Fdesk_clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtrudel%2Fdesk_clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrudel%2Fdesk_clock/lists"}