This extension gets and displays weather forecast data from a data provider.
Three providers are provided "out-of-the-box":
The widget supports cacheing to reduce bandwidth in high load applications. Cacheing is on a provider::location basis so if you have forecasts for multiple locations and/or are using multiple providers on a page each is cached.
Comes with CSS and a symbol set, both of which can be overidden with your own.
The release file contains full documentation.
See the following code example:
[php] $this->widget('application.extensions.widgets.weatherForecast.WeatherForecast', array( 'provider'=>'BBC', 'params' => array( 'location'=>'40', // BBCWeather::Paris 'units' => 'C' ), 'cache'=>array( 3600, // Cache up to one hour new CExpressionDependency("date('H)") // Expire the cache at the top of the hour ) ));