Код прогноза погоды в JSON формате

Автор: | 02.04.2016
  1. {
  2. "query": {
  3. "count": 1,
  4. "created": "2016-04-02T10:13:17Z",
  5. "lang": "ru-RU",
  6. "results": {
  7. "channel": {
  8. "units": {
  9. "distance": "mi",
  10. "pressure": "in",
  11. "speed": "mph",
  12. "temperature": "F"
  13. },
  14. "title": "Yahoo! Weather - Qaraghandy, KZ",
  15. "link": "http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-20070178/",
  16. "description": "Yahoo! Weather for Qaraghandy, KZ",
  17. "language": "en-us",
  18. "lastBuildDate": "Sat, 02 Apr 2016 04:13 PM ALMT",
  19. "ttl": "60",
  20. "location": {
  21. "city": "Qaraghandy",
  22. "country": "Kazakhstan",
  23. "region": " KZ"
  24. },
  25. "wind": {
  26. "chill": "51",
  27. "direction": "270",
  28. "speed": "21"
  29. },
  30. "atmosphere": {
  31. "humidity": "57",
  32. "pressure": "1017.5",
  33. "rising": "2",
  34. "visibility": "0.0"
  35. },
  36. "astronomy": {
  37. "sunrise": "6:57 am",
  38. "sunset": "7:53 pm"
  39. },
  40. "image": {
  41. "title": "Yahoo! Weather",
  42. "width": "142",
  43. "height": "18",
  44. "link": "http://weather.yahoo.com",
  45. "url": "http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"
  46. },
  47. "item": {
  48. "title": "Conditions for Qaraghandy, KZ at 03:00 PM ALMT",
  49. "lat": "48.680752",
  50. "long": "70.439629",
  51. "link": "http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-20070178/",
  52. "pubDate": "Sat, 02 Apr 2016 03:00 PM ALMT",
  53. "condition": {
  54. "code": "28",
  55. "date": "Sat, 02 Apr 2016 03:00 PM ALMT",
  56. "temp": "51",
  57. "text": "Mostly Cloudy"
  58. },
  59. "forecast": [
  60. {
  61. "code": "12",
  62. "date": "02 Apr 2016",
  63. "day": "Sat",
  64. "high": "51",
  65. "low": "39",
  66. "text": "Rain"
  67. },
  68. {
  69. "code": "30",
  70. "date": "03 Apr 2016",
  71. "day": "Sun",
  72. "high": "58",
  73. "low": "39",
  74. "text": "Partly Cloudy"
  75. },
  76. {
  77. "code": "28",
  78. "date": "04 Apr 2016",
  79. "day": "Mon",
  80. "high": "57",
  81. "low": "40",
  82. "text": "Mostly Cloudy"
  83. },
  84. {
  85. "code": "28",
  86. "date": "05 Apr 2016",
  87. "day": "Tue",
  88. "high": "61",
  89. "low": "35",
  90. "text": "Mostly Cloudy"
  91. },
  92. {
  93. "code": "30",
  94. "date": "06 Apr 2016",
  95. "day": "Wed",
  96. "high": "56",
  97. "low": "35",
  98. "text": "Partly Cloudy"
  99. },
  100. {
  101. "code": "24",
  102. "date": "07 Apr 2016",
  103. "day": "Thu",
  104. "high": "55",
  105. "low": "32",
  106. "text": "Windy"
  107. },
  108. {
  109. "code": "24",
  110. "date": "08 Apr 2016",
  111. "day": "Fri",
  112. "high": "55",
  113. "low": "35",
  114. "text": "Windy"
  115. },
  116. {
  117. "code": "39",
  118. "date": "09 Apr 2016",
  119. "day": "Sat",
  120. "high": "54",
  121. "low": "35",
  122. "text": "Scattered Showers"
  123. },
  124. {
  125. "code": "30",
  126. "date": "10 Apr 2016",
  127. "day": "Sun",
  128. "high": "57",
  129. "low": "37",
  130. "text": "Partly Cloudy"
  131. },
  132. {
  133. "code": "30",
  134. "date": "11 Apr 2016",
  135. "day": "Mon",
  136. "high": "59",
  137. "low": "38",
  138. "text": "Partly Cloudy"
  139. }
  140. ],
  141. "description": "<![CDATA[<img src=\"http://l.yimg.com/a/i/us/we/52/28.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR />Mostly Cloudy\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Sat - Rain. High: 51Low: 39\n<BR /> Sun - Partly Cloudy. High: 58Low: 39\n<BR /> Mon - Mostly Cloudy. High: 57Low: 40\n<BR /> Tue - Mostly Cloudy. High: 61Low: 35\n<BR /> Wed - Partly Cloudy. High: 56Low: 35\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-20070178/\">Full Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n(provided by <a href=\"http://www.weather.com\" >The Weather Channel</a>)\n<BR />\n]]>",
  142. "guid": {
  143. "isPermaLink": "false"
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
{
 "query": {
  "count": 1,
  "created": "2016-04-02T10:13:17Z",
  "lang": "ru-RU",
  "results": {
   "channel": {
    "units": {
     "distance": "mi",
     "pressure": "in",
     "speed": "mph",
     "temperature": "F"
    },
    "title": "Yahoo! Weather - Qaraghandy, KZ",
    "link": "http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-20070178/",
    "description": "Yahoo! Weather for Qaraghandy, KZ",
    "language": "en-us",
    "lastBuildDate": "Sat, 02 Apr 2016 04:13 PM ALMT",
    "ttl": "60",
    "location": {
     "city": "Qaraghandy",
     "country": "Kazakhstan",
     "region": " KZ"
    },
    "wind": {
     "chill": "51",
     "direction": "270",
     "speed": "21"
    },
    "atmosphere": {
     "humidity": "57",
     "pressure": "1017.5",
     "rising": "2",
     "visibility": "0.0"
    },
    "astronomy": {
     "sunrise": "6:57 am",
     "sunset": "7:53 pm"
    },
    "image": {
     "title": "Yahoo! Weather",
     "width": "142",
     "height": "18",
     "link": "http://weather.yahoo.com",
     "url": "http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"
    },
    "item": {
     "title": "Conditions for Qaraghandy, KZ at 03:00 PM ALMT",
     "lat": "48.680752",
     "long": "70.439629",
     "link": "http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-20070178/",
     "pubDate": "Sat, 02 Apr 2016 03:00 PM ALMT",
     "condition": {
      "code": "28",
      "date": "Sat, 02 Apr 2016 03:00 PM ALMT",
      "temp": "51",
      "text": "Mostly Cloudy"
     },
     "forecast": [
      {
       "code": "12",
       "date": "02 Apr 2016",
       "day": "Sat",
       "high": "51",
       "low": "39",
       "text": "Rain"
      },
      {
       "code": "30",
       "date": "03 Apr 2016",
       "day": "Sun",
       "high": "58",
       "low": "39",
       "text": "Partly Cloudy"
      },
      {
       "code": "28",
       "date": "04 Apr 2016",
       "day": "Mon",
       "high": "57",
       "low": "40",
       "text": "Mostly Cloudy"
      },
      {
       "code": "28",
       "date": "05 Apr 2016",
       "day": "Tue",
       "high": "61",
       "low": "35",
       "text": "Mostly Cloudy"
      },
      {
       "code": "30",
       "date": "06 Apr 2016",
       "day": "Wed",
       "high": "56",
       "low": "35",
       "text": "Partly Cloudy"
      },
      {
       "code": "24",
       "date": "07 Apr 2016",
       "day": "Thu",
       "high": "55",
       "low": "32",
       "text": "Windy"
      },
      {
       "code": "24",
       "date": "08 Apr 2016",
       "day": "Fri",
       "high": "55",
       "low": "35",
       "text": "Windy"
      },
      {
       "code": "39",
       "date": "09 Apr 2016",
       "day": "Sat",
       "high": "54",
       "low": "35",
       "text": "Scattered Showers"
      },
      {
       "code": "30",
       "date": "10 Apr 2016",
       "day": "Sun",
       "high": "57",
       "low": "37",
       "text": "Partly Cloudy"
      },
      {
       "code": "30",
       "date": "11 Apr 2016",
       "day": "Mon",
       "high": "59",
       "low": "38",
       "text": "Partly Cloudy"
      }
     ],
     "description": "<![CDATA[<img src=\"http://l.yimg.com/a/i/us/we/52/28.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR />Mostly Cloudy\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Sat - Rain. High: 51Low: 39\n<BR /> Sun - Partly Cloudy. High: 58Low: 39\n<BR /> Mon - Mostly Cloudy. High: 57Low: 40\n<BR /> Tue - Mostly Cloudy. High: 61Low: 35\n<BR /> Wed - Partly Cloudy. High: 56Low: 35\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-20070178/\">Full Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n(provided by <a href=\"http://www.weather.com\" >The Weather Channel</a>)\n<BR />\n]]>",
     "guid": {
      "isPermaLink": "false"
     }
    }
   }
  }
 }
}