Re: Re: [ANNOUNCEMENT] Services_Weather-1.0.0RC1 (beta) Released.

From: Date: Mon, 13 Oct 2003 13:28:24 +0000
Subject: Re: Re: [ANNOUNCEMENT] Services_Weather-1.0.0RC1 (beta) Released.
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8402@lists.php.net to get a copy of this message
Alexander Wirtz wrote:
It would be prudent, if you try to give me the smallest script possible to reproduce these notices, as the shouldn't occur at all. Maybe you got something wrong using the functions? If not, I will try to run those errors down.... Well I really just copied and pasted from the examples and added Var_Dump.php for pretty debugging.
Is it something to do with the setAccontData() ? I just left it like it is in the example, perhaps I should optain an account? Even if that's the problem I think it should give a friendly error message saying I have the wrong account or username/password. Anyway, hope this helps. thanks for the quick replies! Jeroen <?php require_once "Var_Dump.php"; require_once "Services/Weather.php"; $vd = new Var_Dump(); $weatherDotCom = &Services_Weather::service("WeatherDotCom", array("debug" => 2)); $weatherDotCom->setAccountData("<PartnerID>", "<LicenseKey>"); //$weatherDotCom->setCache("file", array("cache_dir" => "/tmp/cache/")); $weatherDotCom->setUnitsFormat("metric"); $weatherDotCom->setDateTimeFormat("d.m.Y", "H:i"); $search = $weatherDotCom->searchLocation("Bonn, Germany"); $location = $weatherDotCom->getLocation($search); $weather = $weatherDotCom->getWeather($search); $forecast = $weatherDotCom->getForecast($search, 3); $vd->display($location); $vd->display($weather); $vd->display($forecast); ?>

« previous php.pear.general (#8402) next »