Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yahoo weather api, how to fetch condition icons by condition code?

I'm trying to find links to weather condition images for Yahoo weather api. I get condition codes in JSON response, guess images are based on them. Like for OpenWeatherMap you add condition code to main URL http://openweathermap.org/img/w/(conditionCode)

How to do that for yahoo images?

like image 206
Jim H. Avatar asked Jan 04 '23 15:01

Jim H.


1 Answers

Link to the images is embedded in the api response down somewhere in description element. Add code number accordingly and download the image

http://l.yimg.com/a/i/us/we/52/(code_number).gif

like image 125
Jim H. Avatar answered May 16 '23 06:05

Jim H.