{"id":50137966,"url":"https://github.com/pixeledcode/pi-ink","last_synced_at":"2026-05-23T23:10:00.917Z","repository":{"id":359110986,"uuid":"1233673624","full_name":"PixeledCode/pi-ink","owner":"PixeledCode","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-20T16:00:07.000Z","size":150,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T16:13:12.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/PixeledCode.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T08:05:44.000Z","updated_at":"2026-05-20T16:00:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/PixeledCode/pi-ink","commit_stats":null,"previous_names":["pixeledcode/pi-ink"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PixeledCode/pi-ink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixeledCode%2Fpi-ink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixeledCode%2Fpi-ink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixeledCode%2Fpi-ink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixeledCode%2Fpi-ink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PixeledCode","download_url":"https://codeload.github.com/PixeledCode/pi-ink/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixeledCode%2Fpi-ink/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33415088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"ssl_error","status_checked_at":"2026-05-23T22:14:43.778Z","response_time":53,"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":[],"created_at":"2026-05-23T23:09:47.589Z","updated_at":"2026-05-23T23:10:00.911Z","avatar_url":"https://github.com/PixeledCode.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plink\n\nA mobile-first PWA companion app for a Raspberry Pi Zero 2W driving an [Inky Impression 7.3\"](https://shop.pimoroni.com/products/inky-impression-7-3) e-ink display.\n\nSend a moment to your plink.\n\n## Stack\n\n- **Backend** — Flask (Python), runs on the Pi at port 80\n- **Frontend** — React 18 + Babel standalone (no build step), single `main.html` Jinja2 template\n- **Display** — Inky Impression 7.3\" Spectra 6 (E673 driver), 800×480, 7-colour e-ink\n\n## Features\n\n- Upload photos from your phone\n- Crop to the display's aspect ratio before sending\n- Photo queue with configurable auto-rotate interval; replace queue items in-place\n- Palette themes: rose / ash / sun / ink (dark)\n- Portrait \u0026 landscape orientation support\n- PWA — add to home screen on iOS/Android, loads offline (cached shell via service worker)\n- Web Share Target — share photos directly from the iOS/Android Photos app\n- Haptic feedback on iOS 18+ and Android\n- Swipe-to-dismiss sheets with spring animations\n- Device controls: rotate display, clear ghosting, reboot, shutdown\n- Hotspot/AP mode — Pi broadcasts `plink-setup` Wi-Fi for initial provisioning\n- Online/offline status dot — auto-detects connectivity, shows local URL hint when on Tailscale and Pi is unreachable\n\n## Hardware\n\n- Raspberry Pi Zero 2W\n- Inky Impression 7.3\" e-ink display (Spectra 6 / E673 controller)\n- microSD card (8GB+)\n\n## New Frame Setup\n\nFrom unboxing to a working frame:\n\n### 1. Flash the microSD card\n\nUse [Raspberry Pi Imager](https://www.raspberrypi.com/software/). **Important: use Raspberry Pi OS (Bookworm) 32-bit** — the 64-bit version has GPIO compatibility issues with the Inky library.\n\nIn the imager's advanced settings (gear icon):\n- Hostname: `pi`\n- Set a username and password\n- WiFi: your home network\n- Enable SSH\n\n### 2. Boot the Pi\n\nInsert the card into the Pi Zero 2W, connect power, and wait ~60 seconds for first boot.\n\n### 3. Run setup\n\n**One-line setup (recommended):**\n\n```bash\ncurl -sL https://raw.githubusercontent.com/PixeledCode/pi-ink/main/plink.sh | bash\n```\n\nThis will prompt for your Pi's password (the one you set during flashing). It connects via `pi.local` (mDNS/Bonjour — works out of the box on macOS/iOS), then handles everything: dependency install, display driver patch, static IP setup, service installation, and reboot. Stale SSH host keys from reflashing are cleared automatically.\n\nAdd `--verbose` or `-v` to see full command output instead of the default spinner:\n\n```bash\ncurl -sL https://raw.githubusercontent.com/PixeledCode/pi-ink/main/plink.sh | bash -s -- --verbose\n```\n\n**Manual setup (alternative):**\n\n```bash\ngit clone https://github.com/PixeledCode/pi-ink.git\ncd pi-ink\ncp .env.example .env\n# Edit .env — PI_PASS must match the password from step 1\nbash pi-scripts/setup-remote.sh\n```\n\nThe script will:\n- Wait for the Pi to come online\n- Set static IP `192.168.1.50`\n- Enable SPI + add `dtoverlay=spi0-0cs` (required for the display)\n- Disable WiFi power save\n- Install all Python and system dependencies\n- Deploy the webserver and frontend\n- Install systemd services (`piink`, `plink-buttons`, `plink-boot-check`)\n- Patch the Inky library for GPIO/SPI compatibility\n- Install Avahi mDNS service\n- Reboot the Pi (required for boot config changes)\n- Start the frame server\n\n### 4. Done\n\nThe frame is live at `http://pi.local` or `http://192.168.1.50`. Open it on your phone and upload a photo.\n\n## Deploying changes\n\nAfter the initial setup, push code changes with:\n\n```bash\n./push.sh\n```\n\nCopies `webserver_new.py` and `main.html` to the Pi and restarts the service.\n\n## Resetting the Pi\n\nTo clean the Pi back to a pre-install state (removes packages, services, configs):\n\n```bash\nbash pi-scripts/reset.sh\n```\n\nAdd `--verbose` or `-v` to see full command output instead of the default spinner. Then re-run `plink.sh` for a fresh install.\n\n## Display Driver Notes\n\nThe Inky Impression 7.3\" uses the **Spectra 6 (E673)** controller, identified via EEPROM. The codebase uses `inky.inky_e673` (not `inky_ac073tc1a`).\n\n### Critical boot config\n\nThe following must be present in `/boot/firmware/config.txt`:\n\n```\ndtparam=spi=on\ndtoverlay=spi0-0cs\n```\n\nThe `spi0-0cs` overlay disables the SPI driver's chip-select claim on GPIO8, which conflicts with the Inky library's gpiod pin requests. Without it, `show()` fails with \"Chip Select: (line 8, GPIO8) currently claimed by spi0 CS0\".\n\n### Inky library patch\n\nThe `pi-scripts/patch_inky.py` script patches the installed Inky library (v2.x) to:\n1. Skip the GPIO pin availability check (fails on Bookworm)\n2. Not request the CS pin via gpiod (spidev owns it)\n3. Not manually toggle CS in `_spi_write` (spidev handles it)\n\nThis runs automatically during `setup-remote.sh`.\n\n## Design\n\nCream paper background, muted rose accent, 1px hairlines, halftone dot textures, Instrument Serif + Geist typefaces.\n\n## Based on\n\n[PiInk](https://github.com/tlstommy/PiInk) by [@tlstommy](https://github.com/tlstommy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixeledcode%2Fpi-ink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixeledcode%2Fpi-ink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixeledcode%2Fpi-ink/lists"}