This is an easy-to-use and light-weight module for displaying 4-day weather forecast using the free wunderground API.
This module makes use of the Wunderground Weather API (formerly Google Weather API) to display the current temperature, weather condition and a four-day weather forecast, as you can see on the left of the page.
Note that the free version of the wunderground.com Weather API has a limit of 500 calls per day. The latest version of the Wunderground Weather Module has a built-in cache system to greatly reduce the number of requests to wunderground.com for similar weather requests made within a specified time period.
You can see a live demo on the left menu of this page.
Be a Sponsor
If you find this module useful, and would like to see further development of this project, be a proud sponsor of the kksou Google Weather Module - AJAX version!
However, the free version of wunderground.com Weather API has a limit of 500 calls per day. If you go beyond 500 calls per day, the module will stop working!
This latest version of Wunderground Weather Module has a built-in cache system to greatly reduce the number of requests to wunderground.com for similar weather requests made within a specified time period.
The default time period is 60 minutes - what this means is that if you request for the weather of "San Francisco, CA" for the first time, the weather info will be retrieved from wunderground.com. However, anyone who makes a subsequent weather request of "San Francisco, CA", as long as it still falls within 60 minutes, the weather will be retrieved from the cache without making any calls to wunderground.com.
You can change the time period in the Module Manager's parameter page.
In the parameter page, you can also set the Admin Mode to Yes so that you can see the cache system in action. The default is Admin Mode = No.
Another very important addition to this new version is that the module now remembers the previous city entered by the user. For example, suppose the user has searched for the weather of "Paris, France". When she come back to the same page a couple of days later, the weather for "Paris, France" will be displayed instead of the default city as specified in your parameter page.
Default City: This is the city that will be displayed when the module is first loaded. For USA, please specify City, State. For other countries, please specify City, Country
For some countries (e.g. US, UK and Canada), you can just enter the zip code. E.g. '94305, CA', 'W1A 1AZ, UK'.
Language: Wunderground supports many different languages. The language code can be found here: Wunderground Language Support. Note that the language code is different from the standard ISO 639-1 format.
e.g. English is en, French is fr, Italian is it, Japanese is jp, Chinese simplified is cn, Chinese Traditional is tw.
Unit for temperature: Choose between displaying the temperature in °F or °C.
Hide Input Field: If all you want is to display the weather forecast of a particular city, and DO NOT want the user to change that, you can select 'Yes' to hide the input field.
Hide Humidity: Select 'Yes' if you wish to hide the humidity information.
Hide Wind: Select 'Yes' if you wish to hide the wind information.
Hide Forecast: Select 'Yes' if you wish to hide the 4-day weather forecast.
Label for 'City': This is the label that is displayed just before the input field. The default label is 'City'. You can change the label into your own language and label.
Size of Input Field: Size of the input field. Default size is 12.
Request Interval: If you do some research on google, you will see that there arer cases where Google will "ban" your site from accessing the Google Weather API if the request is made too often (e.g. some sites try to get the weather forecast of all cities in US through a robot). By default, I set a interval 3 seconds between each request to Google. This will prevent your users from making too frequent weather forecast requests via your website. If you are not concerned about this, you can reduce this to 1 second.
Set Focus on Input Field: Set the focus (i.e. put the prompt) on the input field for city. Default is Yes.
Added one more parameter in the config page to allow user to choose whether to set focus on the input field for the city.
v1.0.4 (for Joomla 1.0) and v1.5.4 (for Joomla 1.5)
Released May 06, 2010
Conform to joomla.org guidelines.
v1.0.5 (for Joomla 1.0) and v1.5.5 (for Joomla 1.5)
Released May 16, 2010
The module is now W3C XHTML 1.0 Transitional compliant.
v1.6.6 (for Joomla 1.6) and v1.7.7 (for Joomla 1.7)
Released October 10, 2011
Native version of the Google Weather Module for Joomla 1.6 and 1.7!
v1.6.7 (for Joomla 1.6) and v1.7.7 (for Joomla 1.7)
Released October 16, 2011
Support for km/h for wind speed. If you display the temperature in degree Celsius, the wind speed will be displayed in km/h. If you display the temperature in degree Fahrenheit, the wind speed will be displayed in mph.
Note: By default, Google only returns the wind speed information in mph. I used the PHP function preg_match() to search for the string "mph". If you have displayed the weather information in other languages (e.g. Russian) which does not display miles per hour as "mph", the module will just display whatever wind information that is returned by Google.
v1.07 (for Joomla 1.0) and v1.57 (for Joomla 1.5), v1.67 (for Joomla 1.6), v1.77 (for Joomla 1.7), v2.5.7 (for Joomla 2.5)
Released January 26, 2012
Native version of the Google Weather Module for Joomla 2.5!
v1.08 (for Joomla 1.0) and v1.58 (for Joomla 1.5), v1.68 (for Joomla 1.6), v1.78 (for Joomla 1.7), v2.5.8 (for Joomla 2.5)
Released August 31, 2012
Google has stopped its Google Weather API service entirely. Details here.