Closed 7 years ago.
- We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
- This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Is there away to display just the Yahoo weather icon above on a webpage? I'm using geektool on my Mac and it can be displayed on my desktop but I'm wondering if it is possible to just have that icon in a webapge??? ANy ideas :)
Have you tried http://l.yimg.com/a/i/us/we/52/XX.gif
where XX is your status code returned from the API?
Example: http://l.yimg.com/a/i/us/we/52/24.gif
Yes. The response of Yahoo Weather API contains an image that denotes the weather.
The path to the current weather image is channel > item > description > img
(inside CDATA)
View the below responses in Firefox and then you can see those icons for yourself.
- New York City - http://weather.yahooapis.com/forecastrss?w=2459115
- Paris, France - http://weather.yahooapis.com/forecastrss?w=615702
I had anothet good look around and finaly found what I was looking for, this was exactly what I needed;
http://blog.unijimpe.net/reporte-del-clima-en-php/
The website is spanish but figured most of it out wiht google translator ;)
精彩评论