cvs: pear /Services_Weather/Weather Metar.php
| From: | Alexander Wirtz | Date: | Wed, 12 Oct 2005 16:18:20 +0000 |
| Subject: | cvs: pear /Services_Weather/Weather Metar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35456@lists.php.net to get a copy of this message | ||
eru Wed Oct 12 12:18:21 2005 EDT
Modified files:
/pear/Services_Weather/Weather Metar.php
Log:
Added raw METAR/TAF-data to return array by request
http://cvs.php.net/diff.php/pear/Services_Weather/Weather/Metar.php?r1=1.68&r2=1.69&ty=u
Index: pear/Services_Weather/Weather/Metar.php
diff -u pear/Services_Weather/Weather/Metar.php:1.68 pear/Services_Weather/Weather/Metar.php:1.69
--- pear/Services_Weather/Weather/Metar.php:1.68 Wed Jul 27 07:29:30 2005
+++ pear/Services_Weather/Weather/Metar.php Wed Oct 12 12:18:17 2005
@@ -16,7 +16,7 @@
// | Authors: Alexander Wirtz <alex@pc4p.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Metar.php,v 1.68 2005/07/27 11:29:30 eru Exp $
+// $Id: Metar.php,v 1.69 2005/10/12 16:18:17 eru Exp $
/**
* @package Services_Weather
@@ -405,6 +405,7 @@
// Ok, we have correct data, start with parsing the first line for the last update
$weatherData = array();
$weatherData["station"] = "";
+ $weatherData["dataRaw"] = implode(" ", $data);
$weatherData["update"] = strtotime(trim($data[0])." GMT");
$weatherData["updateRaw"] = trim($data[0]);
// and prepare the rest for stepping through
@@ -877,6 +878,7 @@
// Ok, we have correct data, start with parsing the first line for the last update
$forecastData = array();
$forecastData["station"] = "";
+ $forecastData["dataRaw"] = implode(" ", $data);
$forecastData["update"] = strtotime(trim($data[0])." GMT");
$forecastData["updateRaw"] = trim($data[0]);
// and prepare the rest for stepping through