Open main menu

CDOT Wiki β

Changes

Teams Winter 2011/team2/project

3,694 bytes added, 17:44, 16 April 2011
no edit summary
}
</syntaxhighlight>
 
 
3. XML Format of weather received.
<syntaxhighlight lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
<data>
<request>
<type>City</type>
<query>Toronto, Canada</query>
</request>
<current_condition>
<observation_time>09:14 PM</observation_time>
<temp_C>4</temp_C>
<temp_F>39</temp_F>
<weatherCode>296</weatherCode>
<weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0017_cloudy_with_light_rain.png]]></weatherIconUrl>
<weatherDesc><![CDATA[Light rain]]></weatherDesc>
<windspeedMiles>30</windspeedMiles>
<windspeedKmph>48</windspeedKmph>
<winddirDegree>70</winddirDegree>
<winddir16Point>ENE</winddir16Point>
<precipMM>5.2</precipMM>
<humidity>93</humidity>
<visibility>10</visibility>
<pressure>1001</pressure>
<cloudcover>100</cloudcover>
</current_condition>
<weather>
<date>2011-04-16</date>
<tempMaxC>8</tempMaxC>
<tempMaxF>47</tempMaxF>
<tempMinC>2</tempMinC>
<tempMinF>36</tempMinF>
<windspeedMiles>27</windspeedMiles>
<windspeedKmph>43</windspeedKmph>
<winddirection>E</winddirection>
<winddir16Point>E</winddir16Point>
<winddirDegree>92</winddirDegree>
<weatherCode>302</weatherCode>
<weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0018_cloudy_with_heavy_rain.png]]></weatherIconUrl>
<weatherDesc><![CDATA[Moderate rain]]></weatherDesc>
<precipMM>25.5</precipMM>
</weather>
<weather>
<date>2011-04-17</date>
<tempMaxC>6</tempMaxC>
<tempMaxF>42</tempMaxF>
<tempMinC>0</tempMinC>
<tempMinF>32</tempMinF>
<windspeedMiles>26</windspeedMiles>
<windspeedKmph>42</windspeedKmph>
<winddirection>WSW</winddirection>
<winddir16Point>WSW</winddir16Point>
<winddirDegree>239</winddirDegree>
<weatherCode>116</weatherCode>
<weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0002_sunny_intervals.png]]></weatherIconUrl>
<weatherDesc><![CDATA[Partly Cloudy ]]></weatherDesc>
<precipMM>0.4</precipMM>
</weather>
<weather>
<date>2011-04-18</date>
<tempMaxC>10</tempMaxC>
<tempMaxF>49</tempMaxF>
<tempMinC>-1</tempMinC>
<tempMinF>31</tempMinF>
<windspeedMiles>21</windspeedMiles>
<windspeedKmph>33</windspeedKmph>
<winddirection>SW</winddirection>
<winddir16Point>SW</winddir16Point>
<winddirDegree>231</winddirDegree>
<weatherCode>113</weatherCode>
<weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png]]></weatherIconUrl>
<weatherDesc><![CDATA[Sunny]]></weatherDesc>
<precipMM>0.0</precipMM>
</weather>
<weather>
<date>2011-04-19</date>
<tempMaxC>4</tempMaxC>
<tempMaxF>39</tempMaxF>
<tempMinC>1</tempMinC>
<tempMinF>34</tempMinF>
<windspeedMiles>23</windspeedMiles>
<windspeedKmph>36</windspeedKmph>
<winddirection>NE</winddirection>
<winddir16Point>NE</winddir16Point>
<winddirDegree>39</winddirDegree>
<weatherCode>122</weatherCode>
<weatherIconUrl><![CDATA[http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0004_black_low_cloud.png]]></weatherIconUrl>
<weatherDesc><![CDATA[Overcast ]]></weatherDesc>
<precipMM>13.9</precipMM>
</weather>
</data>
</syntaxhighlight>
1
edit