[horde] Metar block showing error with TAF
Frederic Naud
admin at naud.org
Sun Dec 7 04:50:58 UTC 2008
Thanks for the quick reply.
I inserted the var_dump and I get the following:
array(14) { ["station"]=> string(67) "Montreal / Pierre Elliot Trudeau
International Airport, Que, Canada" ["dataRaw"]=> string(439)
"2008/12/07 02:39 TAF CYUL 070239Z 0703/0724 17010KT P6SM SCT050
BKN100 FM070500 16008KT P6SM BKN040 OVC100 TEMPO 0705/0707 4SM -SN
OVC030 FM070700 16008KT 5SM -SN OVC025 TEMPO 0707/0716 2SM -SN
FM071600 04008KT 11/2SM -SN VV012 TEMPO 0716/0722 3SM -SN OVC020 BECMG
0719/0721 36010KT FM072200 30015G25KT 2SM -SN OVC020 TEMPO 0722/0724
4SM -SN OVC025 RMK NXT FCST BY 070600Z " ["update"]=> string(17) "Dec
7, 2008 02:39" ["updateRaw"]=> string(16) "2008/12/07 02:39"
["visQualifier"]=> string(2) "AT" ["visibility"]=> float(4) ["wind"]=>
float(17.26) ["windDegrees"]=> string(3) "300" ["windDirection"]=>
string(3) "WNW" ["clouds"]=> array(10) { [0]=> array(2) { ["amount"]=>
string(9) "scattered" ["height"]=> float(5000) } [1]=> array(2) {
["amount"]=> string(6) "broken" ["height"]=> float(10000) } [2]=>
array(2) { ["amount"]=> string(6) "broken" ["height"]=> float(4000) }
[3]=> array(2) { ["amount"]=> string(8) "overcast" ["height"]=>
float(10000) } [4]=> array(2) { ["amount"]=> string(8) "overcast"
["height"]=> float(3000) } [5]=> array(2) { ["amount"]=> string(8)
"overcast" ["height"]=> float(2500) } [6]=> array(2) { ["amount"]=>
string(19) "vertical visibility" ["height"]=> float(1200) } [7]=>
array(2) { ["amount"]=> string(8) "overcast" ["height"]=> float(2000)
} [8]=> array(2) { ["amount"]=> string(8) "overcast" ["height"]=>
float(2000) } [9]=> array(2) { ["amount"]=> string(8) "overcast"
["height"]=> float(2500) } } ["noparse"]=> string(51) "FM070500
FM070700 FM071600 FM072200 RMK NXT FCST BY" ["condition"]=> string(82)
"light snow, light snow, light snow, light snow, light snow, light
snow, light snow" ["windGust"]=> float(28.77) ["cache"]=> string(4)
"MISS" }
I also tried with another location (Phoenix Airport), and I get
similar results, without the forecast for snow ;-). To be sure, I ran
the buildmetardb.php for both locations and airports, with the same
results.
Fred
----- Message from mrubinsk at horde.org ---------
Date: Sat, 06 Dec 2008 17:37:57 -0500
From: Michael Rubinsky <mrubinsk at horde.org>
Subject: Re: [horde] Metar block showing error with TAF
To: horde at lists.horde.org
>
> Quoting Frederic Naud <admin at naud.org>:
>
>> Content-Type: text/plain;
>> charset=ISO-8859-1;
>> DelSp="Yes";
>> format="flowed"
>> Content-Disposition: inline
>> Content-Transfer-Encoding: quoted-printable
>>
>> Hi all,
>>
>> I noticed an error for portal pages that use the Metar block with
>> TAF (Forecast). At the top of the page, the following warnings
>> are displayed:
>>
>> Notice: Undefined index: validFrom in
>> /home/user/public_html/horde/lib/Block/metar.php on line 347
>>
>> Notice: Undefined index: validTo in
>> /home/user/public_html/horde/lib/Block/metar.php on line 347
>>
>> Warning: Invalid argument supplied for foreach() in
>> /home/user/public_html/horde/lib/Block/metar.php on line 349
>>
>> And the Metar block contains no forecast
>>
>> I am running Horde 3.3. Is this a known problem?
>
> My guess is that the METAR station that you have selected does not
> have valid data available. Can you try putting:
>
> var_dump($taf);
>
> after line 341 in horde/lib/Block/metar.php? Do you get the same
> error when selecting other stations?
>
>
> Thanks,
> mike
>
> --
> The Horde Project (www.horde.org)
> mrubinsk at horde.org
>
> "Time just hates me. That's why it made me an adult." - Josh Joplin
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
----- End message from mrubinsk at horde.org -----
--
Frédéric Naud
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: PGP Digital Signature
URL: <http://lists.horde.org/archives/horde/attachments/20081206/96e8e647/attachment.bin>
More information about the horde
mailing list