Skip to main content

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

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.1.2.tar.gz (73.8 kB view hashes)

Uploaded Source

Built Distribution

dinky_weather-0.1.2-py3-none-any.whl (73.1 kB view hashes)

Uploaded Python 3

Supported by

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