barometer 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. data/.gitignore +1 -0
  2. data/.travis.yml +7 -0
  3. data/LICENSE +1 -1
  4. data/{README.rdoc → README.md} +124 -110
  5. data/Rakefile +1 -21
  6. data/TODO +8 -9
  7. data/barometer.gemspec +20 -19
  8. data/bin/barometer +36 -83
  9. data/lib/barometer.rb +13 -11
  10. data/lib/barometer/base.rb +10 -10
  11. data/lib/barometer/data.rb +1 -1
  12. data/lib/barometer/data/distance.rb +25 -25
  13. data/lib/barometer/data/geo.rb +9 -9
  14. data/lib/barometer/data/local_datetime.rb +24 -20
  15. data/lib/barometer/data/local_time.rb +13 -13
  16. data/lib/barometer/data/location.rb +6 -6
  17. data/lib/barometer/data/pressure.rb +24 -24
  18. data/lib/barometer/data/speed.rb +28 -28
  19. data/lib/barometer/data/sun.rb +7 -7
  20. data/lib/barometer/data/temperature.rb +29 -29
  21. data/lib/barometer/data/units.rb +9 -9
  22. data/lib/barometer/data/zone.rb +19 -19
  23. data/lib/barometer/formats.rb +1 -1
  24. data/lib/barometer/formats/coordinates.rb +7 -7
  25. data/lib/barometer/formats/format.rb +6 -6
  26. data/lib/barometer/formats/geocode.rb +5 -5
  27. data/lib/barometer/formats/icao.rb +6 -6
  28. data/lib/barometer/formats/postalcode.rb +3 -3
  29. data/lib/barometer/formats/short_zipcode.rb +2 -2
  30. data/lib/barometer/formats/weather_id.rb +10 -10
  31. data/lib/barometer/formats/woe_id.rb +20 -20
  32. data/lib/barometer/formats/zipcode.rb +3 -3
  33. data/lib/barometer/key_file_parser.rb +20 -0
  34. data/lib/barometer/measurements/measurement.rb +32 -32
  35. data/lib/barometer/measurements/result.rb +39 -39
  36. data/lib/barometer/measurements/result_array.rb +12 -12
  37. data/lib/barometer/query.rb +15 -15
  38. data/lib/barometer/services.rb +3 -3
  39. data/lib/barometer/translations/icao_country_codes.yml +20 -20
  40. data/lib/barometer/translations/weather_country_codes.yml +1 -1
  41. data/lib/barometer/translations/zone_codes.yml +2 -2
  42. data/lib/barometer/version.rb +3 -0
  43. data/lib/barometer/weather.rb +27 -27
  44. data/lib/barometer/weather_services/noaa.rb +314 -3
  45. data/lib/barometer/weather_services/service.rb +32 -30
  46. data/lib/barometer/weather_services/weather_bug.rb +35 -33
  47. data/lib/barometer/weather_services/wunderground.rb +31 -29
  48. data/lib/barometer/weather_services/yahoo.rb +36 -35
  49. data/lib/barometer/web_services/geocode.rb +5 -7
  50. data/lib/barometer/web_services/noaa_station_id.rb +53 -0
  51. data/lib/barometer/web_services/placemaker.rb +11 -13
  52. data/lib/barometer/web_services/timezone.rb +5 -7
  53. data/lib/barometer/web_services/weather_id.rb +4 -6
  54. data/lib/barometer/web_services/web_service.rb +4 -4
  55. data/spec/barometer_spec.rb +25 -27
  56. data/spec/cassettes/Barometer.json +1 -0
  57. data/spec/cassettes/Query.json +1 -0
  58. data/spec/cassettes/Query_Format_Coordinates.json +1 -0
  59. data/spec/cassettes/Query_Format_Geocode.json +1 -0
  60. data/spec/cassettes/Query_Format_WeatherID.json +1 -0
  61. data/spec/cassettes/Query_Format_WoeID.json +1 -0
  62. data/spec/cassettes/WeatherService.json +1 -0
  63. data/spec/cassettes/WeatherService_Noaa.json +1 -0
  64. data/spec/cassettes/WeatherService_WeatherBug.json +1 -0
  65. data/spec/cassettes/WeatherService_Wunderground.json +1 -0
  66. data/spec/cassettes/WeatherService_Yahoo.json +1 -0
  67. data/spec/cassettes/WebService_Geocode.json +1 -0
  68. data/spec/cassettes/WebService_NoaaStation.json +1 -0
  69. data/spec/data/distance_spec.rb +60 -60
  70. data/spec/data/geo_spec.rb +23 -23
  71. data/spec/data/local_datetime_spec.rb +44 -44
  72. data/spec/data/local_time_spec.rb +47 -47
  73. data/spec/data/location_spec.rb +16 -16
  74. data/spec/data/pressure_spec.rb +61 -61
  75. data/spec/data/speed_spec.rb +69 -69
  76. data/spec/data/sun_spec.rb +25 -25
  77. data/spec/data/temperature_spec.rb +68 -68
  78. data/spec/data/units_spec.rb +21 -21
  79. data/spec/data/zone_spec.rb +35 -35
  80. data/spec/formats/coordinates_spec.rb +27 -27
  81. data/spec/formats/format_spec.rb +17 -25
  82. data/spec/formats/geocode_spec.rb +23 -31
  83. data/spec/formats/icao_spec.rb +26 -32
  84. data/spec/formats/postalcode_spec.rb +22 -28
  85. data/spec/formats/short_zipcode_spec.rb +20 -26
  86. data/spec/formats/weather_id_spec.rb +57 -67
  87. data/spec/formats/woe_id_spec.rb +59 -59
  88. data/spec/formats/zipcode_spec.rb +39 -47
  89. data/spec/key_file_parser_spec.rb +28 -0
  90. data/spec/measurements/measurement_spec.rb +79 -133
  91. data/spec/measurements/result_array_spec.rb +23 -38
  92. data/spec/measurements/result_spec.rb +100 -128
  93. data/spec/query_spec.rb +83 -100
  94. data/spec/spec_helper.rb +24 -6
  95. data/spec/weather_services/noaa_spec.rb +179 -0
  96. data/spec/weather_services/services_spec.rb +28 -36
  97. data/spec/weather_services/weather_bug_spec.rb +57 -77
  98. data/spec/weather_services/wunderground_spec.rb +36 -65
  99. data/spec/weather_services/yahoo_spec.rb +38 -60
  100. data/spec/weather_spec.rb +79 -79
  101. data/spec/web_services/geocode_spec.rb +7 -11
  102. data/spec/web_services/noaa_station_id_spec.rb +33 -0
  103. data/spec/web_services/placemaker_spec.rb +7 -12
  104. data/spec/web_services/web_services_spec.rb +3 -9
  105. metadata +214 -163
  106. data/VERSION.yml +0 -5
  107. data/lib/barometer/weather_services/google.rb +0 -142
  108. data/lib/barometer/weather_services/weather_dot_com.rb +0 -279
  109. data/spec/fakeweb_helper.rb +0 -179
  110. data/spec/fixtures/formats/weather_id/90210.xml +0 -7
  111. data/spec/fixtures/formats/weather_id/from_USGA0028.xml +0 -3
  112. data/spec/fixtures/formats/weather_id/ksfo.xml +0 -1
  113. data/spec/fixtures/formats/weather_id/manhattan.xml +0 -7
  114. data/spec/fixtures/formats/weather_id/new_york.xml +0 -1
  115. data/spec/fixtures/formats/weather_id/the_hills.xml +0 -1
  116. data/spec/fixtures/geocode/40_73_v3.json +0 -497
  117. data/spec/fixtures/geocode/90210_v3.json +0 -63
  118. data/spec/fixtures/geocode/T5B4M9_v3.json +0 -68
  119. data/spec/fixtures/geocode/atlanta_v3.json +0 -58
  120. data/spec/fixtures/geocode/calgary_ab_v3.json +0 -58
  121. data/spec/fixtures/geocode/ksfo_v3.json +0 -73
  122. data/spec/fixtures/geocode/newyork_ny_v3.json +0 -58
  123. data/spec/fixtures/services/google/calgary_ab.xml +0 -1
  124. data/spec/fixtures/services/placemaker/T5B4M9.xml +0 -65
  125. data/spec/fixtures/services/placemaker/atlanta.xml +0 -65
  126. data/spec/fixtures/services/placemaker/coords.xml +0 -65
  127. data/spec/fixtures/services/placemaker/ksfo.xml +0 -65
  128. data/spec/fixtures/services/placemaker/new_york.xml +0 -65
  129. data/spec/fixtures/services/placemaker/the_hills.xml +0 -65
  130. data/spec/fixtures/services/placemaker/w615702.xml +0 -47
  131. data/spec/fixtures/services/weather_bug/90210_current.xml +0 -93
  132. data/spec/fixtures/services/weather_bug/90210_forecast.xml +0 -76
  133. data/spec/fixtures/services/weather_dot_com/90210.xml +0 -1
  134. data/spec/fixtures/services/wunderground/current_calgary_ab.xml +0 -9
  135. data/spec/fixtures/services/wunderground/forecast_calgary_ab.xml +0 -13
  136. data/spec/fixtures/services/yahoo/90210.xml +0 -3
  137. data/spec/weather_services/google_spec.rb +0 -181
  138. data/spec/weather_services/weather_dot_com_spec.rb +0 -224
@@ -1,65 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en">
3
- <processingTime>0.000988</processingTime>
4
- <version> build 091119</version>
5
- <documentLength>15</documentLength>
6
- <document>
7
- <administrativeScope>
8
- <woeId>2357024</woeId>
9
- <type>Town</type>
10
- <name><![CDATA[Atlanta, GA, US]]></name>
11
- <centroid>
12
- <latitude>33.7483</latitude>
13
- <longitude>-84.3911</longitude>
14
- </centroid>
15
- </administrativeScope>
16
- <geographicScope>
17
- <woeId>2357024</woeId>
18
- <type>Town</type>
19
- <name><![CDATA[Atlanta, GA, US]]></name>
20
- <centroid>
21
- <latitude>33.7483</latitude>
22
- <longitude>-84.3911</longitude>
23
- </centroid>
24
- </geographicScope>
25
- <extents>
26
- <center>
27
- <latitude>33.7483</latitude>
28
- <longitude>-84.3911</longitude>
29
- </center>
30
- <southWest>
31
- <latitude>33.5548</latitude>
32
- <longitude>-84.566</longitude>
33
- </southWest>
34
- <northEast>
35
- <latitude>34.012</latitude>
36
- <longitude>-84.2671</longitude>
37
- </northEast>
38
- </extents>
39
- <placeDetails>
40
- <place>
41
- <woeId>2357024</woeId>
42
- <type>Town</type>
43
- <name><![CDATA[Atlanta, GA, US]]></name>
44
- <centroid>
45
- <latitude>33.7483</latitude>
46
- <longitude>-84.3911</longitude>
47
- </centroid>
48
- </place>
49
- <matchType>0</matchType>
50
- <weight>1</weight>
51
- <confidence>10</confidence>
52
- </placeDetails>
53
- <referenceList>
54
- <reference>
55
- <woeIds>2357024</woeIds>
56
- <start>0</start>
57
- <end>15</end>
58
- <isPlaintextMarker>1</isPlaintextMarker>
59
- <text><![CDATA[Atlanta, GA, US]]></text>
60
- <type>plaintext</type>
61
- <xpath><![CDATA[]]></xpath>
62
- </reference>
63
- </referenceList>
64
- </document>
65
- </contentlocation>
@@ -1,65 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en">
3
- <processingTime>0.002971</processingTime>
4
- <version> build 091119</version>
5
- <documentLength>103</documentLength>
6
- <document>
7
- <administrativeScope>
8
- <woeId>2459115</woeId>
9
- <type>Town</type>
10
- <name><![CDATA[New York, NY, US]]></name>
11
- <centroid>
12
- <latitude>40.7146</latitude>
13
- <longitude>-74.0071</longitude>
14
- </centroid>
15
- </administrativeScope>
16
- <geographicScope>
17
- <woeId>12761333</woeId>
18
- <type>Zip</type>
19
- <name><![CDATA[10001, New York, NY, US]]></name>
20
- <centroid>
21
- <latitude>40.7508</latitude>
22
- <longitude>-73.9994</longitude>
23
- </centroid>
24
- </geographicScope>
25
- <extents>
26
- <center>
27
- <latitude>40.7561</latitude>
28
- <longitude>-73.987</longitude>
29
- </center>
30
- <southWest>
31
- <latitude>40.7434</latitude>
32
- <longitude>-74.0148</longitude>
33
- </southWest>
34
- <northEast>
35
- <latitude>40.7582</latitude>
36
- <longitude>-73.984</longitude>
37
- </northEast>
38
- </extents>
39
- <placeDetails>
40
- <place>
41
- <woeId>12761333</woeId>
42
- <type>Zip</type>
43
- <name><![CDATA[10001, New York, NY, US]]></name>
44
- <centroid>
45
- <latitude>40.7561</latitude>
46
- <longitude>-73.987</longitude>
47
- </centroid>
48
- </place>
49
- <matchType>1</matchType>
50
- <weight>1</weight>
51
- <confidence>10</confidence>
52
- </placeDetails>
53
- <referenceList>
54
- <reference>
55
- <woeIds>12761333</woeIds>
56
- <start>-1</start>
57
- <end>-1</end>
58
- <isPlaintextMarker>0</isPlaintextMarker>
59
- <text><![CDATA[]]></text>
60
- <type>xpath</type>
61
- <xpath><![CDATA[/div[1]/span[2]]]></xpath>
62
- </reference>
63
- </referenceList>
64
- </document>
65
- </contentlocation>
@@ -1,65 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en">
3
- <processingTime>0.001045</processingTime>
4
- <version> build 091119</version>
5
- <documentLength>17</documentLength>
6
- <document>
7
- <administrativeScope>
8
- <woeId>2451206</woeId>
9
- <type>Town</type>
10
- <name><![CDATA[Millbrae, CA, US]]></name>
11
- <centroid>
12
- <latitude>37.6028</latitude>
13
- <longitude>-122.395</longitude>
14
- </centroid>
15
- </administrativeScope>
16
- <geographicScope>
17
- <woeId>2451206</woeId>
18
- <type>Town</type>
19
- <name><![CDATA[Millbrae, CA, US]]></name>
20
- <centroid>
21
- <latitude>37.6028</latitude>
22
- <longitude>-122.395</longitude>
23
- </centroid>
24
- </geographicScope>
25
- <extents>
26
- <center>
27
- <latitude>37.6028</latitude>
28
- <longitude>-122.395</longitude>
29
- </center>
30
- <southWest>
31
- <latitude>37.5811</latitude>
32
- <longitude>-122.429</longitude>
33
- </southWest>
34
- <northEast>
35
- <latitude>37.6181</latitude>
36
- <longitude>-122.373</longitude>
37
- </northEast>
38
- </extents>
39
- <placeDetails>
40
- <place>
41
- <woeId>2451206</woeId>
42
- <type>Town</type>
43
- <name><![CDATA[Millbrae, CA, US]]></name>
44
- <centroid>
45
- <latitude>37.6028</latitude>
46
- <longitude>-122.395</longitude>
47
- </centroid>
48
- </place>
49
- <matchType>0</matchType>
50
- <weight>1</weight>
51
- <confidence>10</confidence>
52
- </placeDetails>
53
- <referenceList>
54
- <reference>
55
- <woeIds>2451206</woeIds>
56
- <start>0</start>
57
- <end>17</end>
58
- <isPlaintextMarker>1</isPlaintextMarker>
59
- <text><![CDATA[Millbrae, CA, USA]]></text>
60
- <type>plaintext</type>
61
- <xpath><![CDATA[]]></xpath>
62
- </reference>
63
- </referenceList>
64
- </document>
65
- </contentlocation>
@@ -1,65 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en">
3
- <processingTime>0.001008</processingTime>
4
- <version> build 091119</version>
5
- <documentLength>12</documentLength>
6
- <document>
7
- <administrativeScope>
8
- <woeId>2459115</woeId>
9
- <type>Town</type>
10
- <name><![CDATA[New York, NY, US]]></name>
11
- <centroid>
12
- <latitude>40.7146</latitude>
13
- <longitude>-74.0071</longitude>
14
- </centroid>
15
- </administrativeScope>
16
- <geographicScope>
17
- <woeId>24701772</woeId>
18
- <type>Zone</type>
19
- <name><![CDATA[212 New York, NY, US]]></name>
20
- <centroid>
21
- <latitude>40.791</latitude>
22
- <longitude>-73.9659</longitude>
23
- </centroid>
24
- </geographicScope>
25
- <extents>
26
- <center>
27
- <latitude>40.7146</latitude>
28
- <longitude>-74.0071</longitude>
29
- </center>
30
- <southWest>
31
- <latitude>40.4957</latitude>
32
- <longitude>-74.2557</longitude>
33
- </southWest>
34
- <northEast>
35
- <latitude>40.9176</latitude>
36
- <longitude>-73.6895</longitude>
37
- </northEast>
38
- </extents>
39
- <placeDetails>
40
- <place>
41
- <woeId>2459115</woeId>
42
- <type>Town</type>
43
- <name><![CDATA[New York, NY, US]]></name>
44
- <centroid>
45
- <latitude>40.7146</latitude>
46
- <longitude>-74.0071</longitude>
47
- </centroid>
48
- </place>
49
- <matchType>0</matchType>
50
- <weight>1</weight>
51
- <confidence>10</confidence>
52
- </placeDetails>
53
- <referenceList>
54
- <reference>
55
- <woeIds>2459115</woeIds>
56
- <start>0</start>
57
- <end>12</end>
58
- <isPlaintextMarker>1</isPlaintextMarker>
59
- <text><![CDATA[New York, NY]]></text>
60
- <type>plaintext</type>
61
- <xpath><![CDATA[]]></xpath>
62
- </reference>
63
- </referenceList>
64
- </document>
65
- </contentlocation>
@@ -1,65 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <contentlocation xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xmlns="http://wherein.yahooapis.com/v1/schema" xml:lang="en">
3
- <processingTime>0.001045</processingTime>
4
- <version> build 091119</version>
5
- <documentLength>22</documentLength>
6
- <document>
7
- <administrativeScope>
8
- <woeId>2363796</woeId>
9
- <type>Town</type>
10
- <name><![CDATA[Beverly Hills, CA, US]]></name>
11
- <centroid>
12
- <latitude>34.0729</latitude>
13
- <longitude>-118.4</longitude>
14
- </centroid>
15
- </administrativeScope>
16
- <geographicScope>
17
- <woeId>2363796</woeId>
18
- <type>Town</type>
19
- <name><![CDATA[Beverly Hills, CA, US]]></name>
20
- <centroid>
21
- <latitude>34.0729</latitude>
22
- <longitude>-118.4</longitude>
23
- </centroid>
24
- </geographicScope>
25
- <extents>
26
- <center>
27
- <latitude>34.0729</latitude>
28
- <longitude>-118.4</longitude>
29
- </center>
30
- <southWest>
31
- <latitude>34.0541</latitude>
32
- <longitude>-118.439</longitude>
33
- </southWest>
34
- <northEast>
35
- <latitude>34.1296</latitude>
36
- <longitude>-118.372</longitude>
37
- </northEast>
38
- </extents>
39
- <placeDetails>
40
- <place>
41
- <woeId>2363796</woeId>
42
- <type>Town</type>
43
- <name><![CDATA[Beverly Hills, CA, US]]></name>
44
- <centroid>
45
- <latitude>34.0729</latitude>
46
- <longitude>-118.4</longitude>
47
- </centroid>
48
- </place>
49
- <matchType>0</matchType>
50
- <weight>1</weight>
51
- <confidence>10</confidence>
52
- </placeDetails>
53
- <referenceList>
54
- <reference>
55
- <woeIds>2363796</woeIds>
56
- <start>0</start>
57
- <end>22</end>
58
- <isPlaintextMarker>1</isPlaintextMarker>
59
- <text><![CDATA[Beverly Hills, CA, USA]]></text>
60
- <type>plaintext</type>
61
- <xpath><![CDATA[]]></xpath>
62
- </reference>
63
- </referenceList>
64
- </document>
65
- </contentlocation>
@@ -1,47 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
- <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
3
- <channel>
4
-
5
- <title>Yahoo! Weather - Paris, FR</title>
6
- <link>http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html</link>
7
- <description>Yahoo! Weather for Paris, FR</description>
8
- <language>en-us</language>
9
- <lastBuildDate>Thu, 02 Jun 2011 4:00 am CEST</lastBuildDate>
10
- <ttl>60</ttl>
11
- <yweather:location city="Paris" region="" country="France"/>
12
- <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
13
- <yweather:wind chill="54" direction="30" speed="10" />
14
- <yweather:atmosphere humidity="62" visibility="6.21" pressure="30.39" rising="0" />
15
- <yweather:astronomy sunrise="5:50 am" sunset="9:44 pm"/>
16
- <image>
17
- <title>Yahoo! Weather</title>
18
- <width>142</width>
19
- <height>18</height>
20
- <link>http://weather.yahoo.com</link>
21
- <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
22
- </image>
23
- <item>
24
- <title>Conditions for Paris, FR at 4:00 am CEST</title>
25
- <geo:lat>48.86</geo:lat>
26
- <geo:long>2.34</geo:long>
27
- <link>http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html</link>
28
- <pubDate>Thu, 02 Jun 2011 4:00 am CEST</pubDate>
29
- <yweather:condition text="Fair" code="33" temp="54" date="Thu, 02 Jun 2011 4:00 am CEST" />
30
- <description><![CDATA[
31
- <img src="http://l.yimg.com/a/i/us/we/52/33.gif"/><br />
32
- <b>Current Conditions:</b><br />
33
- Fair, 54 F<BR />
34
- <BR /><b>Forecast:</b><BR />
35
- Thu - Sunny. High: 75 Low: 56<br />
36
- Fri - Sunny. High: 82 Low: 68<br />
37
- <br />
38
- <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
39
- (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
40
- ]]></description>
41
- <yweather:forecast day="Thu" date="2 Jun 2011" low="56" high="75" text="Sunny" code="32" />
42
- <yweather:forecast day="Fri" date="3 Jun 2011" low="68" high="82" text="Sunny" code="32" />
43
- <guid isPermaLink="false">FRXX0076_2011_06_02_4_00_CEST</guid>
44
- </item>
45
- </channel>
46
- </rss>
47
- <!-- api5.weather.ac4.yahoo.com uncompressed/chunked Wed Jun 1 19:22:00 PDT 2011 -->
@@ -1,93 +0,0 @@
1
- <?xml version="1.0"?>
2
- <aws:weather xmlns:aws="http://www.aws.com/aws">
3
- <aws:api version="2.0"/>
4
- <aws:WebURL>http://weather.weatherbug.com/CA/Los Angeles-weather.html?ZCode=Z5546&amp;Units=1&amp;stat=LSNGN</aws:WebURL>
5
- <aws:InputLocationURL>http://weather.weatherbug.com/CA/Beverly Hills-weather.html?ZCode=Z5546&amp;Units=1</aws:InputLocationURL>
6
- <aws:ob>
7
- <aws:ob-date>
8
- <aws:year number="2011"/>
9
- <aws:month number="6" text="June" abbrv="Jun"/>
10
- <aws:day number="2" text="Thursday" abbrv="Thu"/>
11
- <aws:hour number="7" hour-24="07"/>
12
- <aws:minute number="01"/>
13
- <aws:second number="00"/>
14
- <aws:am-pm abbrv="AM"/>
15
- <aws:time-zone offset="-7" text="Pacific Daylight Time (USA)" abbrv="PDT"/>
16
- </aws:ob-date>
17
- <aws:requested-station-id/>
18
- <aws:station-id>LSNGN</aws:station-id>
19
- <aws:station>Alexander Hamilton Senior HS</aws:station>
20
- <aws:city-state zipcode="90034">Los Angeles, CA</aws:city-state>
21
- <aws:country>USA</aws:country>
22
- <aws:latitude>34.0336112976074</aws:latitude>
23
- <aws:longitude>-118.389999389648</aws:longitude>
24
- <aws:site-url>http://www.hamiltonhighschool.net/</aws:site-url>
25
- <aws:aux-temp units="&amp;deg;C">17</aws:aux-temp>
26
- <aws:aux-temp-rate units="&amp;deg;C">-0.5</aws:aux-temp-rate>
27
- <aws:current-condition icon="http://deskwx.weatherbug.com/images/Forecast/icons/cond007.gif">Sunny</aws:current-condition>
28
- <aws:dew-point units="&amp;deg;C">10</aws:dew-point>
29
- <aws:elevation units="m">40</aws:elevation>
30
- <aws:feels-like units="&amp;deg;C">14</aws:feels-like>
31
- <aws:gust-time>
32
- <aws:year number="2011"/>
33
- <aws:month number="6" text="June" abbrv="Jun"/>
34
- <aws:day number="2" text="Thursday" abbrv="Thu"/>
35
- <aws:hour number="12" hour-24="00"/>
36
- <aws:minute number="43"/>
37
- <aws:second number="00"/>
38
- <aws:am-pm abbrv="AM"/>
39
- <aws:time-zone offset="-7" text="Pacific Daylight Time (USA)" abbrv="PDT"/>
40
- </aws:gust-time>
41
- <aws:gust-direction>SE</aws:gust-direction>
42
- <aws:gust-direction-degrees>130</aws:gust-direction-degrees>
43
- <aws:gust-speed units="km/h">6</aws:gust-speed>
44
- <aws:humidity units="%">79</aws:humidity>
45
- <aws:humidity-high units="%">91</aws:humidity-high>
46
- <aws:humidity-low units="%">79</aws:humidity-low>
47
- <aws:humidity-rate>-6</aws:humidity-rate>
48
- <aws:indoor-temp units="&amp;deg;C">23</aws:indoor-temp>
49
- <aws:indoor-temp-rate units="&amp;deg;C">0</aws:indoor-temp-rate>
50
- <aws:light>4.3</aws:light>
51
- <aws:light-rate>4.2</aws:light-rate>
52
- <aws:moon-phase moon-phase-img="http://api.wxbug.net/images/moonphase/mphase01.gif">0</aws:moon-phase>
53
- <aws:pressure units="mb">1017.61</aws:pressure>
54
- <aws:pressure-high units="mb">1017.61</aws:pressure-high>
55
- <aws:pressure-low units="mb">1016.26</aws:pressure-low>
56
- <aws:pressure-rate units="mb/h">0.34</aws:pressure-rate>
57
- <aws:rain-month units="mm">0.00</aws:rain-month>
58
- <aws:rain-rate units="mm/h">0.00</aws:rain-rate>
59
- <aws:rain-rate-max units="mm/h">0.00</aws:rain-rate-max>
60
- <aws:rain-today units="mm">0.00</aws:rain-today>
61
- <aws:rain-year units="mm">158.50</aws:rain-year>
62
- <aws:temp units="&amp;deg;C">13.6</aws:temp>
63
- <aws:temp-high units="&amp;deg;C">14</aws:temp-high>
64
- <aws:temp-low units="&amp;deg;C">12</aws:temp-low>
65
- <aws:temp-rate units="&amp;deg;C/h">1.4</aws:temp-rate>
66
- <aws:sunrise>
67
- <aws:year number="2011"/>
68
- <aws:month number="6" text="June" abbrv="Jun"/>
69
- <aws:day number="2" text="Thursday" abbrv="Thu"/>
70
- <aws:hour number="5" hour-24="05"/>
71
- <aws:minute number="42"/>
72
- <aws:second number="59"/>
73
- <aws:am-pm abbrv="AM"/>
74
- <aws:time-zone offset="-7" text="Pacific Daylight Time (USA)" abbrv="PDT"/>
75
- </aws:sunrise>
76
- <aws:sunset>
77
- <aws:year number="2011"/>
78
- <aws:month number="6" text="June" abbrv="Jun"/>
79
- <aws:day number="2" text="Thursday" abbrv="Thu"/>
80
- <aws:hour number="8" hour-24="20"/>
81
- <aws:minute number="00"/>
82
- <aws:second number="17"/>
83
- <aws:am-pm abbrv="PM"/>
84
- <aws:time-zone offset="-7" text="Pacific Daylight Time (USA)" abbrv="PDT"/>
85
- </aws:sunset>
86
- <aws:wet-bulb units="&amp;deg;C">11.7</aws:wet-bulb>
87
- <aws:wind-speed units="km/h">0</aws:wind-speed>
88
- <aws:wind-speed-avg units="km/h">2</aws:wind-speed-avg>
89
- <aws:wind-direction>SE</aws:wind-direction>
90
- <aws:wind-direction-degrees>130</aws:wind-direction-degrees>
91
- <aws:wind-direction-avg>SE</aws:wind-direction-avg>
92
- </aws:ob>
93
- </aws:weather>