Location: PHPKode > scripts > YWeather > yweather/YWeatherExample.php
<?php

include 'YWeather.php';
$YWeather = new YWeather('UKXX0085','c'); //UKXX0085 is London, UK , f: Fahrenheit c: Celsius
$YWeather->SetCacheFile('./temp/yweather.cache');
$YWeather->SetLifetime(500); #cache file life time (in second)
var_export( $YWeather->Fetch() ); #The weather data
Return current item: YWeather