{"id":18070242,"url":"https://github.com/sameer/eink-clock","last_synced_at":"2026-04-28T18:35:46.103Z","repository":{"id":91229836,"uuid":"270092433","full_name":"sameer/eink-clock","owner":"sameer","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-18T17:00:22.000Z","size":25320,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-04T20:11:21.320Z","etag":null,"topics":["clock","eink-clock","kindle","kindle-networking","raspberry-pi","raspberry-pi-zero-w","rust","ssh"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sameer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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-06-06T20:12:19.000Z","updated_at":"2025-04-26T00:29:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdd3030c-9ac6-4b33-b2f2-44876871e801","html_url":"https://github.com/sameer/eink-clock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sameer/eink-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Feink-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Feink-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Feink-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Feink-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameer","download_url":"https://codeload.github.com/sameer/eink-clock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Feink-clock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32394467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"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":["clock","eink-clock","kindle","kindle-networking","raspberry-pi","raspberry-pi-zero-w","rust","ssh"],"created_at":"2024-10-31T08:24:35.361Z","updated_at":"2026-04-28T18:35:46.086Z","avatar_url":"https://github.com/sameer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eink-clock\n\nA clock for e-ink displays like that in the [Kindle DX Graphite](https://en.wikipedia.org/wiki/Amazon_Kindle#Kindle_DX_Graphite).\n\n![Demo of display](demo.png)\n\n## Setup\n\n### Physical requirements\n\n* Raspberry Pi Zero W or other device of your choice with networking capabilities\n* [jailbroken Kindle](https://wiki.mobileread.com/wiki/Kindle_Hacks_Information#Jail_break_JB) with usbnetwork\n\n### Software\n\n#### Prerequisites\n\n* [Rust Language](https://www.rust-lang.org/learn/get-started) and [Cargo package manager](https://doc.rust-lang.org/cargo/index.html)\n\n#### Building\n\n##### Install directly on an ARM device (easier but takes longer)\n\nFirst get the necessary dependencies\n\n###### ArchLinux\n```bash\npacman -S cairo openssl libusb-compat zlib\n```\n\nNow build.\n```bash\n# May take a long time\ncargo build --release\n```\n\n##### Build on your computer (cross-compile, harder but takes less time)\n\n###### ArchLinux\n\nGet the cross-compile toolchain: [arm-linux-gnueabihf-gcc](https://aur.archlinux.org/packages/arm-linux-gnueabihf-gcc/).\nIf you have yay or other makepkg utilities, you will have to install it manually.\n\nBuild\n```bash\nPKG_CONFIG_SYSROOT_DIR=/usr/arm-linux-gnueabihf/ PKG_CONFIG_ALLOW_CROSS=1 cargo build --release --target arm-unknown-linux-gnueabihf\n```\n\n#### Configuration\n\nCheck the parameters in `src/main.rs` and tailor them to your situation. Reach out to me if you have questions.\n\n#### Deploying\n\nIf you cross-compiled, transfer the project folder to the device.\n\n##### Set up Kindle networking\n\n`eink-clock` will automatically connect to a Kindle that has usbnetwork enabled and shows up as usb0 in `ip addr`.\n\nIf you are connecting multiple Kindles, you'll need to change the usbnetwork config to assign unique MAC addresses and unique IP addresses.\n\nOn the Kindle, make sure you've enabled auto-start for usbnetwork just in case the Kindle loses power:\n\n```bash\nssh root@192.168.2.2\nls /mnt/us/usbnet/\n# If there is a DISABLED_auto file, rename it to auto\n# Beware that this means networking will always be enabled at startup\n# You cannot connect the Kindle as a USB storage device again until you rename auto to DISABLED_auto\nmv /mnt/us/usbnet/DISABLED_auto /mnt/us/usbnet/auto\n```\n\n##### Set up systemd service file\n\nThis needed to run eink-clock at startup\n\n```bash\nln -s /root/eink-clock/eink-clock.service /etc/systemd/system/\nsystemctl enable eink-clock.service\nsystemctl start eink-clock.service\n```\n\nAnd that's it, the clock should now be running! Feel free to [contact me](https://purisa.me/about/) if you have problems.\n\n## Special Thanks\n\n* [David Allen Sibley](https://en.wikipedia.org/wiki/David_Allen_Sibley) for his beautiful drawings of North American birds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameer%2Feink-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameer%2Feink-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameer%2Feink-clock/lists"}