You are not logged in Log in Join
You are here: Home » Members » TheJester » ZWeather » dc_view

Log in
Name

Password

 
 


Dublin Core Elements

The Dublin Core metadata element set is a standard for cross-domain information resource description.
Element Description Value
Identifier resource ID http://old.zope.org/Members/TheJester/ZWeather
Title resource name ZWeather
Description resource summary This is the ZWeather Product. It consists of a management product, and a tag for displaying the weather in a pleasant format. There is also an External Method (weather.py) which you can use to drag down raw weather reports if you desire, but, it's only really there for looking how things work. The weather items are self-updating, based on the update frequency set for the Weather Management product. Updating can be extremely slow, so if you want to run a large number of weather items, this is what you should do; o Mirror the (relevant) METAR data to a local FTP area o Set host and data path in the Weather Management product to point to your mirror. This will alleviate bad stalls when people are viewing pages with weather information on them that has to be updated. The default view is somewhat ugly (on purpose), to encourage you to change the showWeather method that is present under the Weather Management product. It does serve as a pretty good example of what's available, and how to get at it. The weather tag is easy to use:- <dtml-weather show=id_expression metric=1> for metric or <dtml-weather show=id_expression metric=0> or <dtml-weather show=id_expression> for imperial units. When adding a new Weather item -- if you set the GMT/UTC offset, you can get a different set of icons at "night time" (1800 - 0600) than "day time" these are arbitrary limits because I really can't be bothered tracking sunrise and sunset just to change the icons dead on :-) Setting it to zero will result in the icons changing around UTC time which is probably not what you want. You can add a showWeather DTML Method to any individual Weather item if you want that one to display differently from the group. METAR Codes can be found at: http://www.nws.noaa.gov/oso/oso1/oso12/metar.htm as well as in the nsd_cccc file in the ZWeather Directory -- which contains a lot of other data to boot (it isn't used by ZWeather though), I put it in there just for something to look at. You can look up stations by US State, or by Country in the rest of the world by going to; http://www.nws.noaa.gov/oso/siteloc.shtml I don't remember where I found the weather icons, I've got a boat load of icons sitting around from various places.
Creator resource creator TheJester
Date default date 2001-11-23 03:41:53
Format resource format text/html
Type resource type Software Package
Subject resource keywords Content Object, External Access, Helpers, Visual
Contributors resource collaborators
Language resource language
Publisher resource publisher No publisher
Rights resource copyright


Additional Zope Elements

Element Description Value
CreationDate date resource created 2001-11-23 03:41:53
ModificationDate date resource last modified 2001-11-23 03:41:53
EffectiveDate date resource becomes effective None
ExpirationDate date resource expires None

Backlinks: via Google / Technorati