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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d6e4278b07467af328e60f94ab562b0b26084de23782cef55eb35e8de697a8f
|
|
| MD5 |
b5f07ada8c9d8cfa6daccfa0adc24daf
|
|
| BLAKE2b-256 |
a0287a3a561ccc3b1bebe37255a4eb16f9532695a1c076905ff6301c00c7e3d1
|
Provenance
The following attestation bundles were made for led_ticker_weather-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_weather-0.2.0.tar.gz -
Subject digest:
6d6e4278b07467af328e60f94ab562b0b26084de23782cef55eb35e8de697a8f - Sigstore transparency entry: 1917369889
- Sigstore integration time:
-
Permalink:
JamesAwesome/led-ticker-plugins@7cae3e69249a7d16e425ef38c3e97f1eaf2d6bc0 -
Branch / Tag:
refs/tags/weather-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@7cae3e69249a7d16e425ef38c3e97f1eaf2d6bc0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file led_ticker_weather-0.2.0-py3-none-any.whl.
File metadata
- Download URL: led_ticker_weather-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.3 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 |
26df13bbdd1fd69641233ea33e71067a241e5ee6c7c25b9b21906511c0740b0e
|
|
| MD5 |
d6aebc6dd198027013e4425c5f601bb4
|
|
| BLAKE2b-256 |
03c854f403f5b450aa14390636e1a5ee79a5b76287b1861182b7d533f52d40b5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
led_ticker_weather-0.2.0-py3-none-any.whl -
Subject digest:
26df13bbdd1fd69641233ea33e71067a241e5ee6c7c25b9b21906511c0740b0e - Sigstore transparency entry: 1917369982
- Sigstore integration time:
-
Permalink:
JamesAwesome/led-ticker-plugins@7cae3e69249a7d16e425ef38c3e97f1eaf2d6bc0 -
Branch / Tag:
refs/tags/weather-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@7cae3e69249a7d16e425ef38c3e97f1eaf2d6bc0 -
Trigger Event:
release
-
Statement type: