print pretty "How to"
Brought to you by:
iridium
|
From: Johannes P. <Joh...@yo...> - 2006-02-24 02:49:41
|
Hello all,
I am having problems to get the raw metar data nicly human
readable displayed.
I get the correct data and images with the following code:
<?php
require("phpweather.php");
require("output/pw_images.php");
$weather = new phpweather();
print_r($weather->decode_metar());
$icons = new pw_images($weather);
echo '<p><img src="'.$icons->get_sky_image().'" /> ';
echo '<img src="'.$icons->get_winddir_image().'" /> ';
echo '<img src="'.$icons->get_temp_image().'" /></p>';
$output_text = new pw_text_en($weather);
$output_text->print_pretty();
?>
The last 2 lines are not correct coded. (I don't have any
programming knowledge) Can someone give me a hint to get
this correct ? What am I overlooking?
Thank's in advance.
Johannes
|