weather_weasel 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/spec/.DS_Store ADDED
Binary file
@@ -0,0 +1,294 @@
1
+ [
2
+ [0] {
3
+ "date" => {
4
+ "epoch" => "1362722400",
5
+ "pretty" => "10:00 PM PST on March 07, 2013",
6
+ "day" => 7,
7
+ "month" => 3,
8
+ "year" => 2013,
9
+ "yday" => 65,
10
+ "hour" => 22,
11
+ "min" => "00",
12
+ "sec" => 0,
13
+ "isdst" => "0",
14
+ "monthname" => "March",
15
+ "weekday_short" => "Thu",
16
+ "weekday" => "Thursday",
17
+ "ampm" => "PM",
18
+ "tz_short" => "PST",
19
+ "tz_long" => "America/Los_Angeles"
20
+ },
21
+ "period" => 1,
22
+ "high" => {
23
+ "fahrenheit" => "55",
24
+ "celsius" => "13"
25
+ },
26
+ "low" => {
27
+ "fahrenheit" => "37",
28
+ "celsius" => "3"
29
+ },
30
+ "conditions" => "Rain Showers",
31
+ "icon" => "rain",
32
+ "icon_url" => "http://icons-ak.wxug.com/i/c/k/rain.gif",
33
+ "skyicon" => "partlycloudy",
34
+ "pop" => 40,
35
+ "qpf_allday" => {
36
+ "in" => 0.07,
37
+ "mm" => 1.8
38
+ },
39
+ "qpf_day" => {
40
+ "in" => 0.04,
41
+ "mm" => 1.0
42
+ },
43
+ "qpf_night" => {
44
+ "in" => 0.0,
45
+ "mm" => 0.0
46
+ },
47
+ "snow_allday" => {
48
+ "in" => 0,
49
+ "cm" => 0
50
+ },
51
+ "snow_day" => {
52
+ "in" => 0,
53
+ "cm" => 0
54
+ },
55
+ "snow_night" => {
56
+ "in" => 0,
57
+ "cm" => 0
58
+ },
59
+ "maxwind" => {
60
+ "mph" => 9,
61
+ "kph" => 14,
62
+ "dir" => "South",
63
+ "degrees" => 172
64
+ },
65
+ "avewind" => {
66
+ "mph" => 7,
67
+ "kph" => 11,
68
+ "dir" => "WNW",
69
+ "degrees" => 294
70
+ },
71
+ "avehumidity" => 70,
72
+ "maxhumidity" => 90,
73
+ "minhumidity" => 59
74
+ },
75
+ [1] {
76
+ "date" => {
77
+ "epoch" => "1362808800",
78
+ "pretty" => "10:00 PM PST on March 08, 2013",
79
+ "day" => 8,
80
+ "month" => 3,
81
+ "year" => 2013,
82
+ "yday" => 66,
83
+ "hour" => 22,
84
+ "min" => "00",
85
+ "sec" => 0,
86
+ "isdst" => "0",
87
+ "monthname" => "March",
88
+ "weekday_short" => "Fri",
89
+ "weekday" => "Friday",
90
+ "ampm" => "PM",
91
+ "tz_short" => "PST",
92
+ "tz_long" => "America/Los_Angeles"
93
+ },
94
+ "period" => 2,
95
+ "high" => {
96
+ "fahrenheit" => "57",
97
+ "celsius" => "14"
98
+ },
99
+ "low" => {
100
+ "fahrenheit" => "37",
101
+ "celsius" => "3"
102
+ },
103
+ "conditions" => "Partly Cloudy",
104
+ "icon" => "partlycloudy",
105
+ "icon_url" => "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif",
106
+ "skyicon" => "partlycloudy",
107
+ "pop" => 10,
108
+ "qpf_allday" => {
109
+ "in" => 0.0,
110
+ "mm" => 0.0
111
+ },
112
+ "qpf_day" => {
113
+ "in" => 0.0,
114
+ "mm" => 0.0
115
+ },
116
+ "qpf_night" => {
117
+ "in" => 0.0,
118
+ "mm" => 0.0
119
+ },
120
+ "snow_allday" => {
121
+ "in" => 0,
122
+ "cm" => 0
123
+ },
124
+ "snow_day" => {
125
+ "in" => 0,
126
+ "cm" => 0
127
+ },
128
+ "snow_night" => {
129
+ "in" => 0,
130
+ "cm" => 0
131
+ },
132
+ "maxwind" => {
133
+ "mph" => 9,
134
+ "kph" => 14,
135
+ "dir" => "NW",
136
+ "degrees" => 312
137
+ },
138
+ "avewind" => {
139
+ "mph" => 7,
140
+ "kph" => 11,
141
+ "dir" => "NW",
142
+ "degrees" => 306
143
+ },
144
+ "avehumidity" => 68,
145
+ "maxhumidity" => 82,
146
+ "minhumidity" => 48
147
+ },
148
+ [2] {
149
+ "date" => {
150
+ "epoch" => "1362895200",
151
+ "pretty" => "10:00 PM PST on March 09, 2013",
152
+ "day" => 9,
153
+ "month" => 3,
154
+ "year" => 2013,
155
+ "yday" => 67,
156
+ "hour" => 22,
157
+ "min" => "00",
158
+ "sec" => 0,
159
+ "isdst" => "0",
160
+ "monthname" => "March",
161
+ "weekday_short" => "Sat",
162
+ "weekday" => "Saturday",
163
+ "ampm" => "PM",
164
+ "tz_short" => "PST",
165
+ "tz_long" => "America/Los_Angeles"
166
+ },
167
+ "period" => 3,
168
+ "high" => {
169
+ "fahrenheit" => "55",
170
+ "celsius" => "13"
171
+ },
172
+ "low" => {
173
+ "fahrenheit" => "45",
174
+ "celsius" => "7"
175
+ },
176
+ "conditions" => "Partly Cloudy",
177
+ "icon" => "partlycloudy",
178
+ "icon_url" => "http://icons-ak.wxug.com/i/c/k/partlycloudy.gif",
179
+ "skyicon" => "mostlysunny",
180
+ "pop" => 0,
181
+ "qpf_allday" => {
182
+ "in" => 0.0,
183
+ "mm" => 0.0
184
+ },
185
+ "qpf_day" => {
186
+ "in" => 0.0,
187
+ "mm" => 0.0
188
+ },
189
+ "qpf_night" => {
190
+ "in" => 0.0,
191
+ "mm" => 0.0
192
+ },
193
+ "snow_allday" => {
194
+ "in" => 0,
195
+ "cm" => 0
196
+ },
197
+ "snow_day" => {
198
+ "in" => 0,
199
+ "cm" => 0
200
+ },
201
+ "snow_night" => {
202
+ "in" => 0,
203
+ "cm" => 0
204
+ },
205
+ "maxwind" => {
206
+ "mph" => 9,
207
+ "kph" => 14,
208
+ "dir" => "NNW",
209
+ "degrees" => 329
210
+ },
211
+ "avewind" => {
212
+ "mph" => 4,
213
+ "kph" => 6,
214
+ "dir" => "NW",
215
+ "degrees" => 320
216
+ },
217
+ "avehumidity" => 51,
218
+ "maxhumidity" => 76,
219
+ "minhumidity" => 46
220
+ },
221
+ [3] {
222
+ "date" => {
223
+ "epoch" => "1362981600",
224
+ "pretty" => "11:00 PM PDT on March 10, 2013",
225
+ "day" => 10,
226
+ "month" => 3,
227
+ "year" => 2013,
228
+ "yday" => 68,
229
+ "hour" => 23,
230
+ "min" => "00",
231
+ "sec" => 0,
232
+ "isdst" => "1",
233
+ "monthname" => "March",
234
+ "weekday_short" => "Sun",
235
+ "weekday" => "Sunday",
236
+ "ampm" => "PM",
237
+ "tz_short" => "PDT",
238
+ "tz_long" => "America/Los_Angeles"
239
+ },
240
+ "period" => 4,
241
+ "high" => {
242
+ "fahrenheit" => "57",
243
+ "celsius" => "14"
244
+ },
245
+ "low" => {
246
+ "fahrenheit" => "39",
247
+ "celsius" => "4"
248
+ },
249
+ "conditions" => "Chance of Rain",
250
+ "icon" => "chancerain",
251
+ "icon_url" => "http://icons-ak.wxug.com/i/c/k/chancerain.gif",
252
+ "skyicon" => "cloudy",
253
+ "pop" => 40,
254
+ "qpf_allday" => {
255
+ "in" => 0.21,
256
+ "mm" => 5.3
257
+ },
258
+ "qpf_day" => {
259
+ "in" => 0.12,
260
+ "mm" => 3.0
261
+ },
262
+ "qpf_night" => {
263
+ "in" => 0.12,
264
+ "mm" => 3.0
265
+ },
266
+ "snow_allday" => {
267
+ "in" => 0,
268
+ "cm" => 0
269
+ },
270
+ "snow_day" => {
271
+ "in" => 0,
272
+ "cm" => 0
273
+ },
274
+ "snow_night" => {
275
+ "in" => 0,
276
+ "cm" => 0
277
+ },
278
+ "maxwind" => {
279
+ "mph" => 4,
280
+ "kph" => 6,
281
+ "dir" => "SSE",
282
+ "degrees" => 167
283
+ },
284
+ "avewind" => {
285
+ "mph" => 3,
286
+ "kph" => 5,
287
+ "dir" => "South",
288
+ "degrees" => 176
289
+ },
290
+ "avehumidity" => 71,
291
+ "maxhumidity" => 76,
292
+ "minhumidity" => 55
293
+ }
294
+ ]
@@ -0,0 +1,124 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.wunderground.com/api/<WUNDERGROUND_API_KEY>/forecast/q/OR/Portland.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ date:
16
+ - Mon, 11 Mar 2013 17:45:58 GMT
17
+ server:
18
+ - Apache/1.3.42 (Unix) PHP/5.3.2
19
+ cache-control:
20
+ - max-age=300
21
+ expires:
22
+ - Mon, 11 Mar 2013 17:50:58 GMT
23
+ x-creationtime:
24
+ - '0.147'
25
+ set-cookie:
26
+ - DT=1363023958:13065:365-f6; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT;
27
+ domain=.wunderground.com
28
+ connection:
29
+ - close
30
+ transfer-encoding:
31
+ - chunked
32
+ content-type:
33
+ - application/json; charset=UTF-8
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ! "\n{\n\t\"response\": {\n\t\t\"version\": \"0.1\"\n\t\t,\"termsofService\":
37
+ \"http://www.wunderground.com/weather/api/d/terms.html\"\n\t\t,\"features\":
38
+ {\n\t\t\"forecast\": 1\n\t\t}\n\t}\n\t\t,\n\t\"forecast\":{\n\t\t\"txt_forecast\":
39
+ {\n\t\t\"date\":\"8:00 AM PDT\",\n\t\t\"forecastday\": [\n\t\t{\n\t\t\"period\":0,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Monday\",\n\t\t\"fcttext\":\"Overcast
40
+ with a chance of rain. High of 61F. Winds less than 5 mph. Chance of rain
41
+ 40%.\",\n\t\t\"fcttext_metric\":\"Overcast with a chance of rain. High of
42
+ 16C. Winds less than 5 km/h. Chance of rain 40%.\",\n\t\t\"pop\":\"40\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":1,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Monday
43
+ Night\",\n\t\t\"fcttext\":\"Overcast with a chance of rain. Fog overnight.
44
+ Low of 46F. Winds less than 5 mph. Chance of rain 40%.\",\n\t\t\"fcttext_metric\":\"Overcast
45
+ with a chance of rain. Fog overnight. Low of 8C. Winds less than 5 km/h. Chance
46
+ of rain 40%.\",\n\t\t\"pop\":\"40\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":2,\n\t\t\"icon\":\"cloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/cloudy.gif\",\n\t\t\"title\":\"Tuesday\",\n\t\t\"fcttext\":\"Overcast
47
+ with a chance of rain. Fog early. High of 64F. Winds from the SSW at 5 to
48
+ 10 mph. Chance of rain 20%.\",\n\t\t\"fcttext_metric\":\"Overcast with a chance
49
+ of rain. Fog early. High of 18C. Winds from the SSW at 5 to 15 km/h.\",\n\t\t\"pop\":\"20\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":3,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Tuesday
50
+ Night\",\n\t\t\"fcttext\":\"Overcast with a chance of rain. Low of 50F. Winds
51
+ from the SSW at 5 to 10 mph. Chance of rain 30% with rainfall amounts near
52
+ 0.2 in. possible.\",\n\t\t\"fcttext_metric\":\"Overcast with a chance of rain.
53
+ Low of 10C. Winds from the SSW at 5 to 15 km/h. Chance of rain 30% with rainfall
54
+ amounts near 5.3 mm possible.\",\n\t\t\"pop\":\"30\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":4,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Wednesday\",\n\t\t\"fcttext\":\"Mostly
55
+ cloudy with a chance of rain. High of 64F. Winds from the SSW at 5 to 10 mph.
56
+ Chance of rain 30%.\",\n\t\t\"fcttext_metric\":\"Mostly cloudy with a chance
57
+ of rain. High of 18C. Winds from the SSW at 10 to 15 km/h. Chance of rain
58
+ 30%.\",\n\t\t\"pop\":\"30\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":5,\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"title\":\"Wednesday
59
+ Night\",\n\t\t\"fcttext\":\"Mostly cloudy with a chance of rain in the evening,
60
+ then overcast. Low of 52F. Winds less than 5 mph. Chance of rain 20%.\",\n\t\t\"fcttext_metric\":\"Mostly
61
+ cloudy with a chance of rain in the evening, then overcast. Low of 11C. Winds
62
+ less than 5 km/h.\",\n\t\t\"pop\":\"20\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":6,\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"title\":\"Thursday\",\n\t\t\"fcttext\":\"Overcast.
63
+ High of 61F. Winds from the SSW at 5 to 10 mph.\",\n\t\t\"fcttext_metric\":\"Overcast.
64
+ High of 16C. Winds from the SSW at 5 to 15 km/h.\",\n\t\t\"pop\":\"0\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":7,\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"title\":\"Thursday
65
+ Night\",\n\t\t\"fcttext\":\"Mostly cloudy in the evening, then overcast with
66
+ a chance of rain. Low of 54F. Winds from the South at 5 to 10 mph.\",\n\t\t\"fcttext_metric\":\"Mostly
67
+ cloudy in the evening, then overcast with a chance of rain. Low of 12C. Winds
68
+ from the South at 10 to 15 km/h.\",\n\t\t\"pop\":\"20\"\n\t\t}\n\t\t]\n\t\t},\n\t\t\"simpleforecast\":
69
+ {\n\t\t\"forecastday\": [\n\t\t{\"date\":{\n\t\"epoch\":\"1363068000\",\n\t\"pretty\":\"11:00
70
+ PM PDT on March 11, 2013\",\n\t\"day\":11,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":69,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Mon\",\n\t\"weekday\":\"Monday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":1,\n\t\t\"high\":
71
+ {\n\t\t\"fahrenheit\":\"61\",\n\t\t\"celsius\":\"16\"\n\t\t},\n\t\t\"low\":
72
+ {\n\t\t\"fahrenheit\":\"46\",\n\t\t\"celsius\":\"8\"\n\t\t},\n\t\t\"conditions\":\"Chance
73
+ of Rain\",\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"skyicon\":\"mostlycloudy\",\n\t\t\"pop\":40,\n\t\t\"qpf_allday\":
74
+ {\n\t\t\"in\": 0.01,\n\t\t\"mm\": 0.3\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
75
+ 0.00,\n\t\t\"mm\": 0.0\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.00,\n\t\t\"mm\":
76
+ 0.0\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
77
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
78
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 7,\n\t\t\"kph\":
79
+ 11,\n\t\t\"dir\": \"South\",\n\t\t\"degrees\": 180\n\t\t},\n\t\t\"avewind\":
80
+ {\n\t\t\"mph\": 5,\n\t\t\"kph\": 8,\n\t\t\"dir\": \"South\",\n\t\t\"degrees\":
81
+ 169\n\t\t},\n\t\t\"avehumidity\": 73,\n\t\t\"maxhumidity\": 95,\n\t\t\"minhumidity\":
82
+ 66\n\t\t}\n\t\t,\n\t\t{\"date\":{\n\t\"epoch\":\"1363154400\",\n\t\"pretty\":\"11:00
83
+ PM PDT on March 12, 2013\",\n\t\"day\":12,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":70,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Tue\",\n\t\"weekday\":\"Tuesday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":2,\n\t\t\"high\":
84
+ {\n\t\t\"fahrenheit\":\"64\",\n\t\t\"celsius\":\"18\"\n\t\t},\n\t\t\"low\":
85
+ {\n\t\t\"fahrenheit\":\"50\",\n\t\t\"celsius\":\"10\"\n\t\t},\n\t\t\"conditions\":\"Chance
86
+ of Rain\",\n\t\t\"icon\":\"cloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/cloudy.gif\",\n\t\t\"skyicon\":\"cloudy\",\n\t\t\"pop\":20,\n\t\t\"qpf_allday\":
87
+ {\n\t\t\"in\": 0.18,\n\t\t\"mm\": 4.6\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
88
+ 0.00,\n\t\t\"mm\": 0.0\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.21,\n\t\t\"mm\":
89
+ 5.3\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
90
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
91
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 8,\n\t\t\"kph\":
92
+ 13,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\": 192\n\t\t},\n\t\t\"avewind\":
93
+ {\n\t\t\"mph\": 6,\n\t\t\"kph\": 10,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\":
94
+ 196\n\t\t},\n\t\t\"avehumidity\": 72,\n\t\t\"maxhumidity\": 99,\n\t\t\"minhumidity\":
95
+ 65\n\t\t}\n\t\t,\n\t\t{\"date\":{\n\t\"epoch\":\"1363240800\",\n\t\"pretty\":\"11:00
96
+ PM PDT on March 13, 2013\",\n\t\"day\":13,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":71,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Wed\",\n\t\"weekday\":\"Wednesday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":3,\n\t\t\"high\":
97
+ {\n\t\t\"fahrenheit\":\"64\",\n\t\t\"celsius\":\"18\"\n\t\t},\n\t\t\"low\":
98
+ {\n\t\t\"fahrenheit\":\"52\",\n\t\t\"celsius\":\"11\"\n\t\t},\n\t\t\"conditions\":\"Chance
99
+ of Rain\",\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"skyicon\":\"mostlycloudy\",\n\t\t\"pop\":30,\n\t\t\"qpf_allday\":
100
+ {\n\t\t\"in\": 0.10,\n\t\t\"mm\": 2.5\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
101
+ 0.03,\n\t\t\"mm\": 0.8\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.04,\n\t\t\"mm\":
102
+ 1.0\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
103
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
104
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 8,\n\t\t\"kph\":
105
+ 13,\n\t\t\"dir\": \"SW\",\n\t\t\"degrees\": 217\n\t\t},\n\t\t\"avewind\":
106
+ {\n\t\t\"mph\": 6,\n\t\t\"kph\": 10,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\":
107
+ 203\n\t\t},\n\t\t\"avehumidity\": 65,\n\t\t\"maxhumidity\": 79,\n\t\t\"minhumidity\":
108
+ 52\n\t\t}\n\t\t,\n\t\t{\"date\":{\n\t\"epoch\":\"1363327200\",\n\t\"pretty\":\"11:00
109
+ PM PDT on March 14, 2013\",\n\t\"day\":14,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":72,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Thu\",\n\t\"weekday\":\"Thursday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":4,\n\t\t\"high\":
110
+ {\n\t\t\"fahrenheit\":\"61\",\n\t\t\"celsius\":\"16\"\n\t\t},\n\t\t\"low\":
111
+ {\n\t\t\"fahrenheit\":\"54\",\n\t\t\"celsius\":\"12\"\n\t\t},\n\t\t\"conditions\":\"Mostly
112
+ Cloudy\",\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"skyicon\":\"cloudy\",\n\t\t\"pop\":0,\n\t\t\"qpf_allday\":
113
+ {\n\t\t\"in\": 0.01,\n\t\t\"mm\": 0.3\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
114
+ 0.00,\n\t\t\"mm\": 0.0\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.03,\n\t\t\"mm\":
115
+ 0.8\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
116
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
117
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 7,\n\t\t\"kph\":
118
+ 11,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\": 211\n\t\t},\n\t\t\"avewind\":
119
+ {\n\t\t\"mph\": 6,\n\t\t\"kph\": 10,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\":
120
+ 200\n\t\t},\n\t\t\"avehumidity\": 61,\n\t\t\"maxhumidity\": 74,\n\t\t\"minhumidity\":
121
+ 54\n\t\t}\n\t\t]\n\t\t}\n\t}\n}\n"
122
+ http_version: '1.1'
123
+ recorded_at: Mon, 11 Mar 2013 17:45:59 GMT
124
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,124 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.wunderground.com/api/<WUNDERGROUND_API_KEY>/forecast/q/OR/Portland.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ date:
16
+ - Mon, 11 Mar 2013 17:45:59 GMT
17
+ server:
18
+ - Apache/1.3.42 (Unix) PHP/5.3.2
19
+ cache-control:
20
+ - max-age=300
21
+ expires:
22
+ - Mon, 11 Mar 2013 17:50:59 GMT
23
+ x-creationtime:
24
+ - '0.170'
25
+ set-cookie:
26
+ - DT=1363023959:18690:365-z3; path=/; expires=Fri, 01-Jan-2020 00:00:00 GMT;
27
+ domain=.wunderground.com
28
+ connection:
29
+ - close
30
+ transfer-encoding:
31
+ - chunked
32
+ content-type:
33
+ - application/json; charset=UTF-8
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ! "\n{\n\t\"response\": {\n\t\t\"version\": \"0.1\"\n\t\t,\"termsofService\":
37
+ \"http://www.wunderground.com/weather/api/d/terms.html\"\n\t\t,\"features\":
38
+ {\n\t\t\"forecast\": 1\n\t\t}\n\t}\n\t\t,\n\t\"forecast\":{\n\t\t\"txt_forecast\":
39
+ {\n\t\t\"date\":\"8:00 AM PDT\",\n\t\t\"forecastday\": [\n\t\t{\n\t\t\"period\":0,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Monday\",\n\t\t\"fcttext\":\"Overcast
40
+ with a chance of rain. High of 61F. Winds less than 5 mph. Chance of rain
41
+ 40%.\",\n\t\t\"fcttext_metric\":\"Overcast with a chance of rain. High of
42
+ 16C. Winds less than 5 km/h. Chance of rain 40%.\",\n\t\t\"pop\":\"40\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":1,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Monday
43
+ Night\",\n\t\t\"fcttext\":\"Overcast with a chance of rain. Fog overnight.
44
+ Low of 46F. Winds less than 5 mph. Chance of rain 40%.\",\n\t\t\"fcttext_metric\":\"Overcast
45
+ with a chance of rain. Fog overnight. Low of 8C. Winds less than 5 km/h. Chance
46
+ of rain 40%.\",\n\t\t\"pop\":\"40\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":2,\n\t\t\"icon\":\"cloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/cloudy.gif\",\n\t\t\"title\":\"Tuesday\",\n\t\t\"fcttext\":\"Overcast
47
+ with a chance of rain. Fog early. High of 64F. Winds from the SSW at 5 to
48
+ 10 mph. Chance of rain 20%.\",\n\t\t\"fcttext_metric\":\"Overcast with a chance
49
+ of rain. Fog early. High of 18C. Winds from the SSW at 5 to 15 km/h.\",\n\t\t\"pop\":\"20\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":3,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Tuesday
50
+ Night\",\n\t\t\"fcttext\":\"Overcast with a chance of rain. Low of 50F. Winds
51
+ from the SSW at 5 to 10 mph. Chance of rain 30% with rainfall amounts near
52
+ 0.2 in. possible.\",\n\t\t\"fcttext_metric\":\"Overcast with a chance of rain.
53
+ Low of 10C. Winds from the SSW at 5 to 15 km/h. Chance of rain 30% with rainfall
54
+ amounts near 5.3 mm possible.\",\n\t\t\"pop\":\"30\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":4,\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"title\":\"Wednesday\",\n\t\t\"fcttext\":\"Mostly
55
+ cloudy with a chance of rain. High of 64F. Winds from the SSW at 5 to 10 mph.
56
+ Chance of rain 30%.\",\n\t\t\"fcttext_metric\":\"Mostly cloudy with a chance
57
+ of rain. High of 18C. Winds from the SSW at 10 to 15 km/h. Chance of rain
58
+ 30%.\",\n\t\t\"pop\":\"30\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":5,\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"title\":\"Wednesday
59
+ Night\",\n\t\t\"fcttext\":\"Mostly cloudy with a chance of rain in the evening,
60
+ then overcast. Low of 52F. Winds less than 5 mph. Chance of rain 20%.\",\n\t\t\"fcttext_metric\":\"Mostly
61
+ cloudy with a chance of rain in the evening, then overcast. Low of 11C. Winds
62
+ less than 5 km/h.\",\n\t\t\"pop\":\"20\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":6,\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"title\":\"Thursday\",\n\t\t\"fcttext\":\"Overcast.
63
+ High of 61F. Winds from the SSW at 5 to 10 mph.\",\n\t\t\"fcttext_metric\":\"Overcast.
64
+ High of 16C. Winds from the SSW at 5 to 15 km/h.\",\n\t\t\"pop\":\"0\"\n\t\t}\n\t\t,\n\t\t{\n\t\t\"period\":7,\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"title\":\"Thursday
65
+ Night\",\n\t\t\"fcttext\":\"Mostly cloudy in the evening, then overcast with
66
+ a chance of rain. Low of 54F. Winds from the South at 5 to 10 mph.\",\n\t\t\"fcttext_metric\":\"Mostly
67
+ cloudy in the evening, then overcast with a chance of rain. Low of 12C. Winds
68
+ from the South at 10 to 15 km/h.\",\n\t\t\"pop\":\"20\"\n\t\t}\n\t\t]\n\t\t},\n\t\t\"simpleforecast\":
69
+ {\n\t\t\"forecastday\": [\n\t\t{\"date\":{\n\t\"epoch\":\"1363068000\",\n\t\"pretty\":\"11:00
70
+ PM PDT on March 11, 2013\",\n\t\"day\":11,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":69,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Mon\",\n\t\"weekday\":\"Monday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":1,\n\t\t\"high\":
71
+ {\n\t\t\"fahrenheit\":\"61\",\n\t\t\"celsius\":\"16\"\n\t\t},\n\t\t\"low\":
72
+ {\n\t\t\"fahrenheit\":\"46\",\n\t\t\"celsius\":\"8\"\n\t\t},\n\t\t\"conditions\":\"Chance
73
+ of Rain\",\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"skyicon\":\"mostlycloudy\",\n\t\t\"pop\":40,\n\t\t\"qpf_allday\":
74
+ {\n\t\t\"in\": 0.01,\n\t\t\"mm\": 0.3\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
75
+ 0.00,\n\t\t\"mm\": 0.0\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.00,\n\t\t\"mm\":
76
+ 0.0\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
77
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
78
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 7,\n\t\t\"kph\":
79
+ 11,\n\t\t\"dir\": \"South\",\n\t\t\"degrees\": 180\n\t\t},\n\t\t\"avewind\":
80
+ {\n\t\t\"mph\": 5,\n\t\t\"kph\": 8,\n\t\t\"dir\": \"South\",\n\t\t\"degrees\":
81
+ 169\n\t\t},\n\t\t\"avehumidity\": 73,\n\t\t\"maxhumidity\": 95,\n\t\t\"minhumidity\":
82
+ 66\n\t\t}\n\t\t,\n\t\t{\"date\":{\n\t\"epoch\":\"1363154400\",\n\t\"pretty\":\"11:00
83
+ PM PDT on March 12, 2013\",\n\t\"day\":12,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":70,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Tue\",\n\t\"weekday\":\"Tuesday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":2,\n\t\t\"high\":
84
+ {\n\t\t\"fahrenheit\":\"64\",\n\t\t\"celsius\":\"18\"\n\t\t},\n\t\t\"low\":
85
+ {\n\t\t\"fahrenheit\":\"50\",\n\t\t\"celsius\":\"10\"\n\t\t},\n\t\t\"conditions\":\"Chance
86
+ of Rain\",\n\t\t\"icon\":\"cloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/cloudy.gif\",\n\t\t\"skyicon\":\"cloudy\",\n\t\t\"pop\":20,\n\t\t\"qpf_allday\":
87
+ {\n\t\t\"in\": 0.18,\n\t\t\"mm\": 4.6\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
88
+ 0.00,\n\t\t\"mm\": 0.0\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.21,\n\t\t\"mm\":
89
+ 5.3\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
90
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
91
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 8,\n\t\t\"kph\":
92
+ 13,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\": 192\n\t\t},\n\t\t\"avewind\":
93
+ {\n\t\t\"mph\": 6,\n\t\t\"kph\": 10,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\":
94
+ 196\n\t\t},\n\t\t\"avehumidity\": 72,\n\t\t\"maxhumidity\": 99,\n\t\t\"minhumidity\":
95
+ 65\n\t\t}\n\t\t,\n\t\t{\"date\":{\n\t\"epoch\":\"1363240800\",\n\t\"pretty\":\"11:00
96
+ PM PDT on March 13, 2013\",\n\t\"day\":13,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":71,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Wed\",\n\t\"weekday\":\"Wednesday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":3,\n\t\t\"high\":
97
+ {\n\t\t\"fahrenheit\":\"64\",\n\t\t\"celsius\":\"18\"\n\t\t},\n\t\t\"low\":
98
+ {\n\t\t\"fahrenheit\":\"52\",\n\t\t\"celsius\":\"11\"\n\t\t},\n\t\t\"conditions\":\"Chance
99
+ of Rain\",\n\t\t\"icon\":\"chancerain\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/chancerain.gif\",\n\t\t\"skyicon\":\"mostlycloudy\",\n\t\t\"pop\":30,\n\t\t\"qpf_allday\":
100
+ {\n\t\t\"in\": 0.10,\n\t\t\"mm\": 2.5\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
101
+ 0.03,\n\t\t\"mm\": 0.8\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.04,\n\t\t\"mm\":
102
+ 1.0\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
103
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
104
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 8,\n\t\t\"kph\":
105
+ 13,\n\t\t\"dir\": \"SW\",\n\t\t\"degrees\": 217\n\t\t},\n\t\t\"avewind\":
106
+ {\n\t\t\"mph\": 6,\n\t\t\"kph\": 10,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\":
107
+ 203\n\t\t},\n\t\t\"avehumidity\": 65,\n\t\t\"maxhumidity\": 79,\n\t\t\"minhumidity\":
108
+ 52\n\t\t}\n\t\t,\n\t\t{\"date\":{\n\t\"epoch\":\"1363327200\",\n\t\"pretty\":\"11:00
109
+ PM PDT on March 14, 2013\",\n\t\"day\":14,\n\t\"month\":3,\n\t\"year\":2013,\n\t\"yday\":72,\n\t\"hour\":23,\n\t\"min\":\"00\",\n\t\"sec\":0,\n\t\"isdst\":\"1\",\n\t\"monthname\":\"March\",\n\t\"weekday_short\":\"Thu\",\n\t\"weekday\":\"Thursday\",\n\t\"ampm\":\"PM\",\n\t\"tz_short\":\"PDT\",\n\t\"tz_long\":\"America/Los_Angeles\"\n},\n\t\t\"period\":4,\n\t\t\"high\":
110
+ {\n\t\t\"fahrenheit\":\"61\",\n\t\t\"celsius\":\"16\"\n\t\t},\n\t\t\"low\":
111
+ {\n\t\t\"fahrenheit\":\"54\",\n\t\t\"celsius\":\"12\"\n\t\t},\n\t\t\"conditions\":\"Mostly
112
+ Cloudy\",\n\t\t\"icon\":\"mostlycloudy\",\n\t\t\"icon_url\":\"http://icons-ak.wxug.com/i/c/k/mostlycloudy.gif\",\n\t\t\"skyicon\":\"cloudy\",\n\t\t\"pop\":0,\n\t\t\"qpf_allday\":
113
+ {\n\t\t\"in\": 0.01,\n\t\t\"mm\": 0.3\n\t\t},\n\t\t\"qpf_day\": {\n\t\t\"in\":
114
+ 0.00,\n\t\t\"mm\": 0.0\n\t\t},\n\t\t\"qpf_night\": {\n\t\t\"in\": 0.03,\n\t\t\"mm\":
115
+ 0.8\n\t\t},\n\t\t\"snow_allday\": {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_day\":
116
+ {\n\t\t\"in\": 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"snow_night\": {\n\t\t\"in\":
117
+ 0,\n\t\t\"cm\": 0\n\t\t},\n\t\t\"maxwind\": {\n\t\t\"mph\": 7,\n\t\t\"kph\":
118
+ 11,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\": 211\n\t\t},\n\t\t\"avewind\":
119
+ {\n\t\t\"mph\": 6,\n\t\t\"kph\": 10,\n\t\t\"dir\": \"SSW\",\n\t\t\"degrees\":
120
+ 200\n\t\t},\n\t\t\"avehumidity\": 61,\n\t\t\"maxhumidity\": 74,\n\t\t\"minhumidity\":
121
+ 54\n\t\t}\n\t\t]\n\t\t}\n\t}\n}\n"
122
+ http_version: '1.1'
123
+ recorded_at: Mon, 11 Mar 2013 17:46:00 GMT
124
+ recorded_with: VCR 2.4.0