From a7f0a36b7f5243aec93c8719af17364c8409caf4 Mon Sep 17 00:00:00 2001 From: Tim Scott Date: Sun, 29 Nov 2026 16:35:40 -0600 Subject: [PATCH 1/2] homegame: skip the tile when no game is scheduled Return [] instead of rendering the "NO GAME" notice when ESPN answers but the team has nothing on the schedule, so the app drops out of the rotation during the off-season and comes back once a game is scheduled. Removes the now-unused render_notice helper and updates the README. Co-Authored-By: Claude Opus 5.5 --- apps/homegame/README.md | 15 +++++------ apps/homegame/homegame.star | 50 +++---------------------------------- 2 files changed, 12 insertions(+), 53 deletions(-) diff --git a/apps/homegame/README.md b/apps/homegame/README.md index 4affcca9dc..614908e684 100644 --- a/apps/homegame/README.md +++ b/apps/homegame/README.md @@ -48,7 +48,7 @@ ESPN's unofficial college football API: The scoreboard only ever covers FBS, with or without `groups=80`. A smaller division team whose payload has no `nextEvent` therefore has no second source, -and the app says so with **No game** instead of blanking the panel. +and the app treats it as having no game scheduled. ## Display layout @@ -88,12 +88,13 @@ that length sits flush against the edge with every glyph intact. down to; without this state the panel sat at `0m` until midnight. 5. **Postponed / Canceled** — `POSTPONED` or `CANCELED` in amber. These arrive as the same `post` state as a finished game, so they are separated out by status name. -6. **No game** — ESPN answered but the team has nothing scheduled: `NO GAME` in amber - over a wrapped line. This is the off-season display, so it is a normal state, and - amber rather than red because nothing is wrong. -7. **Unreachable** — ESPN could not be reached at all: `main` returns `[]`, so the app - sits the cycle out instead of holding the panel on a failure the viewer cannot fix. - A team that simply has nothing scheduled is **not** this state — it is state 6. +6. **No game** — ESPN answered but the team has nothing scheduled, the normal + off-season condition: `main` returns `[]`, so the app is left out of the rotation + instead of spending a slot saying there is nothing to show. It reappears on its own + once a game is on the schedule. +7. **Unreachable** — ESPN could not be reached at all: `main` also returns `[]`, so the + app sits the cycle out instead of holding the panel on a failure the viewer cannot + fix. "Game day" means the same calendar day as kickoff in the display timezone, not a rolling 24-hour window. diff --git a/apps/homegame/homegame.star b/apps/homegame/homegame.star index 53779e028c..2c9d90f0b5 100644 --- a/apps/homegame/homegame.star +++ b/apps/homegame/homegame.star @@ -102,9 +102,10 @@ def main(config): return [] # ESPN answered, but this team has nothing on the schedule - the normal - # state for most of the year. + # state for most of the year. Skip the tile rather than spend the + # rotation slot saying so. if game_data == None: - return render_notice("NO GAME", "Nothing scheduled") + return [] # Parse game data our_team = game_data.get("our_team", "TEAM") @@ -349,7 +350,7 @@ def get_next_game_from_scoreboard(team_id, timezone): The scoreboard only covers FBS, so this cannot help a smaller-division team. That is fine: when the search comes up empty it returns None, and - the caller shows "NO GAME" rather than blanking the panel. + the caller skips the tile. Args: team_id: ESPN team ID @@ -721,49 +722,6 @@ def render_game_display(our_team, opponent, is_home_game, kickoff_date, kickoff_ ), ) -def render_notice(headline, message): - """ - Renders a short headline over an explanatory line. - - Used for the states that have no game to show. Amber rather than red: - an empty schedule is the normal off-season condition, not a fault. - - Args: - headline: Short all-caps word or two - message: Explanatory line below it - - Returns: - render.Root object - """ - - return render.Root( - child = render.Box( - child = render.Column( - expanded = True, - main_align = "center", - cross_align = "center", - children = [ - render.Text( - content = headline, - font = "6x13", - color = "#FFA500", - ), - render.Box(width = 64, height = 2), - - # Wrapped, because the messages are longer than the 64px - # panel - a plain Text clips them at both ends. - render.WrappedText( - content = message, - font = "tb-8", - color = "#FFFFFF", - width = 64, - align = "center", - ), - ], - ), - ), - ) - def get_schema(): """ Defines the configuration schema for user customization. From b9567c5c0aee4c39554983003d1921f7397df72f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 29 Nov 2026 22:36:11 +0000 Subject: [PATCH 2/2] chore: auto-update manifest metadata --- apps/homegame/manifest.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/homegame/manifest.yaml b/apps/homegame/manifest.yaml index 3e33d51ed6..a2b1d0161d 100644 --- a/apps/homegame/manifest.yaml +++ b/apps/homegame/manifest.yaml @@ -16,4 +16,4 @@ tags: - ncaa - countdown published: '2026-11-07T03:04:19Z' -updated: '2026-11-08T06:58:29Z' +updated: '2026-11-29T22:35:40Z'