Skip to main content

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.

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 validate coverage — overlay config isn't covered by the widget-only validate command. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

led_ticker_storefront-0.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

led_ticker_storefront-0.1.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file led_ticker_storefront-0.1.0.tar.gz.

File metadata

  • Download URL: led_ticker_storefront-0.1.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for led_ticker_storefront-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5360d410002cfea060be2bd90ceedb60867426922a65266342abcc72a2a7e195
MD5 c171463e30c55f3f33617531bf59a474
BLAKE2b-256 e7100608306bcd86be979c12a0fdb55fc5640a83c4f09b11829631538d0181d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for led_ticker_storefront-0.1.0.tar.gz:

Publisher: publish.yml on JamesAwesome/led-ticker-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file led_ticker_storefront-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for led_ticker_storefront-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59271b4e984cbc2335049d85ba4c2785ea49c933aebfbe52ef06d1b93592f1c1
MD5 90432e617a2cb5979a7deaec510e4f47
BLAKE2b-256 0e4805dd4d7aea5666a72091497f92f3a9a900ddab25d899b7ea69a5c47c76c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for led_ticker_storefront-0.1.0-py3-none-any.whl:

Publisher: publish.yml on JamesAwesome/led-ticker-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page