Update of /cvsroot/phpweather/phpweather/output
In directory usw-pr-cvs1:/tmp/cvs-serv11600/output
Modified Files:
pw_images.php
Log Message:
Added icon for windchilled temperature, updated test.php to include images
Index: pw_images.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/output/pw_images.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- pw_images.php 20 Mar 2002 19:26:50 -0000 1.3
+++ pw_images.php 26 Mar 2002 18:39:45 -0000 1.4
@@ -205,6 +205,7 @@
var $temp_nodata_image = 'temp_nodata.gif';
var $temp_low_image = 'templow.gif';
var $temp_high_image = 'temphigh.gif';
+ var $temp_windchilled_image = 'tempchilled.gif';
// ======================================================================
// The wind_speeds array can be used to convert wind speed values in
@@ -405,7 +406,9 @@
$processed_metar_data = $this->weather->decode_metar();
if (!empty($processed_metar_data['temperature'])) {
- if ($processed_metar_data['temperature']['temp_c'] > 0) {
+ if (!empty($processed_metar_data['windchill'])) {
+ return $this->properties['icons_path'] . $this->temp_windchilled_image;
+ } elseif ($processed_metar_data['temperature']['temp_c'] > 0) {
return $this->properties['icons_path'] . $this->temp_high_image;
} else {
return $this->properties['icons_path'] . $this->temp_low_image;
|