Plugin: Weather
Author: Jase Chen
E-Mail: jase.chen@gmail.com
Release Date: 2005/09/30
Version: 1.1
License: GPL


Description:

This plugin offer the Cloud Chart of TAIWAN. You can chose the region to show.
The idea is from CWB (http://www.cwb.gov.tw/V4/weather/satellite/index.htm).


Configuration:

ĦEIn ControlCenter
  - configure this plugin in controlcetner
  - you can setup the size with width and height. the default value is 170 x 240 pixel.

ĦEIn Template File (for example, the panel.template with the 'connections' template)
  - copy the bellow code into the panel.template

/* CODE BEGIN */
{if $weather->isEnabled()}
<script language="javascript" src="http://www.cwb.gov.tw/V4/weather/satellite/s0p_val.js"></script>
<script language="javascript" src="http://www.cwb.gov.tw/V4/weather/satellite/s1p_val.js"></script>
<script language="javascript" src="http://www.cwb.gov.tw/V4/weather/satellite/s3p_val.js"></script>
 <h2> {$locale->tr("weather")} </h2>
   <ul><li>
     <div>
       <a target='_blank' href='http://www.cwb.gov.tw/V4/weather/satellite/index.htm'>
<script language="javascript">document.write("<img src='http://www.cwb.gov.tw/V4/weather/satellite/" + {$weather->getPic()}p_val[0][1] + "' width='{$weather->width()}' height='{$weather->height()}' border='0'>");</script>
       </a>
     </div>
   </li></ul>
{/if}
/* CODE END */


History:

1.1 
 - Add the size of Cloud Chart to setup
 - Add the error message

1.0 
 - Weather pLog plugin release