Skip to main content

led-ticker-weather

A current-conditions weather plugin for led-ticker, backed by WeatherAPI.com. It contributes a single weather.current widget that shows the location label, current temperature, and a condition icon.

This package split out of led-ticker-feeds (its feeds.weather widget); the type is now weather.current.

Prerequisites

  • A working led-ticker install.
  • A free WeatherAPI.com API key, exported as WEATHERAPI_KEY.
  • Internet access on the Pi (the widget calls the WeatherAPI.com API).

Install

The widget 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 rebuild:

led-ticker-weather
# in your led-ticker checkout
docker compose up -d --build

Standalone (a venv that already has led-ticker):

pip install led-ticker-weather

See the led-ticker Plugins docs for the constraint-based install the Docker image uses.

Configuration

Set the API key in your .env:

WEATHERAPI_KEY=your-key-here

Then add the widget:

[[playlist.section]]
[[playlist.section.widget]]
type = "weather.current"
location = "London"

The widget polls WeatherAPI.com in the background and renders the label, temperature, and a condition icon. Conditions map to icon slugs via _match_condition (sun / cloud / rain / snow / thunder / fog).

Weather value token (:id: in any widget's text)

Besides the weather.current widget, this plugin registers a weather.current source — a live value you embed in another widget's text with a :id: token.

[[source]]
id = "weather.nyc"
type = "weather.current"
location = "New York, US"          # name / zip / "lat,lon" / {lat=…, lon=…}
interval = 1800                    # seconds; how often to refresh
format = "{temp_f}°F {condition}"  # optional; this is the default
# placeholder = "…"                # optional; shown until the first fetch

Then reference it anywhere text is drawn:

[[playlist.section]]
[[playlist.section.widget]]
type = "message"
text = "NYC: :weather.nyc:"        # -> "NYC: 72°F Clear", updating live

WEATHERAPI_KEY comes from your .env (never config). Available format fields (current conditions): temp_f, temp_c, condition, feelslike_f, feelslike_c, humidity, wind_mph, and emoji. The emoji field expands to a condition icon — format = "{temp_f}° {emoji}"72° ☀. The source polls on its own interval, independently of the weather.current widget.

A full bigsign example that exercises the token (default format, the {emoji} sprite, feels-like/humidity fields, and a resilience check) lives at config/config.weather_smoketest.bigsign.toml — edit the location fields and copy it to your config.toml.

Development

This package lives in the led-ticker-plugins monorepo. Run tooling from the repo root:

uv sync --extra dev
uv run pytest plugins/weather
uv run ruff check plugins/weather

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_weather-0.3.0.tar.gz (20.6 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_weather-0.3.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file led_ticker_weather-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for led_ticker_weather-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2b9b9fdc9dd7a15c7bfa10f35b0eb0b91f46da9d57522f920f60cedc998b62df
MD5 e91cb8ce849fd6180484cdbf0c3dd36b
BLAKE2b-256 07aeab1aff0458c78f20f0247edd98148c032ad96ec04f85e5da138c31b20892

See more details on using hashes here.

Provenance

The following attestation bundles were made for led_ticker_weather-0.3.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_weather-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for led_ticker_weather-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f5197d2c62fafc5651ff946ffa81402df2247fb9daf25a83f3a210a3d15ab52
MD5 44d6914b5c0d6e3655fe7d6842efd139
BLAKE2b-256 b35c9746fb96f6bd3c558f8bdf1dcdfb861686838f8055d644f0e57a7399b788

See more details on using hashes here.

Provenance

The following attestation bundles were made for led_ticker_weather-0.3.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.

Release history Release notifications | RSS feed

0.4.0

2 files

This release

0.3.0 This release

2 files

0.2.1

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page