开发者

Yahoo Weather Icon [closed]

开发者 https://www.devze.com 2023-02-19 14:35 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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.
开发者_StackOverflow Improve this question

Yahoo Weather Icon [closed]

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.

  1. New York City - http://weather.yahooapis.com/forecastrss?w=2459115
  2. 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 ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消