Always-visible OPEN/CLOSED business-hours badge overlay for led-ticker.
Project description
led-ticker-storefront
An always-visible OPEN/CLOSED business-hours badge overlay plugin for led-ticker. It paints on top of whatever the sign is showing, flipped by a weekly schedule and the Pi's clock — no external service, works offline. It's the sibling of core's busy light overlay: same mechanism, richer content.
Full documentation — the config reference, schedule syntax (including the overnight-wrap rule), layout notes, and caveats — lives on the docs site: https://docs.ledticker.dev/plugins/storefront/.
Prerequisites
- A working led-ticker install.
- No API keys or internet access needed — the badge is driven entirely by the local clock and a schedule you write in
config.toml.
Install
The overlay 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 this package to config/requirements-plugins.txt (copy it from config/requirements-plugins.example.txt), then restart:
led-ticker-storefront
# in your led-ticker checkout
docker compose restart
Standalone (a venv that already has led-ticker):
pip install led-ticker-storefront
See the led-ticker Plugins docs for the constraint-based install the Docker image uses.
Configuration
Unlike a widget, storefront isn't added to a playlist section — it's a top-level [storefront] block:
[storefront]
corner = "top_right"
[storefront.open]
text = "OPEN"
color = [0, 255, 0]
[storefront.closed]
text = "CLOSED"
color = [255, 0, 0]
[storefront.schedule]
mon = "09:00-17:00"
tue = "09:00-17:00"
wed = "09:00-17:00"
thu = "09:00-17:00"
fri = "18:00-02:00" # overnight wrap: belongs to Friday, still OPEN at Sat 00:30
sat = "10:00-14:00"
# sun omitted = closed all day
See the docs page for the full field reference (background, padding, font/font_size, timezone, corner, orientation, per-state overrides), the complete schedule grammar (multi-range, closed, 00:00-24:00, the overnight-wrap rule), hi-res-font/vertical-badge sizing notes, and the "neon glow" animated-color recipe.
Two bigsign smoke fixtures (forced-OPEN and forced-CLOSED) live in examples/ — they're render-demo GIF fixtures, not a hardware wiring reference; see config/config.bigsign.example.toml in the core repo for the real 8-panel chain config.
Exceptions (holidays & special hours)
Override specific dates — or a date that recurs every year — without touching the weekly [storefront.schedule]:
[storefront.exceptions]
"12-25" = "closed" # recurring: every Christmas
"2026-11-26" = "closed" # one-off
"12-24" = "09:00-13:00" # recurring short day
"2026-12-31" = "20:00-02:00" # special hours; wraps allowed
Keys are "MM-DD" (recurring, matches that date every year) or "YYYY-MM-DD" (one specific
date); values reuse the same day-string grammar as the weekly schedule ("closed", a single
range, comma-separated multiple ranges, 00:00-24:00). Precedence is specific date >
recurring date > weekly day — a matching exception REPLACES the day's hours outright, it
never merges with the weekly schedule underneath it.
The overnight-wrap rule applies to exception days too: a range whose end wraps past midnight
still belongs to its start day, even when the following calendar day is itself an
exception. Friday 18:00-02:00 + Saturday "closed" → Saturday 00:30 still reads OPEN;
adjust Friday's hours for a hard midnight cutoff.
Every open/closed flip logs an enriched line naming the next change, e.g.:
storefront: OPEN (matched mon 09:00-17:00; closes 17:00; now 12:30 America/New_York)
storefront: CLOSED (no matching range; opens 09:00 tomorrow; now 20:15 America/New_York)
Caveats
- Timezone / NTP dependency — a wrong clock (bad
timezone, no NTP sync, a DST edge) shows the wrong badge; the startup log always states the time the plugin thinks it is. - No
led-ticker validatecoverage — overlay config isn't covered by the widget-onlyvalidatecommand. A malformed[storefront]block is caught at startup instead: logged, the badge disabled, the panel keeps running. - Not covered by config hot-reload —
[storefront]is read once at startup, not on every reload. Editing the block (schedule, badge text/color, corner, font, etc.) while the display is running has no effect until the process restarts; core's hot-reload machinery flags this as a restart-required change. Restart (docker compose restart, or your process manager's equivalent) to apply.
Development
This package lives in the led-ticker-plugins monorepo. Run tooling from the repo root:
uv sync --extra dev
uv run pytest plugins/storefront
uv run ruff check plugins/storefront
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file led_ticker_storefront-0.2.0.tar.gz.
File metadata
- Download URL: led_ticker_storefront-0.2.0.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67a08863932d565454d8e296f0e38521e650ffeead0b9bc28c051a0a52f24910
|
|
| MD5 |
bd533d9df0fdfc2e82d3507db18858ba
|
|
| BLAKE2b-256 |
dca716d0bb76916ca7bfaf2e968e478ed63aead9e1748c85cd0baa7725e3b329
|
Provenance
The following attestation bundles were made for led_ticker_storefront-0.2.0.tar.gz:
Publisher:
publish.yml on JamesAwesome/led-ticker-plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
led_ticker_storefront-0.2.0.tar.gz -
Subject digest:
67a08863932d565454d8e296f0e38521e650ffeead0b9bc28c051a0a52f24910 - Sigstore transparency entry: 2137450156
- Sigstore integration time:
-
Permalink:
JamesAwesome/led-ticker-plugins@15f03ddaae6b057e3dad7257d2356cd7910fd376 -
Branch / Tag:
refs/tags/storefront-v0.2.0 - Owner: https://github.com/JamesAwesome
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@15f03ddaae6b057e3dad7257d2356cd7910fd376 -
Trigger Event:
release
-
Statement type:
File details
Details for the file led_ticker_storefront-0.2.0-py3-none-any.whl.
File metadata
- Download URL: led_ticker_storefront-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92e6e450c0f288e0afd147a759e4658722b804b8c089c65e151a440a54c7ce8e
|
|
| MD5 |
03c5b3529b973b27735f687d61ec9812
|
|
| BLAKE2b-256 |
462c7851baad550888ffe0746292ed559a86978fd82538e2e5d7622f46d430fa
|
Provenance
The following attestation bundles were made for led_ticker_storefront-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on JamesAwesome/led-ticker-plugins
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
led_ticker_storefront-0.2.0-py3-none-any.whl -
Subject digest:
92e6e450c0f288e0afd147a759e4658722b804b8c089c65e151a440a54c7ce8e - Sigstore transparency entry: 2137450214
- Sigstore integration time:
-
Permalink:
JamesAwesome/led-ticker-plugins@15f03ddaae6b057e3dad7257d2356cd7910fd376 -
Branch / Tag:
refs/tags/storefront-v0.2.0 - Owner: https://github.com/JamesAwesome
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@15f03ddaae6b057e3dad7257d2356cd7910fd376 -
Trigger Event:
release
-
Statement type: