PHPWeather
-
I have PHPWeather installed and configured correctly, but I’m having trouble figuring out what code I would add to my blog to call the weather in. Can anyone that uses this help me out? I tried using this code, which I found on the site:
<?php
include(‘phpweather.inc’);
include(‘locale_en.inc’);
$metar = get_metar(‘EKYT’);
$data = process_metar($metar);
$temp_c = $data[‘temp_c’];
$temp_f = $data[‘temp_f’];
echo “The temperature is $temp_c degrees Celsius ($temp_f degrees Fahrenheit).”;
?>
But I cannot seem to find the “phpweather.inc” or “locale_en.inc” files that they are calling in and I’m getting errors. The documention and support isn’t that great for newbies such as myself. I’ve tried posting to the support mailing list but have gotten no answer.
- The topic ‘PHPWeather’ is closed to new replies.