Weather widget for the dinky dashboard
Project description
dinky-weather
Weather widget for the dinky dashboard generator
Installation
Install this plugin using pip
:
pip install dinky-weather
Usage
dinky-weather
is a plugin for the dinky
dashboard generator. You can simply register the weather widget with your DashboardManager:
from dinky_weather import DinkyWeatherPlugin
dm.register(
DinkyWeatherPlugin(
api_key="accuweather API key",
location="location name",
location_id="accuweather location id"
), zone="A")
Then draw your dashboard as usual:
dm.draw_dashboard()
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd dinky-weather
python -m venv .venv
source .venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
Acknowledgements
- Icons by Icons8
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
dinky-weather-0.2.tar.gz
(256.6 kB
view details)
Built Distribution
dinky_weather-0.2-py3-none-any.whl
(255.2 kB
view details)
File details
Details for the file dinky-weather-0.2.tar.gz
.
File metadata
- Download URL: dinky-weather-0.2.tar.gz
- Upload date:
- Size: 256.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8d47e7338b65f18f6833005e32db1dd47f62d1577470208b11c0b1431a15d1 |
|
MD5 | 90756c626fe75f20cdbb883c925dc8b2 |
|
BLAKE2b-256 | b3d6beb8819e2c394c1ae59f7872ded944835c2d1903c33fd046c739edbc9731 |
File details
Details for the file dinky_weather-0.2-py3-none-any.whl
.
File metadata
- Download URL: dinky_weather-0.2-py3-none-any.whl
- Upload date:
- Size: 255.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f839c80b2811f69853d27bbfa3ac1ec0a8f5371cf6ca202fde44ec4f29e4abed |
|
MD5 | 48698ca1f3a5c98723c408c6bfbbde9c |
|
BLAKE2b-256 | 64dedb279f6b808d3ee6a62bf4869ce544ea814ca2824d363b772dc90b0ede58 |