Hi all;
Ive just started using Phpweather v 1.61.=20
I have seen created a page called weather.php, and the following code is =
the source;
**Start**
<html>
<head>
<body>
<?php
include('locale_en.inc');
include('phpweather.inc');
$metar =3D get_metar('EGGP');
$data =3D process_metar($metar);
$temp =3D $data['temp_c'];
echo "The temperature is $temp degrees Celsius.";
?>
<?php
$metar =3D get_metar('EGGP');
pretty_print_metar($metar, 'Rainhill, at the WRS Launch Site');
?>
<?php $decoded_metar =3D process_metar($metar); ?>
<img src=3D"<?php get_temp_image($decoded_metar) ?>" height=3D"50" =
width=3D"20" border=3D"1">
<img src=3D"<?php get_winddir_image($decoded_metar) ?>" height=3D"40" =
width=3D"40" border=3D"1">
<img src=3D"<?php get_sky_image($decoded_metar) ?>" height=3D"50" =
width=3D"80" border=3D"1">
<?php
$data =3D process_metar(get_metar('EGGP'));
echo "<pre>\n";
print_r($data);
echo "</pre>\n";
?>
</body>
</head>
</html>
**End**
The error that comes up on the published page lists as so;
<img src=3D"
Fatal error: Call to undefined function: get_temp_image() in =
/usr/local/psa/home/vhosts/rokits.org/web_users/martin/weather.php on =
line 20
The pretty print code works (and can be seen at =
www.rokits.org/~martin/weather.php) but the images do not.
I am also using a database to cache metars if it matters.
And, since there is no config setup on this new version, how do i alter =
the time offset?
Thanks in anticipation...
Martin Sweeney
www.rokits.org=20
|