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

Log in
Name

Password

 
 

Folder icon ZWeather

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;

  • 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:-

for metric or

or 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.

 Title   Type   Size   Modified   Status 
 Changes to permissions Edit object Software Release   2001-11-23 published
 ZWeather Edit object Software Release   2001-08-02 published