Thanks for the API. But how do I use it? can you please brief me with a code snippet?
|2013-03-25 11:24:20 - In reply to message 1 from Marc|
|First, You must get api key from wunderground.com and paste to :|
* Api key from wunderground.com
* @var string
private $apiKey = 'Api key';
if You finish this step, You can paste this on Your site:
$w = new weather();
$w->setLocation('NY', 'New York');
echo ' C';
|2013-03-25 13:20:00 - In reply to message 2 from Kacper Zbonikowski|
|2013-03-25 18:49:32 - In reply to message 2 from Kacper Zbonikowski|
I tried using the code and I got this error - Warning: file_get_contents(http://api.wunderground.com/api/This is my keycode place/animatedsatellite/q/GR/Greece.gif?key=sat_ir4&basemap=1&timelabel=1&timelabel.y=10&num=5&delay=50&radius=200) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home/astro/public_html/NewSite/weather.php on line 84. I took out my apikey code so it would not be viewed in this message. Do I need to set the file to have certain permissions? I would like to display the weather of a few places in Europe. I did get the same error with the New York entry that was placed in your code. How do I get the codes for Greece, France, Italy....?
Thanks - emp
|2013-05-02 18:09:48 - In reply to message 2 from Kacper Zbonikowski|
|Looks like your code only includes functions to retrieve current weather data, not forecast for the next days...|