=================
NOTE: This project, forked from MegaMark16, was made more generic,
as it includes a template tag that can look up weather by ZIP code.
An extension for Django CMS that pulls current weather information
based on the website visitor's IP address and displays it on the
screen. You will need a www.wunderground.com API key to use this.
Dependancies
============
- django (tested with 1.4)
- django-cms (tested with 2.3.5)
- django-classy-tags (tested with 0.4)
Getting Started
=============
To get started simply install using ``pip``:
::
pip install django-wungerground
Add ``wunderground`` to your installed apps.
Add WUNDERGROUND_KEY to your settings file.
::
WUNDERGROUND_KEY = 'abcdefgh12345678'
Usage
=============
Simply drop a Current Local Weather plugin on a page. You will probably
want to override the ``wunderground/local_weather.html``
or ``wunderground/local_weather_tag.html``
templates. Any of the fields from the wunderground.com "conditions" api
call should be available in the template under the context variable
``weather_info``.
Template tag
-------------
This library provides a simple template tag:
::
{% current_weather %}
When provided with a variable, it attempts to look it up using WUnderground's
geocode API, which usually expects a ZIP/Postal code:
::
{% current_weather '04421' %}
Will display the weather in Castine, Maine.
Metadata
Release files for django-wunderground 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-wunderground-1.0.1.tar.gz | 4.1 kB | Without provenance | Details for django-wunderground-1.0.1.tar.gz |
Release files / django-wunderground-1.0.1.tar.gz
| Download URL | django-wunderground-1.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65fe1957f0f5885a6d28327f2f92878dc089a2c8b8a799a42f700b6379375ee3
|
|
BLAKE2b-256 checksum How to use checksums |
76d4a9034c53ba9f68ba5ee14bf248748027590ef898acba1865cbe0977e8d92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-wunderground 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.