Nodes/UCLA Daily/UCLA Daily: Deep Dive Card
ComfyUI Node

UCLA Daily: Deep Dive Card

One event, one full-screen card, with QR code and procedural art

By jbrick2070·Created 6 months ago·Updated 6 months ago· 0
UCLA Daily: Deep Dive Card
  • ucla_data
  • card_image
  • save_path
event_index0
card_width1920
card_height1080
show_unofficial_badgetrue
show_qr_codetrue
enrich_descriptionstrue
save_to_diskfalse

UCLADeepDiveCard is the "detail" tier of the UCLA Daily pack: a full 1920x1080 card for a single event, with the venue's street address, an enriched description, a scannable QR code, procedural geometric art picked by event category, and a factual institutional context line. Where the LobbyCard gives you five events at a glance, this one gives you everything about one event - and it's the node the author clearly had the most fun building.

It's part of UCLA Daily by Jeffrey A. Brick, the pack that turns UCLA's public feeds into lobby-display content. This node takes the pipeline's UCLA_DATA dict and an event index, and returns a single card. Its sibling, UCLADeepDiveBatch, renders the whole batch; use the batch node for the full slideshow, and this one when you want to inspect or tweak one event's card.

How it works

Pick an event with event_index (0-based) and the node lays out a header (source, "N of M", timestamp, UNOFFICIAL badge), the gold event title, date/time and type, the venue name plus street address from the pack's built-in database of 20+ UCLA venues, access info, a wrapped description, the QR code, a procedural-art panel, and a dim italic institutional note.

Three features are worth calling out. Dynamic font sizing scales the description from 72pt down to 38pt, picking the largest size that fits the box - so long titles still render, they just get smaller. Description enrichment (enrich_descriptions, default on) fetches the og:description from the event's detail page for a richer blurb than the RSS summary. And the procedural art is category-aware: film-strip patterns for films, constellations for astronomy, ripples, hexagons - not a generic gradient slapped on everything.

The inputs

  • ucla_data - required; the pipeline dict from UCLADailyDataInit + fetchers.
  • event_index - 0-based index of the event to render.
  • card_width / card_height - default 1920×1080.
  • show_unofficial_badge, show_qr_code, enrich_descriptions, save_to_disk - all booleans, all default on except save_to_disk.

Outputs

Two: card_image (a single IMAGE tensor, 1×H×W×3) and save_path (the PNG path if save_to_disk is on).

Install

ComfyUI Manager → search UCLA Daily, or:

cd ComfyUI/custom_nodes
git clone https://github.com/jbrick2070/ComfyUI-UCLADaily.git
pip install qrcode pillow requests

Restart ComfyUI. The QR code needs qrcode (graceful placeholder if absent) and rendering needs Pillow; the pip line covers both.

Common issues

Turn off enrich_descriptions if you're offline or the detail pages are slow - enrichment is a second network hit per event on top of the initial fetch. And if the QR code comes out as a blank placeholder square, qrcode isn't installed; the node degrades gracefully but you want the real thing on a lobby screen. For a whole lineup, skip this node and reach for UCLADeepDiveBatch.

CategoryUCLA Daily

Inputs (8)

NameTypeDefaultDescription
ucla_dataUCLA_DATAUCLA data dict from pipeline.
event_indexINT00–999Index of the event to render (0-based).
card_widthoptINT1920800–3840
card_heightoptINT1080600–2160
show_unofficial_badgeoptBOOLEANtrue
show_qr_codeoptBOOLEANtrue
enrich_descriptionsoptBOOLEANtrueFetch richer descriptions from event detail pages.
save_to_diskoptBOOLEANfalse

Outputs (2)

NameTypeDescription
card_imageIMAGE
save_pathSTRING