[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109712":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":14,"stars30d":14,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":9,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},109712,"kitchen-frame","huntsyea\u002Fkitchen-frame","huntsyea","A calm family dashboard for a cheap Android photo frame: calendar, weather, Todoist, recipes, music and agent messages on a Cloudflare Worker. Inspired by Wes Bos's photo-frame-dashboard.",null,"JavaScript",52,10,51,1,0,43.72,"MIT License",false,"main",[21,22,23,24,25,26,27,28],"android-kiosk","cloudflare-workers","durable-objects","family-dashboard","home-assistant","photo-frame","svelte","todoist","2026-11-22 16:37:02","2026-11-21 05:49:10","# Photo Frame Dashboard\n\nA calm family dashboard for a cheap Android photo frame on the kitchen wall: clock, weather, the\nfamily calendar, Todoist tasks and groceries, recipes, music controls, messages from AI agents,\nand a photo slideshow when nobody's looking. It runs on a ~$50 frame and a Cloudflare Worker.\n\n![Home screen](docs\u002Fimages\u002Fhome-light.jpg)\n\n> **Inspired by Wes Bos.** The idea and the overall approach come from Wes Bos's video\n> [Taking over Android photo frames](https:\u002F\u002Fyoutu.be\u002FZLycoUMltNI) and his repository\n> [wesbos\u002Fphoto-frame-dashboard](https:\u002F\u002Fgithub.com\u002Fwesbos\u002Fphoto-frame-dashboard), which also\n> has the device guides for rooting many frame models. This is an independent implementation;\n> see [CREDITS.md](CREDITS.md).\n\n| Calendar (dark, after sunset) | Tasks board | Recipes |\n| --- | --- | --- |\n| ![Month view](docs\u002Fimages\u002Fcalendar-dark.jpg) | ![Tasks](docs\u002Fimages\u002Ftasks-light.jpg) | ![Recipes](docs\u002Fimages\u002Frecipes-light.jpg) |\n\nScreenshots use the built-in demo mode, so all data shown is invented.\n\n## Status\n\nRunning on a Pastigio FRAME156 (Android 8.1, WebView 106, 1920×1080) in the kitchen. The device\nrecord, every change made to it and how to undo each one are in [docs\u002Fframe.md](docs\u002Fframe.md).\nThe developer wiki is in [openwiki\u002F](openwiki\u002Fquickstart.md).\n\n## Layout\n\n- `dashboard\u002Fsrc\u002F`: the web app (Svelte 5, no SvelteKit). Tabs: Home (clock, weather, today's\n  events, to-dos), Calendar (week and month), Groceries and Tasks (Todoist), Recipes (TheMealDB\n  plus saved recipes) and Music (Home Assistant). After 5 minutes untouched\n  it switches to an idle clock screen. The frame loads it full screen in a kiosk WebView.\n- `dashboard\u002Fworker\u002F`: the Cloudflare Worker that serves the app and its API: merged calendar,\n  weather (Open-Meteo), Todoist lists, the iCloud shared album (photos proxied and cached in KV),\n  recipes (TheMealDB plus saved ones) and agent messages (a Durable Object that pushes them to the\n  frame over a WebSocket). Tokens and links for those services stay on the server.\n- `docs\u002Fresearch.md`: what we learned from the upstream repo and the video, plus performance constraints.\n- `kiosk\u002F`: the Android app the frame boots into (one full-screen WebView). `kiosk\u002Fbuild.sh` builds it\n  without Gradle; see `docs\u002Fframe.md` for the install and the changes made to our frame.\n- `reference\u002Fphoto-frame-dashboard\u002F`: upstream clone, gitignored. Re-create with\n  `git clone https:\u002F\u002Fgithub.com\u002Fwesbos\u002Fphoto-frame-dashboard reference\u002Fphoto-frame-dashboard`.\n\n## Run\n\n```sh\ncd dashboard\nnpm install\nnpm run dev          # http:\u002F\u002Flocalhost:5173, also on the LAN for the frame\nopen \"http:\u002F\u002Flocalhost:5173\u002F?diag\"   # perf overlay (fps, jank, DOM, image megapixels, heap)\n```\n\n## Calendar\n\nThe Worker merges any number of iCal links into one agenda. A cron job refreshes them into KV\nevery 10 minutes, writing KV only when something changed (or hourly), and the page polls every 5.\nIf a feed fails, its last good events stay up.\n\nHow often the frame polls each feed (`start()` in `src\u002Flib\u002Fstate.svelte.js`): calendar every 5\nminutes, weather every 15, Tasks every minute while the dashboard is up, Groceries every minute\nonly while its tab is open, photos every 5 minutes only while the slideshow is showing photos,\nand nothing for messages, which are pushed over a WebSocket the moment they're sent\n([docs\u002Fmessages.md](docs\u002Fmessages.md)). A poll waits for the previous one to finish, and unchanged\nresults don't redraw the screen. That's roughly 1,500–2,000 Worker requests a day. The account is\non Workers Paid ($5\u002Fmonth), which includes 10 million requests and 1 million KV writes a month, so\nthis stays inside the included usage with no extra charges.\n\n- **Google:** Settings → your calendar → *Integrate calendar* → **Secret address in iCal format**.\n- **Apple (iCloud):** Calendar app → right-click the calendar → *Share Calendar* → **Public\n  Calendar** → copy the `webcal:\u002F\u002F` link (used as-is).\n\nBoth links are effectively passwords: anyone with one can read that calendar.\n\nLocal dev: `cp dashboard\u002F.dev.vars.example dashboard\u002F.dev.vars`, fill it in, `npm run dev`, then\nopen `http:\u002F\u002Flocalhost:5173\u002F?key=\u003CDASHBOARD_KEY>` once (the page remembers the key).\n`npm test` runs the parser tests against the Google and iCloud fixtures in `worker\u002Ffixtures\u002F`.\n\nDeploy from `dashboard\u002F`:\n\n```sh\nnpm run deploy                              # first deploy also creates the CALENDAR KV namespace\nnpx wrangler secret put CALENDAR_URLS       # both links, separated by a space\nnpx wrangler secret put DASHBOARD_KEY       # any long random string\ncurl -H \"Authorization: Bearer \u003Ckey>\" \"https:\u002F\u002Fphoto-frame-dashboard.\u003Cyou>.workers.dev\u002Fapi\u002Fcalendar?refresh\"\n```\n\nPoint the kiosk at `https:\u002F\u002Fphoto-frame-dashboard.\u003Cyou>.workers.dev\u002F?key=\u003Ckey>`.\n\nWorkers Paid (this account's plan) allows 30 s of CPU per cron run; the Free plan allows only\n10 ms. Old one-off events are skipped before parsing and long-running repeats are fast-forwarded,\nso the calendar would also fit on Free unless it's very large.\n\n## Light and dark\n\nThe theme follows the sun: light from sunrise to sunset (from the weather feed), dark otherwise,\nwith 7 AM \u002F 7 PM as the fallback before weather loads. On the idle clock screen the clock uses the\ncolour chosen in Settings and dims at night, as do the photos (or they're off at night, per Settings). Pin a\ntheme with `?theme=light` or `?theme=dark` (remembered on the frame); `?theme=auto` goes back to\nfollowing the sun. Both themes are CSS variables, so switching costs one repaint and no memory.\n\n## Weather and Todoist\n\n- **Weather:** set `WEATHER_LAT` and `WEATHER_LON` (plus `WEATHER_UNIT=\"celsius\"` if you want it)\n  as secrets (`npx wrangler secret put`, as this deployment does) or `vars` in\n  `dashboard\u002Fwrangler.jsonc`, and in `.dev.vars` locally. Open-Meteo needs no key.\n- **Todoist:** `npx wrangler secret put TODOIST_TOKEN` (Todoist → Settings → Integrations →\n  Developer → API token). By default the lists read the projects named **Groceries** and\n  **To-do**; `TODOIST_GROCERY_PROJECT` \u002F `TODOIST_TODO_PROJECT` in `wrangler.jsonc` point them\n  elsewhere (here: \"Grocery List\" and \"Household\"). Tapping an item completes\n  it in Todoist, and items can be added from the frame.\n\n## Messages from agents\n\nAI agents can post full-screen messages to the frame: see [docs\u002Fmessages.md](docs\u002Fmessages.md).\n\n## Recipes\n\nExplore recipes from TheMealDB, save your own (agents can send them), and add a recipe's missing\ningredients to Groceries: see [docs\u002Frecipes.md](docs\u002Frecipes.md).\n\n## The frame\n\nThe frame boots into our own kiosk app (`kiosk\u002F`, package `com.huntsyea.frame`): build it with\n`kiosk\u002Fbuild.sh`, install with `adb install -r kiosk\u002Fbuild\u002Fframe.apk`, and set the dashboard URL\nonce with `adb shell am start -n com.huntsyea.frame\u002F.MainActivity -d '\u003Curl with ?key=>'`.\n[docs\u002Fframe.md](docs\u002Fframe.md) covers getting ADB working, every change made to the device with\nits undo command, day-to-day operation, and the Home Assistant setup for the Music tab.\n\nTo set up a different frame, start from the upstream device guides in\n`reference\u002Fphoto-frame-dashboard\u002Fdocs\u002Fdevices.md` (ADB, root, WebView 106, disabling the vendor\napp; some vendor apps accept root commands from the vendor's server), set its time zone (event\ntimes render in it), and measure it with `?diag`.\n\n## Contributing\n\nIssues and pull requests are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). Report security\nproblems privately as described in [SECURITY.md](SECURITY.md).\n\n## Credits and license\n\nInspired by [Wes Bos](https:\u002F\u002Fgithub.com\u002Fwesbos\u002Fphoto-frame-dashboard)\n([video](https:\u002F\u002Fyoutu.be\u002FZLycoUMltNI)). Weather data by [Open-Meteo](https:\u002F\u002Fopen-meteo.com),\nrecipes from [TheMealDB](https:\u002F\u002Fwww.themealdb.com), icons from [Lucide](https:\u002F\u002Flucide.dev).\nFull credits in [CREDITS.md](CREDITS.md).\n\nReleased under the [MIT License](LICENSE).\n","这是一个面向家庭厨房场景的轻量级安卓相框仪表盘系统，将廉价安卓电子相框改造为集日历、天气、Todoist任务、食谱、音乐控制和AI消息于一体的静谧型家庭信息中心。核心采用 Svelte 5 构建前端，后端由 Cloudflare Worker 托管，集成 Open-Meteo 天气、iCal 日历聚合、TheMealDB 食谱、Home Assistant 音乐控制及基于 Durable Objects 的实时 AI 消息推送；所有敏感凭证均保留在服务端，相框仅通过 WebView 以 Kiosk 模式运行。适用于已 rooting 的中低端安卓相框（如 Pastigio FRAME156），适合家庭共享日程、备餐计划与轻量智能家居交互场景。",2,"2026-11-24 04:37:14","CREATED_QUERY"]