led-ticker-hockey
Live NHL scores for led-ticker. One hockey.scores widget shows a held scoreboard per game: score, period, clock, shots on goal, power play (team and time left), empty net, finals and the next scheduled game. On the bigsign and longboi each team carries its logo; the logos are bundled, so a sign never fetches an image. When a team you follow scores, the card plays a goal celebration on its next turn in the rotation.
Disclosure: the data comes from the NHL's public web API (
https://api-web.nhle.com). That feed is unofficial and undocumented. It needs no key and no account, but the NHL can change its shape at any time. The plugin parses it defensively: a bad or missing payload keeps the last good scores on the panel with aSTALElabel instead of crashing. This plugin is not affiliated with or endorsed by the NHL or ESPN. Team logos are the teams' marks (sourced from ESPN's logo CDN), bundled for display on your own sign.
Prerequisites
- A working led-ticker install (
led-ticker-core >= 4.30). - Internet access on the Pi (for the scores; the logos are already in the package).
- No API key.
Install
This plugin auto-registers via the led_ticker.plugins entry point — once the package is installed, no [plugins] config change is needed.
Into a containerized led-ticker (recommended): add the package to your config/requirements-plugins.txt and rebuild:
led-ticker-hockey
docker compose up -d --build
Standalone (a venv that already has led-ticker):
pip install led-ticker-hockey
Once installed, the hockey.scores widget (and the :hockey.puck: emoji) is available automatically.
Widget: hockey.scores
Add a [[playlist.section.widget]] block inside a playlist section of your config/config.toml:
[[playlist.section.widget]]
type = "hockey.scores"
teams = ["PHI", "NYI"]
timezone = "America/New_York" # for start times and the day boundary
teams is required (and must be non-empty) in the default teams mode. Everything else is optional tuning.
| Option | Type | Default | Description |
|---|---|---|---|
mode |
string | "teams" |
"teams", "league" or "live" — see Modes. |
teams |
list of strings | [] |
NHL three-letter codes, case-insensitive (["PHI", "NYI"]). Unknown codes are rejected by led-ticker validate with a close-match hint. In league / live modes it sets priority and which teams celebrate. |
max_games |
int | 8 |
Cap on games per rotation in league / live modes. |
final_hold_hours |
int | 6 |
How long a final stays in the rotation, measured from the game's start time + 2 h 30 min (the feed carries no end time). |
timezone |
string | "America/New_York" |
IANA timezone for start times (TODAY, TONIGHT, dates) and the day boundary. |
layout |
string | "auto" |
"auto", "scoreboard" or "ticker" — see Layouts. |
logos |
bool | true |
Paint the bundled team logos on the bigsign and longboi. false paints the two-tone colour chips instead. Ignored on the smallsign, which never shows logos. |
update_interval |
int | 15 |
How often, in seconds, this widget refreshes its cards and asks the shared source to poll. Floored at 10. While a game is live the source polls at most every 15 s, or at the lowest update_interval below that among the widgets sharing it. A value below 15 therefore speeds up live polling. A value above 15 slows this widget: its cards refresh only every update_interval seconds, and if no other widget polls more often, so does the source. Quieter periods poll more slowly regardless — see Polling cadence. |
hold_time |
float | 0.0 |
Minimum per-card hold in seconds (a number ≥ 0). The engine uses the larger of this and the section's hold_time. While a celebration is pending the card asks for 4 s per goal plus the larger of this and 4 s for the board afterwards. |
padding |
int | 6 |
Horizontal padding (logical px) after the line in the hi-res layout = "ticker" crawl (bigsign / longboi); it also counts toward whether the line fits and holds instead of scrolling. The scale-1 ticker, the held scoreboards and the celebration ignore it. A number >= 0 (a float is truncated to an int). |
demo |
bool | false |
Render fixture games (a live power play, a goal celebration, an intermission, an OT final, a next game) with PHI and NYI, no network — for docs, gifs and hardware checks. The live game's goal celebrates on its first turn and again every third turn after (in ticker / one_at_a_time sections, about 12 s after each celebration ends) (set teams = ["PHI"] or similar: untracked goals only highlight the score). |
bg_color |
RGB list | none | Background fill at every scale (core paints it under every renderer, including the goal celebration). |
font_color |
RGB list / string / table | unset | Override all text color. Scale-1 layout = "ticker" only. The smallsign board, the goal celebration and the hi-res renderers paint their own palette. |
font |
string | core default | Font for the scale-1 ticker line. |
small_font |
string | "5x8" |
Font for the scale-1 two-band scoreboard. |
Modes
teams(default) — only games involving yourteams, per team in config order: its live game; else a final still insidefinal_hold_hours; else a game later today; else its next scheduled game (also how a game that starts after local midnight shows before puck drop). Two tracked teams playing each other are one card, not two.league— every NHL game today: your teams first, then other live games, then finals inside the hold, then games later today by start time. Capped bymax_games.live— only games in progress, your teams first. Capped bymax_games. With nothing live the widget has no stories, so the rotation skips it.
Offseason: when a tracked team has nothing scheduled this week or month, the plugin looks up the full season schedule (at most every 6 hours) for its next game, such as the season opener. If nothing is scheduled at all, that team contributes no card — so a section holding only a teams-mode widget can go dark in the offseason. Put the widget in a section with other content, or accept the dark panel (core idles it blank and keeps swapping).
Layouts
layout = "auto"(default) —scoreboardon all three signs (smallsign, bigsign, longboi). A held board reads better than a crawl on a 16-row strip, soautonever picksticker.layout = "scoreboard"— a held board per game:- smallsign (160×16, bitmap font): two 8-row bands, away on top. Each band has a brand chip, the abbreviation, the score and
SOG nn(STALEreplaces theSOGlabel when the data is stale);PP m:ssorENsits on that team's band during play (not in intermission); the period is right-aligned in the top band, with a small stick-and-puck icon just left of it so the card reads as hockey at a glance next to other sports (left out when the top band is too full for it), and the clock in the bottom band. Columns move right as needed so 2-digit scores and shot counts never touch. - bigsign (256×64): two rows with a dotted divider — the team's 28 px logo, abbreviation, large score,
SOG nn(cyan) — and an amber PP badge on the power-play team's row. The right column shows the period (amber), the clock (white) andPP m:ss. - longboi (512×64): a full scoreboard. The away team fills the left third (48 px logo at the edge, large abbreviation,
SOG, huge score), the home team mirrors it on the right, and the centre holds the period, a large clock and the PP badge withTEAM m:ssbeneath. Next-game cards add the team nicknames. - Intermission: the clock reads
2ND INTwith the countdown. Empty net:ENmarks the team that pulled its goalie. Final:FINAL,FINAL/OTorFINAL/SO, the winner's score green and the loser's dimmed. Next game: the day and date (amber), the time (white) and the arena (dim), with the teams drawn per sign. Smallsign shows the stick-and-puck icon, thenPHI @ NYIin team colors and no chips. Bigsign showsPHI @ NYIwith each team's logo in front of its name and aNEXT GAMElabel. Longboi shows both logos and abbreviations on their sides, with the team nicknames and no@. - Logos: with
logos = false, or for a team with no bundled logo, the bigsign and longboi paint that team's two-tone chip in the logo's place.
- smallsign (160×16, bitmap font): two 8-row bands, away on top. Each band has a brand chip, the abbreviation, the score and
layout = "ticker"— one scrolling line per game, using the same wording as the boards (STALEfollows the period/clock when the data is stale). Scale-1 renders it as a bitmapSegmentMessage; scale>1 as a hi-res crawl.
Team abbreviations shrink to fit on the physical boards (both rows always share one size) and are ellipsized only when even the smallest size would collide. The physical boards use a fixed palette; only bg_color (the fill behind it) is configurable.
Goal celebration
When a team in teams scores, that game's card plays a ~4 second celebration the next time its turn comes around — in a slideshow it never interrupts other content (scroll-mode sections are below). Three quick flashes of the panel in the scoring team's color with GOAL knocked out, then the new score with the scorer's number pulsing, the scorer and season goal count (KONECNY (5)), the assists, and the period and time, with the scoring team's logo at the left on the bigsign and longboi. Then the normal board for the rest of the hold.
- A section's hold is extended automatically while a celebration is pending: the card asks for 4 s per queued goal plus the larger of the widget's
hold_timeand 4 s for the board that follows (the engine still uses the section'shold_timeif that is longer). The celebration never eats the board's own time, so you do not need to raisehold_timefor it. - Several goals scored between turns celebrate in order, up to 3 per turn; older ones are dropped.
- A goal celebrates once per widget: replays on later rotations do not happen, and a celebration is only consumed once it actually reached the panel.
- Scoring changes do not replay. When the NHL corrects a goal (a new scorer or assist), the feed re-issues it; a goal at the same score as one already celebrated or queued replaces it — a queued celebration shows the corrected scorer — and never celebrates twice.
- During a transition into or out of the card, the board is shown; the celebration plays only once the card is on screen.
- In
mode = "ticker"andmode = "one_at_a_time"sections, the celebration starts on the next frame the card is drawn and takes over the whole panel for its 4 s; the card's own scroll pauses underneath and resumes where it left off, so none of its board is skipped. On the bigsign and longboi the scoreboard scrolls through such a section like a wide card. Celebration and demo timing in these sections count scroll ticks (scroll_step_ms, default 50 ms), so the 4 s and 12 s figures scale with it. Known limits: a celebration on the LAST card of atickersection can be cut once that card's end is inside the panel, either because the card is narrower than the panel and fully visible, or because the section's end-of-scroll hold has started. It is cut to whatever is left of the sectionhold_time(default 3 s), and the rest plays on the card's next pass (unless a section transition enters with that card first, which drops it). When a card celebrates while the card to its left is still on screen, that card keeps scrolling hidden under the takeover, so on resume there can be a gap of up to about 80 columns after it. - First sight is a silent baseline. Goals already in the feed when the widget first sees a game (boot, restart, hot reload, a game found mid-period) do not celebrate.
- In
league/livemodes, goals by teams you do not track do not flash; the score is highlighted briefly and fades back to white. With an emptyteamslist nothing celebrates. - An overturned goal quietly corrects the score and drops any queued celebration for it.
Polling cadence
All hockey.scores widgets in one process share a single source, so several widgets (or signs' worth of sections) do not multiply requests to the NHL.
- Every 15 s while any relevant game is live — faster if a widget sets a lower
update_interval(floor 10 s), slower if every widget sharing the source sets a higher one (each widget polls only on its ownupdate_interval). - Every 5 minutes when relevant games are scheduled today but not started.
- About hourly otherwise.
- The season schedule (offseason next-game lookup) is fetched at most every 6 hours.
- The live "situation" lookup (power play, empty net) is made only for live games that are on screen.
Clocks (game clock, power-play time, intermission countdown) tick locally between polls: the board interpolates from the last poll's timestamp while the clock is running, and clamps at 0:00.
A failed request keeps the last good games and marks every card STALE beside the state, never in place of it. Backoff starts at twice the interval (30 s before the first successful poll) and doubles, capped at four hours. A game that disappears from the feed keeps its last state — a final is never inferred from a game vanishing.
Sign checks
The examples directory has separate demo and live configs for smallsign, bigsign and longboi:
config.hockey-demo.<sign>.toml— fixture games, no network.config.hockey-live.<sign>.toml— live NHL data forPHIandNYI.
Validate the chosen file with led-ticker validate <path> before starting the sign. Every file carries a [web] block (the webui sidecar restart-loops without one), and the longboi files carry the FM6126A panel tuning (gpio_slowdown = 5, pwm_bits = 7, limit_refresh_rate_hz = 100) — without it that panel flickers, which is the panel, not the widget. Check that the score, clock and PP badge have separated letters and every column stays inside the panel.
Known limitations
- Unofficial feed. Undocumented and subject to change; see the disclosure above.
- Live situation fields are unverified. The power-play and empty-net parsing follows community documentation of the game
landingendpoint'ssituationdata; it has not yet been checked against a live game. If those fields are absent or shaped differently, the board simply omitsPP/ENand everything else keeps working. - Scale-1 clock updates per poll. On a smallsign using
layout = "ticker"the clock text refreshes with each poll rather than every second (the scoreboards, including the smallsign bands, and the hi-res crawl tick every second). - The sign runs ahead of your TV. The feed is near real-time, broadcasts are delayed, so a goal can appear on the panel before you see it on screen. There is no spoiler delay.
- Logos are small. The bigsign board's logos are 28 px (36 px in the celebration), so thin detail in a mark reads as a blob; the longboi's 48 px logos hold up better. Near-black pixels are dropped as invisible on the panel.
- NHL only.
Data
NHL web API, base URL https://api-web.nhle.com, no key. Community reference: https://github.com/Zmalski/NHL-API-Reference.
Logos are 64×64 PNGs for all 32 teams under src/led_ticker_hockey/assets/logos/, listed in MANIFEST.txt with their source URL and fetch date. They are refreshed by a person running tools/fetch_logos.py (never by CI or a sign); the plugin decodes each once per size and replays cached pixels.
Development
uv sync --extra dev # from the repo root
uv run pytest plugins/hockey --cov=plugins/hockey/src # tests
uv run ruff check plugins/hockey && uv run pyright plugins/hockey/src
Metadata
Release files for led-ticker-hockey 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| led_ticker_hockey-0.3.0.tar.gz | 282.9 kB | With provenance | Details for led_ticker_hockey-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| led_ticker_hockey-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for led_ticker_hockey-0.3.0-py3-none-any.whl |
Total release size: 531.9 kB
Release files / led_ticker_hockey-0.3.0.tar.gz
| Download URL | led_ticker_hockey-0.3.0.tar.gz |
|---|---|
| Size | 282.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bf798a4180d229a39078f15b23996abf1297f0a6e8a6313aaadae3587835b14
|
|
BLAKE2b-256 checksum How to use checksums |
437d015e5e54a7d92d30837a093b1fc89a7d72fee128631822128a61a1fc61c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / led_ticker_hockey-0.3.0-py3-none-any.whl
| Download URL | led_ticker_hockey-0.3.0-py3-none-any.whl |
|---|---|
| Size | 249.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
936a9ce088825a12e8fe14865936eb268c0d92411e1dd51754561331b65fedd2
|
|
BLAKE2b-256 checksum How to use checksums |
b7b9f713b81ba8c0218b3678edfc69104d6bd1a5c1f9edbf1f7b9a2823065ebf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for led-ticker-hockey 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for led_ticker_hockey-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.