This page contains examples of using the Z Weather plugin. The sample output below is actually showing current weather information for New York City using this plugin. To use these examples on your site, just copy the code and paste it into your Joomla article (all these examples use the default Z Weather location). In most cases, you will need to paste this code into the HTML code window of the editor (for example, the "HTML" icon in the standard Joomla editor or the "<>" icon or "[show/hide]" option in the JCE editor) in order for the HTML tags to be inserted properly.

 

DescriptionSample OutputCode

12 Hour Forecast - 2 periods in a horizontal mode

{zweather var=f12_periodname,key=1}


{zweather var=f12_weather,key=1}
Hi: {zweather var=f12_maxtemp,key=1}
Low: {zweather var=f12_mintemp,key=1}
{zweather var=f12_periodname,key=2}


{zweather var=f12_weather,key=2}
Hi: {zweather var=f12_maxtemp,key=2}
Low: {zweather var=f12_mintemp,key=2}
24 Hour Forecast - 2 periods in a vertical mode
Today:
{zweather var=f24_weather,key=0}
Hi: {zweather var=f24_maxtemp,key=0}
Low: {zweather var=f24_mintemp,key=0}
Tomorrow:
{zweather var=f24_weather,key=1}
Hi: {zweather var=f24_maxtemp,key=1}
Low: {zweather var=f24_mintemp,key=1}
Current Conditions - A basic layout
{zweather var=o_weather}
{zweather var=o_tempstr}

Current Conditions - Displaying a wind direction icon

A wind direction icon is now available in Z Weather using this plugin code. Create the "/images/com_zweather/wind" folder on your server, then download and unzip the wind direction icons there to use this example.

Wind is {zweather var=o_windstr}