Skip to main content

Current-conditions weather widget for led-ticker (weather.current).

Project description

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:

git+https://github.com/JamesAwesome/led-ticker-plugins.git@weather-v0.2.0#subdirectory=plugins/weather
# in your led-ticker checkout
docker compose up -d --build

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

pip install "git+https://github.com/JamesAwesome/led-ticker-plugins.git@weather-v0.2.0#subdirectory=plugins/weather"

led-ticker isn't on PyPI, so this path only works where led-ticker is already installed. 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:

[[sections]]
[[sections.widgets]]
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).

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

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_weather-0.2.0.tar.gz (15.1 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.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: led_ticker_weather-0.2.0.tar.gz
  • Upload date:
  • Size: 15.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 6d6e4278b07467af328e60f94ab562b0b26084de23782cef55eb35e8de697a8f
MD5 b5f07ada8c9d8cfa6daccfa0adc24daf
BLAKE2b-256 a0287a3a561ccc3b1bebe37255a4eb16f9532695a1c076905ff6301c00c7e3d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for led_ticker_weather-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26df13bbdd1fd69641233ea33e71067a241e5ee6c7c25b9b21906511c0740b0e
MD5 d6aebc6dd198027013e4425c5f601bb4
BLAKE2b-256 03c854f403f5b450aa14390636e1a5ee79a5b76287b1861182b7d533f52d40b5

See more details on using hashes here.

Provenance

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