Syntax for cvs-phpweather???
Brought to you by:
iridium
From: Donovan A. H. <do...@hu...> - 2002-03-29 00:02:59
|
I was using the current release version, but decided since the newer version is about to be out it would be best to just start off with the current cvs version. I had most of the it functional with the release version but it seems the syntax has changed, how do I have the current cvs version output the following: (mind giving me some examples) Temp: Wind: Dew Point: Humidity: Visibility: Precipitation: I've looked in the php files but I'm just missing something any assistance would be helpful. Right now I have the below, it is able to output the temp in F. <?php error_reporting(E_ALL); require('./weather/phpweather.php'); require('./weather/pw_utilities.php'); $weather = new phpweather(array()); $weather->set_metar('KVCT'); $language = "en"; include(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); include(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); $type = 'pw_text_' . $language; $text = new $type($weather, array()); $text->print_pretty(); $icons = new pw_images($weather, array()); $temp_f = number_format($temp * (9/5) + 32, 1); echo "$temp_f °F"; ?> Regards, Donovan A. Huff Huff Data Systems Owner/Operator (361) 501-2957 www.huffdatasystems.com |