Real Weather Status
Class manual
Contents
Introduction
How do I use Real Weather Status Class?
version
1.0
ChangeLog
Introduction
Real Time Weather Status Class
is a powerful weather status module designed for web programmers to handle
the current weather status parameters. This module is based on Hong Kong
Observatory weather status. Report the realiable weather status record.
With the releases of later
versions, which is only accessible in the presence of a paid-for Alangor
Program Studio publishing license.
How
do I use Real Weather Status Class?
Version
1.0
Show current version (using
the querystring in the URL)
|
http://www.yourdomain.com/IncludeClassFile.php?version
|
Example
|
<?
// include the class file
include_once "weatherstatus.class.php";
// create the class object and predefine the function
$weather=new weatherstatus_class;
/**
* Current weather status and description list
* status , status description text
* 1 , "陽光普照"
* 2 , "天晴"
* 3 , "間中有陽光"
* 4 , "多雲"
* 5 , "間中有雨"
* 6 , "有雨"
* 7 , "大雨"
* 8 , "雷暴"
* 9 , "大霧"
* 10 , "大風"
* 11 , "晚間天晴"
* 12 , "晚間天晴"
* 13 , "晚間天晴"
* 14 , "晚間天晴"
* 15 , "晚間天晴"
* 16 , "晚間天晴"
* 17 , "晚間多雲"
*/
// weather degree
$weather->degree;
// weather status
$weather->status;
// weather status description text
$weather->status_text;
?>
|
ChangeLog
Version 1.0 (2006-04-29)
- Added degree parameter.
- Added status parameter.
- Added status description
text parameter.
|