0

So im using the yahoo weather API for a website im working on. Right now it is calling default images for the weather icons, which do not look very nice at all. I wanted to use the newer images which they us on their website here.

Here is the code im using that I believe are calling the default image sets:

$weather_contents = $weather->channel->item->description; preg_match_all('/<img[^>]+>/i',$weather_contents, $img); $weather_img = $img[0][0];

And here is a link to what im working on. You will notice the difference between the quality of the weather icons I have and what they currently use on yahoo.

I am pretty much a newbie when working with this weather stuff, any help would be greatly appreciated.

Thanks, Cheers

sean
  • 119
  • 5
  • 13

1 Answers1

0

You should try definitely metwit weather API.
Here is a working example with awesome icons. (You can change it of course)

http://jsbin.com/isukam/1

Disclosure: I own this awesome API.
Let me know if you need help.

beddamadre
  • 1,583
  • 2
  • 19
  • 40