Introduction
This products creates a portlet to show weather information as provided by AEMET .
It parses an XML file and creates a data structure to create a portlet based on a structure similar to the one provided by the product Meteo . This product worked great, but due to the constantly changing HTML of the AEMET site, it failed easily.
Now AEMET provides a fixed XML for each place, so you just have to create a portlet and type the URL of the XML file you want to show. The parsing results are cached in memory using plone.memoize’s RAMCache.
If you want to customize the look and feel of the portlet, use z3c.jbot and look at the internals of the dict created after parsing the XML at aemetparser.py file.
You can see examples of customization of this portlet at:
Compatibility
Tested on Plone 4.0.x, 4.1, 4.2 and 4.3 Not tested on Plone 3.3.x but it should work.
Credits
AEMET: for providing weather information freely available (always giving credit) in Spain.
Parsing code and portlet implementation: Dani Reguera <dreguera@codesyntax.com>
Plone goodies, doc and i18n: Mikel Larreategi <mlarreategi@codesyntax.com>
Changelog
1.4.1 (2018-02-01)
fix url parsing [erral]
1.4 (2018-02-01)
Remove lxml [libargutxi]
1.3 (2013-11-04)
Return empty dicts when the original XML has empty data [erral]
1.2 (2011-10-06)
Some docs [erral]
1.1 (2011-10-05)
Added i18n [erral]
1.0 (unreleased)
Initial release [dani]
Metadata
Release files for cs.portlet.aemet 1.4.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 |
|---|---|---|---|---|
| cs.portlet.aemet-1.4.1.tar.gz | 17.0 kB | Without provenance | Details for cs.portlet.aemet-1.4.1.tar.gz |
Release files / cs.portlet.aemet-1.4.1.tar.gz
| Download URL | cs.portlet.aemet-1.4.1.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5033228e533622b3071558d8df58a711f597c050b3fef478cf35aea08f39eee0
|
|
BLAKE2b-256 checksum How to use checksums |
bc3faca11be131588ba74070575ecfe164eb0ab51b62a0ccaaa886f542a81fdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cs.portlet.aemet 1.4.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.