条件MSN天气API列表? [英] MSN weather API list of conditions?

查看:389
本文介绍了条件MSN天气API列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

微软有一个天气API非常类似于谷歌的(现在看来是彻底死了)。我已经转换我的应用程序到他们的饲料之一,但我一直无法找到所有可能的天气条件下的列表。

Microsoft has a weather API very similar to Google's (which now appears to be completely dead). I've converted one of my applications over to their feed, but I've been unable to find a list of all possible weather conditions.

这是记录非常适合于谷歌的天气API,但我无法找到的MSN API的天气条件的列表。

This is documented fairly well for Google's weather API, but I can't find a list of conditions for the MSN weather API.

FWIW,一个例子URL来找回数据使用MSN是:

FWIW, an example URL to get data back using MSN is:

<击> http://weather.service.msn.com/data.aspx?weadegreetype=F&culture=en-US&weasearchstr=Chicago,IL (服务不可用了(2016年1月))

http://weather.service.msn.com/data.aspx?weadegreetype=F&culture=en-US&weasearchstr=Chicago,IL (service not available anymore (Jan 2016))

任何人都可以洒在可能的条件下一些轻?我需要他们,这样我可以在条件文本转换,而不是一个图标。

Can anyone shed some light on the possible conditions? I need them so that I can convert the condition text to an icon instead.

推荐答案

我决定去一个稍微不同的路线,并计算出基于提供的图标(天空code条件和<强从XML>天空codeday )。

I decided to go a slightly different route and figure out conditions based on the icon provided (skycode and skycodeday) from the XML.

下面是什么,我想出了一个清单。希望这将有利于他人,从谷歌的天气API迁移:

Here is a list of what I came up with. Hopefully it will be helpful for others in migrating from Google's weather API:


  • 0,1,2,3,4,17,35 - 雷暴

  • 5 - 混降雨/雪

  • 6 - 冰雹/雪混合

  • 7 - 雨/雪/冰雹混合

  • 8,9 - 冰爽

  • 10 - 雨/雨夹雪混合

  • 11 - 小雨

  • 12 - 雨

  • 13 - 小雪

  • 14,16,42,43 - 斯诺

  • 15 - 暴雪

  • 18,40 - 阵雨

  • 19 - 木屑

  • 20 - 雾

  • 21 - 雾度

  • 22 - 烟

  • 23,24 - 风

  • 25 - 寒

  • 26 - 多云

  • 27,29,33 - 晴(夜间)

  • 28,30,34 - 晴间多云

  • 31 - 晴(夜间)

  • 32 - 清除

  • 36 - 热

  • 37,38 - 零星雷雨

  • 39 - 零星阵雨

  • 41 - 零星阵雪

  • 44 - N / A

  • 45 - 零星阵雨(夜间)

  • 46 - 零星阵雪(夜间)

  • 47 - 零星雷雨(夜间)

这篇关于条件MSN天气API列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆