{"id":22740241,"url":"https://github.com/a-type/alarm-clock","last_synced_at":"2025-03-30T03:41:29.912Z","repository":{"id":40672797,"uuid":"273786876","full_name":"a-type/alarm-clock","owner":"a-type","description":"Making a personal smart alarm clock","archived":false,"fork":false,"pushed_at":"2023-03-06T07:45:16.000Z","size":3403,"stargazers_count":1,"open_issues_count":20,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T06:12:25.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-type.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}},"created_at":"2020-06-20T21:28:03.000Z","updated_at":"2022-05-11T22:55:06.000Z","dependencies_parsed_at":"2023-02-06T08:45:50.175Z","dependency_job_id":null,"html_url":"https://github.com/a-type/alarm-clock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Falarm-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Falarm-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Falarm-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-type%2Falarm-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-type","download_url":"https://codeload.github.com/a-type/alarm-clock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246273519,"owners_count":20750904,"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":[],"created_at":"2024-12-10T23:07:58.654Z","updated_at":"2025-03-30T03:41:29.885Z","avatar_url":"https://github.com/a-type.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alarm-clock\n\n## Device Setup\n\nI'm using a Pi Zero W.\n\nSetup SSH - https://desertbot.io/blog/headless-pi-zero-w-wifi-setup-windows\n\nVS Code over SSH - https://github.com/SchoofsKelvin/vscode-sshfs\n\nInstalling Node - https://www.thepolyglotdeveloper.com/2018/03/install-nodejs-raspberry-pi-zero-w-nodesource/\n\n```\n\u003e curl -o node-v10.9.0-linux-armv6l.tar.gz https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-armv6l.tar.gz\n\n\u003e tar -xzf node-v10.9.0-linux-armv6l.tar.gz\n\n\u003e sudo cp -r node-v10.9.0-linux-armv6l/* /usr/local\n```\n\nSpeaker setup: https://www.lucadentella.it/en/2017/04/26/raspberry-pi-zero-audio-output-via-i2s/\n\nAlarm service definition:\n\n```\n[Unit]\nDescription=Alarm Clock\nAfter=network.target\nStartLimitIntervalSec=0\n\n[Service]\nType=simple\nRestart=always\nRestartSec=3\nExecStart=/usr/bin/env node /home/pi/lights/server.js\n\n[Install]\nWantedBy=multi-user.target\n```\n\n`/home/pi/lights` is wherever you cloned this repo. `lights` is just a holdover on my device from when I was experimenting with the display.\n\n### Wiring\n\n![Wiring diagram](./alarm-clock_bb.png)\n\n1. Orange - Rotary Encoder SW\n2. Yellow - Rotary Encoder DT\n3. Green - Rotary Encoder CLK\n4. White - Kello Display CS\n5. Brown - Kello Display WR\n6. Cyan - Kello Display DATA\n7. Blue - I2S LRC\n8. Purple - I2S BCLK\n9. Pink - I2S DIN\n10. Red - 5v + (Except on Kello ribbon, which is colored as in real life)\n11. Black - GND (Except on Kello ribbon, which is colored as in real life)\n12. Grey - 3.5v +\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-type%2Falarm-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-type%2Falarm-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-type%2Falarm-clock/lists"}