Part of the EllisLab Network

Plugin Information

World Weather 1.0 first_party

Download
Author:
Paul Burdick
Published:
Aug 09, 2004
Last Updated:
Dec 01, 2008
License:
First Party License
Categories:
Plugins  Add-On  
World Weather is a plugin for ExpressionEngine that allows you to displays weather conditions from around the world on your site. The plugin fetches weather information generated by a worldwide network of weather reporting stations that are usually located at airports.

Requirements

Every station has a four character station location indicator code (ICAO) that is required in order to fetch weather conditions for that particular location. You can find a list of ICAO codes at the following URL: http://weather.gov/tg/siteloc.shtml

Example Usage

{exp:world_weather:current station="LFPG" cache_refresh="300"}

<h1>Weather in Paris, France</h1>

<
p>Temperature: {temperature_f}&deg;F ({temperature_c}&deg;C)<br />
Feels Like: {feels_like_f}&deg;F ({feels_like_c}&deg;C)<br />
Heat Index: {heat_index_f}&deg;F ({heat_index_c}&deg;C)<br />
Dew Point: {dew_point_f}&deg;F ({dew_point_c}&deg;C)<br />
Humidity: {humidity}%<br />
Barometer: {barometer_in} in. Hg ({barometer_hpa} hPa)<br />
Sky Conditions: {sky_condition}<br />
Conditions: {condition}<br />
Wind: from the {wind_direction} at {wind_speed_mph} mph<br />
Visibility: {visibility_mi} mi ({visibility_km} km)<br />
Last Updated: {last_update format="%m/%d/%Y %g:%i %a"}</p>

{/exp:world_weather:current}

Notes

ICAO Designation

You must input the four-letter ICAO in your opening Plugin tag. For instance, the code for Paris, France is "LFPG" and it would be used like:

{exp:world_weather:current station="LFPG"}

PARAMETERS

cache_refresh - how often the cache should be refreshed in seconds.


VARIABLES

{temperature_f} - Temperature (Fahrenheit)
{temperature_c} - Temperature (Celsius)
{feels_like_f} - "Feels Like" temperature (Fahrenheit)
{feels_like_c} - "Feels Like" temperature (Celsius)
{heat_index_f} - "Heat Index" (Fahrenheit)
{heat_index_c} - "Heat Index" (Celsius)
{dew_point_f} - "Dew Point" (Fahrenheit)
{dew_point_c} - "Dew Point" (Celsius)
{humidity} - Humidity percentage
{barometer_in} - Barometric pressure (in. Hg)
{barometer_hpa} - Barometric Pressure (hPa)
{sky_condition} - Sky conditions
{condition} - Conditions
{wind_direction} - Wind direction
{wind_speed_mph} - Wind speed (mph)
{visibility_mi} - Visibility (miles)
{visibility_km} - Visibility (km)
{last_update format="%m/%d/%Y %g:%i %a"} - Date/time the information was last updated.