baseball v1.6.0 — demo mode for all five widgets
baseball v1.6.0 — demo mode for all five widgets
Every baseball widget (scores, standings, promotions, statcast, attendance) gains a demo = true config field. When set, the widget renders a fixed, curated fixture instead of calling the live MLB / Baseball Savant feeds — no network, no API key — and short-circuits before any fetch or background poll ever starts.
Two things it's for
- Preview every view on demand. Some cards only appear in specific game states — the attendance team card needs a Final game, a live at-bat needs a game in progress.
demo = truerenders them all immediately, so you can dial in a config on your sign without waiting for real game state. - Reproducible showcase renders. The fixtures are deterministic, so screenshots and GIFs of the hero cards come out identical every time.
The demo fixtures run through the same card builders as live data — a live at-bat with count/outs/baserunners, a Final, an upcoming-game preview, a full division board, same-day promos, a 452 ft home run drawing its trajectory arc, and a team card with weather and an animated capacity bar.
As always, scale-1 (smallsign) shows the classic scrolling line and scale>1 (bigsign / longboi) shows the hero cards — demo = true changes only the data, not the layout.
Config
scoresandpromotionsrequireteamunlessdemo = true.standings,statcast, andattendanceneed no team (league-wide by default).
Also
standings.teamsis now optional at construction — omit it to track the overall leader's division. (Previously required; league-capable behavior, unchanged output.)