From 9624351d80ace747d3117fb22d6cbd00fce3eedf Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 29 Sep 2026 13:33:14 +0200 Subject: feat: add an Immich memories card with click and scroll A centred card showing today's "N years ago" photos from Immich, one at a time on a 30-second rotation, with when each was taken and where. bin/immich-fetch.sh runs from conky's execi every 30 minutes: it asks /api/memories for today, converts each preview to PNG (Cairo loads nothing else) and writes an index with the year, local capture time and place. The place needs the key's asset.read permission and reads '--' without it. The key lives in ~/.config/udt/immich.env, like the weather key, because a GPG-backed store would raise a pinentry unattended. The dashboard now registers lua_mouse_hook and hands pointer events to the widget under the pointer. On this card, scrolling steps through the photos and a left click opens the photo in Immich's web UI and hides the dashboard so the browser is not stuck beneath it. Co-Authored-By: Claude Opus 5.5 --- immich.env.example | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 immich.env.example (limited to 'immich.env.example') diff --git a/immich.env.example b/immich.env.example new file mode 100644 index 0000000..9bbab18 --- /dev/null +++ b/immich.env.example @@ -0,0 +1,10 @@ +# Copy to ~/.config/udt/immich.env and fill in. That path is outside this +# repo on purpose: it holds a key, and anything committed is potentially +# public. chmod 600 it. +# +# Create the key in Immich under Account Settings > API Keys with the +# memory.read and asset.view permissions. Add asset.read to show where each +# photo was taken; without it the card shows the photo and date only. + +URL=http://immich.example.org:2283 +KEY=your_immich_api_key_here -- cgit v1.2.3