Yii 1.1: chinaweatherforecast

A widget that display china's 320 cities weather forecast of 4 days
1 follower

This widget get it's data from http://www.weather.com.cn, and can both assign a city or auto detect city by client's ip address (base on QQWry.Dat, the download url will be listed after). It support china's 320 cities weather forecast of 4 days.

Requirements

It's better that your php support curl extension. It must download data from remote server. AND the extension mb_string is REQUIRED.

Usage

Extract the files to exact directory the same in the zip file. and the directory "protected/data/" must be writtenable. And put the QQWry.Dat in this directory.

and then in your view file:

$this->widget('ext.weather.WeatherWidget');

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: wangyong
  • Category: Others
  • Votes: +1
  • Downloaded: 221 times
  • Created on: Aug 25, 2011
  • Last updated: Aug 25, 2011
  • Tags: weather