simple_forecast 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f75d7c0552ace3efb79aef082d5e4ed1ea4e8643
4
+ data.tar.gz: f84c79f3632a26f1d013a6f9060a85b3a2108f1c
5
+ SHA512:
6
+ metadata.gz: 07fd89d3acd2384fa273c04c83e82a46032facafed4019daba67cdbe0a822070686711b561b88035ac87942af5a0ff259e8b36a7963f90145d05f5724cdd3374
7
+ data.tar.gz: 68c4417b2d25c56b389bbc82b22bc7d91b3516dff8696b31e1e981c52b35fde380a87e9d366c11a02bc075509de844a9c67e56b0a62be1c3ace4c7667b9dd19a
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
14
+
15
+ # YARD artifacts
16
+ .yardoc
17
+ _yardoc
18
+ doc/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Anders Ramsay
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ simple_weather
2
+ ==============
3
+
4
+ An app for getting a very simple weather forecast
data/bin/forecast ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # require 'simple_forecast'
4
+
5
+ require_relative '../config/environment.rb'
6
+
7
+ cli = CLI.new
8
+
9
+ if ARGV.empty?
10
+ # this should return the same as 'forecast today'
11
+ ARGV[0] = "help"
12
+ cli.send(ARGV[0])
13
+ else
14
+ cli.send(ARGV[0])
15
+ end
data/bin/run.rb ADDED
@@ -0,0 +1,9 @@
1
+ require_relative '../config/environment.rb'
2
+
3
+ # weather = WeatherData.new
4
+ # forecast = Forecast.new(weather)
5
+ # forecast.generate_forecast
6
+
7
+ CLI.new
8
+
9
+ # binding.pry
data/config/cli.rb ADDED
@@ -0,0 +1,50 @@
1
+ class CLI
2
+
3
+ def initialize
4
+ @on = true
5
+ #self.call
6
+ end
7
+
8
+ def on?
9
+ @on
10
+ end
11
+
12
+ def call
13
+ while @on == true
14
+ self.command
15
+ end
16
+ end
17
+
18
+ def command
19
+ input = command_request
20
+ self.send(input)
21
+ end
22
+
23
+ def command_request
24
+ gets.downcase.strip
25
+ end
26
+
27
+ ### COMMANDS ###
28
+ # COMMANDS = {
29
+ # :now => ["", "now", "today"],
30
+ # :tonight => ["tonight"],
31
+ # :tomorrow => ["tomorrow"],
32
+ # :next_week => ["next week"]
33
+ # :help => ["help"]
34
+ # }
35
+
36
+ def exit
37
+ @on = false
38
+ end
39
+
40
+ def help
41
+ puts "Please enter something like 'today' or 'tomorrow'."
42
+ end
43
+
44
+ def tomorrow
45
+ get_data = Forecast.new(WeatherData.new)
46
+ puts get_data.generate_forecast
47
+ # exit
48
+ end
49
+
50
+ end
@@ -0,0 +1,9 @@
1
+ require 'forecast_io'
2
+ #require 'pry'
3
+
4
+ ForecastIO.api_key = '2b5cab93f5051c1207517df51d39ceee'
5
+
6
+ require_relative '../config/cli'
7
+ require_relative '../lib/models/scraper'
8
+ require_relative '../lib/models/forecast'
9
+ require_relative '../lib/weather_data'
@@ -0,0 +1,912 @@
1
+ {"latitude"=>40.70536,
2
+ "longitude"=>74.013963,
3
+ "timezone"=>"Asia/Bishkek",
4
+ "offset"=>6,
5
+ "currently"=>
6
+ {"time"=>1382199593,
7
+ "summary"=>"Clear",
8
+ "icon"=>"clear-night",
9
+ "precipIntensity"=>0,
10
+ "precipProbability"=>0,
11
+ "temperature"=>36.23,
12
+ "apparentTemperature"=>36.23,
13
+ "dewPoint"=>14.37,
14
+ "windSpeed"=>2.38,
15
+ "windBearing"=>188,
16
+ "cloudCover"=>0.02,
17
+ "humidity"=>0.4,
18
+ "pressure"=>1022.88,
19
+ "ozone"=>296.97},
20
+ "hourly"=>
21
+ {"summary"=>"Clear throughout the day.",
22
+ "icon"=>"clear-night",
23
+ "data"=>
24
+ [{"time"=>1382198400,
25
+ "summary"=>"Clear",
26
+ "icon"=>"clear-night",
27
+ "precipIntensity"=>0,
28
+ "precipProbability"=>0,
29
+ "temperature"=>36.97,
30
+ "apparentTemperature"=>36.97,
31
+ "dewPoint"=>14.82,
32
+ "windSpeed"=>2.25,
33
+ "windBearing"=>190,
34
+ "cloudCover"=>0.03,
35
+ "humidity"=>0.4,
36
+ "pressure"=>1022.84,
37
+ "ozone"=>296.46},
38
+ {"time"=>1382202000,
39
+ "summary"=>"Clear",
40
+ "icon"=>"clear-night",
41
+ "precipIntensity"=>0,
42
+ "precipProbability"=>0,
43
+ "temperature"=>34.76,
44
+ "apparentTemperature"=>34.76,
45
+ "dewPoint"=>13.47,
46
+ "windSpeed"=>2.65,
47
+ "windBearing"=>184,
48
+ "cloudCover"=>0.02,
49
+ "humidity"=>0.41,
50
+ "pressure"=>1022.95,
51
+ "ozone"=>298.01},
52
+ {"time"=>1382205600,
53
+ "summary"=>"Clear",
54
+ "icon"=>"clear-night",
55
+ "precipIntensity"=>0,
56
+ "precipProbability"=>0,
57
+ "temperature"=>32.85,
58
+ "apparentTemperature"=>32.85,
59
+ "dewPoint"=>12.32,
60
+ "windSpeed"=>3,
61
+ "windBearing"=>178,
62
+ "cloudCover"=>0.02,
63
+ "humidity"=>0.42,
64
+ "pressure"=>1022.97,
65
+ "ozone"=>298.98},
66
+ {"time"=>1382209200,
67
+ "summary"=>"Clear",
68
+ "icon"=>"clear-night",
69
+ "precipIntensity"=>0,
70
+ "precipProbability"=>0,
71
+ "temperature"=>31.05,
72
+ "apparentTemperature"=>27.96,
73
+ "dewPoint"=>11.34,
74
+ "windSpeed"=>3.2,
75
+ "windBearing"=>173,
76
+ "cloudCover"=>0.01,
77
+ "humidity"=>0.43,
78
+ "pressure"=>1022.91,
79
+ "ozone"=>299.03},
80
+ {"time"=>1382212800,
81
+ "summary"=>"Clear",
82
+ "icon"=>"clear-night",
83
+ "precipIntensity"=>0,
84
+ "precipProbability"=>0,
85
+ "temperature"=>29.33,
86
+ "apparentTemperature"=>25.77,
87
+ "dewPoint"=>10.49,
88
+ "windSpeed"=>3.37,
89
+ "windBearing"=>168,
90
+ "cloudCover"=>0,
91
+ "humidity"=>0.45,
92
+ "pressure"=>1022.8,
93
+ "ozone"=>298.51},
94
+ {"time"=>1382216400,
95
+ "summary"=>"Clear",
96
+ "icon"=>"clear-night",
97
+ "precipIntensity"=>0,
98
+ "precipProbability"=>0,
99
+ "temperature"=>27.89,
100
+ "apparentTemperature"=>24.04,
101
+ "dewPoint"=>9.85,
102
+ "windSpeed"=>3.44,
103
+ "windBearing"=>163,
104
+ "cloudCover"=>0,
105
+ "humidity"=>0.46,
106
+ "pressure"=>1022.61,
107
+ "ozone"=>297.84},
108
+ {"time"=>1382220000,
109
+ "summary"=>"Clear",
110
+ "icon"=>"clear-night",
111
+ "precipIntensity"=>0,
112
+ "precipProbability"=>0,
113
+ "temperature"=>26.53,
114
+ "apparentTemperature"=>22.62,
115
+ "dewPoint"=>9.3,
116
+ "windSpeed"=>3.34,
117
+ "windBearing"=>159,
118
+ "cloudCover"=>0,
119
+ "humidity"=>0.48,
120
+ "pressure"=>1022.47,
121
+ "ozone"=>297.14},
122
+ {"time"=>1382223600,
123
+ "summary"=>"Clear",
124
+ "icon"=>"clear-night",
125
+ "precipIntensity"=>0,
126
+ "precipProbability"=>0,
127
+ "temperature"=>25.63,
128
+ "apparentTemperature"=>21.87,
129
+ "dewPoint"=>8.99,
130
+ "windSpeed"=>3.16,
131
+ "windBearing"=>157,
132
+ "cloudCover"=>0,
133
+ "humidity"=>0.49,
134
+ "pressure"=>1022.36,
135
+ "ozone"=>296.3},
136
+ {"time"=>1382227200,
137
+ "summary"=>"Clear",
138
+ "icon"=>"clear-night",
139
+ "precipIntensity"=>0,
140
+ "precipProbability"=>0,
141
+ "temperature"=>26.22,
142
+ "apparentTemperature"=>22.76,
143
+ "dewPoint"=>9.48,
144
+ "windSpeed"=>3.01,
145
+ "windBearing"=>157,
146
+ "cloudCover"=>0,
147
+ "humidity"=>0.49,
148
+ "pressure"=>1022.32,
149
+ "ozone"=>295.43},
150
+ {"time"=>1382230800,
151
+ "summary"=>"Clear",
152
+ "icon"=>"clear-night",
153
+ "precipIntensity"=>0,
154
+ "precipProbability"=>0,
155
+ "temperature"=>29.25,
156
+ "apparentTemperature"=>29.25,
157
+ "dewPoint"=>11.3,
158
+ "windSpeed"=>2.9,
159
+ "windBearing"=>156,
160
+ "cloudCover"=>0,
161
+ "humidity"=>0.46,
162
+ "pressure"=>1022.46,
163
+ "ozone"=>294.61},
164
+ {"time"=>1382234400,
165
+ "summary"=>"Clear",
166
+ "icon"=>"clear-day",
167
+ "precipIntensity"=>0,
168
+ "precipProbability"=>0,
169
+ "temperature"=>33.99,
170
+ "apparentTemperature"=>33.99,
171
+ "dewPoint"=>13.91,
172
+ "windSpeed"=>2.83,
173
+ "windBearing"=>155,
174
+ "cloudCover"=>0,
175
+ "humidity"=>0.43,
176
+ "pressure"=>1022.57,
177
+ "ozone"=>293.76},
178
+ {"time"=>1382238000,
179
+ "summary"=>"Clear",
180
+ "icon"=>"clear-day",
181
+ "precipIntensity"=>0,
182
+ "precipProbability"=>0,
183
+ "temperature"=>38.89,
184
+ "apparentTemperature"=>38.89,
185
+ "dewPoint"=>16.34,
186
+ "windSpeed"=>2.88,
187
+ "windBearing"=>158,
188
+ "cloudCover"=>0,
189
+ "humidity"=>0.39,
190
+ "pressure"=>1022.41,
191
+ "ozone"=>292.79},
192
+ {"time"=>1382241600,
193
+ "summary"=>"Clear",
194
+ "icon"=>"clear-day",
195
+ "precipIntensity"=>0,
196
+ "precipProbability"=>0,
197
+ "temperature"=>43.29,
198
+ "apparentTemperature"=>41.96,
199
+ "dewPoint"=>18.25,
200
+ "windSpeed"=>3.11,
201
+ "windBearing"=>174,
202
+ "cloudCover"=>0,
203
+ "humidity"=>0.36,
204
+ "pressure"=>1021.97,
205
+ "ozone"=>291.71},
206
+ {"time"=>1382245200,
207
+ "summary"=>"Clear",
208
+ "icon"=>"clear-day",
209
+ "precipIntensity"=>0,
210
+ "precipProbability"=>0,
211
+ "temperature"=>47.21,
212
+ "apparentTemperature"=>46.08,
213
+ "dewPoint"=>19.76,
214
+ "windSpeed"=>3.47,
215
+ "windBearing"=>205,
216
+ "cloudCover"=>0,
217
+ "humidity"=>0.33,
218
+ "pressure"=>1021.42,
219
+ "ozone"=>290.49},
220
+ {"time"=>1382248800,
221
+ "summary"=>"Clear",
222
+ "icon"=>"clear-day",
223
+ "precipIntensity"=>0,
224
+ "precipProbability"=>0,
225
+ "temperature"=>50.11,
226
+ "apparentTemperature"=>50.11,
227
+ "dewPoint"=>20.82,
228
+ "windSpeed"=>3.88,
229
+ "windBearing"=>226,
230
+ "cloudCover"=>0,
231
+ "humidity"=>0.31,
232
+ "pressure"=>1020.88,
233
+ "ozone"=>288.97},
234
+ {"time"=>1382252400,
235
+ "summary"=>"Clear",
236
+ "icon"=>"clear-day",
237
+ "precipIntensity"=>0,
238
+ "precipProbability"=>0,
239
+ "temperature"=>52.05,
240
+ "apparentTemperature"=>52.05,
241
+ "dewPoint"=>21.67,
242
+ "windSpeed"=>4.45,
243
+ "windBearing"=>234,
244
+ "cloudCover"=>0,
245
+ "humidity"=>0.3,
246
+ "pressure"=>1020.32,
247
+ "ozone"=>286.9},
248
+ {"time"=>1382256000,
249
+ "summary"=>"Clear",
250
+ "icon"=>"clear-day",
251
+ "precipIntensity"=>0,
252
+ "precipProbability"=>0,
253
+ "temperature"=>53.24,
254
+ "apparentTemperature"=>53.24,
255
+ "dewPoint"=>22.35,
256
+ "windSpeed"=>5.05,
257
+ "windBearing"=>238,
258
+ "cloudCover"=>0,
259
+ "humidity"=>0.3,
260
+ "pressure"=>1019.74,
261
+ "ozone"=>284.53},
262
+ {"time"=>1382259600,
263
+ "summary"=>"Clear",
264
+ "icon"=>"clear-day",
265
+ "precipIntensity"=>0,
266
+ "precipProbability"=>0,
267
+ "temperature"=>53.37,
268
+ "apparentTemperature"=>53.37,
269
+ "dewPoint"=>22.56,
270
+ "windSpeed"=>5.25,
271
+ "windBearing"=>241,
272
+ "cloudCover"=>0,
273
+ "humidity"=>0.3,
274
+ "pressure"=>1019.3,
275
+ "ozone"=>282.32},
276
+ {"time"=>1382263200,
277
+ "summary"=>"Clear",
278
+ "icon"=>"clear-day",
279
+ "precipIntensity"=>0,
280
+ "precipProbability"=>0,
281
+ "temperature"=>52.17,
282
+ "apparentTemperature"=>52.17,
283
+ "dewPoint"=>22.1,
284
+ "windSpeed"=>4.8,
285
+ "windBearing"=>244,
286
+ "cloudCover"=>0,
287
+ "humidity"=>0.31,
288
+ "pressure"=>1019.17,
289
+ "ozone"=>280.38},
290
+ {"time"=>1382266800,
291
+ "summary"=>"Clear",
292
+ "icon"=>"clear-day",
293
+ "precipIntensity"=>0,
294
+ "precipProbability"=>0,
295
+ "temperature"=>50.03,
296
+ "apparentTemperature"=>50.03,
297
+ "dewPoint"=>21.12,
298
+ "windSpeed"=>4.02,
299
+ "windBearing"=>246,
300
+ "cloudCover"=>0,
301
+ "humidity"=>0.32,
302
+ "pressure"=>1019.38,
303
+ "ozone"=>278.61},
304
+ {"time"=>1382270400,
305
+ "summary"=>"Clear",
306
+ "icon"=>"clear-day",
307
+ "precipIntensity"=>0,
308
+ "precipProbability"=>0,
309
+ "temperature"=>47.63,
310
+ "apparentTemperature"=>46.68,
311
+ "dewPoint"=>19.83,
312
+ "windSpeed"=>3.34,
313
+ "windBearing"=>242,
314
+ "cloudCover"=>0,
315
+ "humidity"=>0.33,
316
+ "pressure"=>1019.73,
317
+ "ozone"=>277.21},
318
+ {"time"=>1382274000,
319
+ "summary"=>"Clear",
320
+ "icon"=>"clear-night",
321
+ "precipIntensity"=>0,
322
+ "precipProbability"=>0,
323
+ "temperature"=>44.88,
324
+ "apparentTemperature"=>44.88,
325
+ "dewPoint"=>18.19,
326
+ "windSpeed"=>2.87,
327
+ "windBearing"=>230,
328
+ "cloudCover"=>0,
329
+ "humidity"=>0.34,
330
+ "pressure"=>1020.18,
331
+ "ozone"=>276.44},
332
+ {"time"=>1382277600,
333
+ "summary"=>"Clear",
334
+ "icon"=>"clear-night",
335
+ "precipIntensity"=>0,
336
+ "precipProbability"=>0,
337
+ "temperature"=>41.6,
338
+ "apparentTemperature"=>41.6,
339
+ "dewPoint"=>16.13,
340
+ "windSpeed"=>2.52,
341
+ "windBearing"=>210,
342
+ "cloudCover"=>0,
343
+ "humidity"=>0.35,
344
+ "pressure"=>1020.74,
345
+ "ozone"=>276.04},
346
+ {"time"=>1382281200,
347
+ "summary"=>"Clear",
348
+ "icon"=>"clear-night",
349
+ "precipIntensity"=>0,
350
+ "precipProbability"=>0,
351
+ "temperature"=>38.32,
352
+ "apparentTemperature"=>38.32,
353
+ "dewPoint"=>13.93,
354
+ "windSpeed"=>2.37,
355
+ "windBearing"=>194,
356
+ "cloudCover"=>0,
357
+ "humidity"=>0.36,
358
+ "pressure"=>1021.24,
359
+ "ozone"=>275.41},
360
+ {"time"=>1382284800,
361
+ "summary"=>"Clear",
362
+ "icon"=>"clear-night",
363
+ "precipIntensity"=>0,
364
+ "precipProbability"=>0,
365
+ "temperature"=>35.43,
366
+ "apparentTemperature"=>35.43,
367
+ "dewPoint"=>11.79,
368
+ "windSpeed"=>2.5,
369
+ "windBearing"=>183,
370
+ "cloudCover"=>0,
371
+ "humidity"=>0.37,
372
+ "pressure"=>1021.58,
373
+ "ozone"=>274.3},
374
+ {"time"=>1382288400,
375
+ "summary"=>"Clear",
376
+ "icon"=>"clear-night",
377
+ "precipIntensity"=>0,
378
+ "precipProbability"=>0,
379
+ "temperature"=>32.95,
380
+ "apparentTemperature"=>32.95,
381
+ "dewPoint"=>9.8,
382
+ "windSpeed"=>2.79,
383
+ "windBearing"=>174,
384
+ "cloudCover"=>0,
385
+ "humidity"=>0.37,
386
+ "pressure"=>1021.8,
387
+ "ozone"=>272.97},
388
+ {"time"=>1382292000,
389
+ "summary"=>"Clear",
390
+ "icon"=>"clear-night",
391
+ "precipIntensity"=>0,
392
+ "precipProbability"=>0,
393
+ "temperature"=>30.84,
394
+ "apparentTemperature"=>30.84,
395
+ "dewPoint"=>8.06,
396
+ "windSpeed"=>2.98,
397
+ "windBearing"=>167,
398
+ "cloudCover"=>0,
399
+ "humidity"=>0.38,
400
+ "pressure"=>1021.94,
401
+ "ozone"=>271.6},
402
+ {"time"=>1382295600,
403
+ "summary"=>"Clear",
404
+ "icon"=>"clear-night",
405
+ "precipIntensity"=>0,
406
+ "precipProbability"=>0,
407
+ "temperature"=>28.84,
408
+ "apparentTemperature"=>28.84,
409
+ "dewPoint"=>6.42,
410
+ "windSpeed"=>2.99,
411
+ "windBearing"=>164,
412
+ "cloudCover"=>0,
413
+ "humidity"=>0.38,
414
+ "pressure"=>1022.03,
415
+ "ozone"=>270.15},
416
+ {"time"=>1382299200,
417
+ "summary"=>"Clear",
418
+ "icon"=>"clear-night",
419
+ "precipIntensity"=>0,
420
+ "precipProbability"=>0,
421
+ "temperature"=>26.94,
422
+ "apparentTemperature"=>26.94,
423
+ "dewPoint"=>4.86,
424
+ "windSpeed"=>2.95,
425
+ "windBearing"=>163,
426
+ "cloudCover"=>0,
427
+ "humidity"=>0.38,
428
+ "pressure"=>1022.1,
429
+ "ozone"=>268.66},
430
+ {"time"=>1382302800,
431
+ "summary"=>"Clear",
432
+ "icon"=>"clear-night",
433
+ "precipIntensity"=>0,
434
+ "precipProbability"=>0,
435
+ "temperature"=>25.5,
436
+ "apparentTemperature"=>25.5,
437
+ "dewPoint"=>3.68,
438
+ "windSpeed"=>2.95,
439
+ "windBearing"=>162,
440
+ "cloudCover"=>0,
441
+ "humidity"=>0.38,
442
+ "pressure"=>1022.16,
443
+ "ozone"=>267.37},
444
+ {"time"=>1382306400,
445
+ "summary"=>"Clear",
446
+ "icon"=>"clear-night",
447
+ "precipIntensity"=>0,
448
+ "precipProbability"=>0,
449
+ "temperature"=>24.52,
450
+ "apparentTemperature"=>20.78,
451
+ "dewPoint"=>2.88,
452
+ "windSpeed"=>3.05,
453
+ "windBearing"=>161,
454
+ "cloudCover"=>0,
455
+ "humidity"=>0.39,
456
+ "pressure"=>1022.27,
457
+ "ozone"=>266.4},
458
+ {"time"=>1382310000,
459
+ "summary"=>"Clear",
460
+ "icon"=>"clear-night",
461
+ "precipIntensity"=>0,
462
+ "precipProbability"=>0,
463
+ "temperature"=>24.19,
464
+ "apparentTemperature"=>20.19,
465
+ "dewPoint"=>2.58,
466
+ "windSpeed"=>3.19,
467
+ "windBearing"=>160,
468
+ "cloudCover"=>0,
469
+ "humidity"=>0.39,
470
+ "pressure"=>1022.41,
471
+ "ozone"=>265.63},
472
+ {"time"=>1382313600,
473
+ "summary"=>"Clear",
474
+ "icon"=>"clear-night",
475
+ "precipIntensity"=>0,
476
+ "precipProbability"=>0,
477
+ "temperature"=>25.2,
478
+ "apparentTemperature"=>21.09,
479
+ "dewPoint"=>3.19,
480
+ "windSpeed"=>3.35,
481
+ "windBearing"=>159,
482
+ "cloudCover"=>0,
483
+ "humidity"=>0.38,
484
+ "pressure"=>1022.54,
485
+ "ozone"=>264.94},
486
+ {"time"=>1382317200,
487
+ "summary"=>"Clear",
488
+ "icon"=>"clear-night",
489
+ "precipIntensity"=>0,
490
+ "precipProbability"=>0,
491
+ "temperature"=>28.34,
492
+ "apparentTemperature"=>24.36,
493
+ "dewPoint"=>5.15,
494
+ "windSpeed"=>3.59,
495
+ "windBearing"=>154,
496
+ "cloudCover"=>0,
497
+ "humidity"=>0.37,
498
+ "pressure"=>1022.69,
499
+ "ozone"=>264.37},
500
+ {"time"=>1382320800,
501
+ "summary"=>"Clear",
502
+ "icon"=>"clear-day",
503
+ "precipIntensity"=>0,
504
+ "precipProbability"=>0,
505
+ "temperature"=>33.09,
506
+ "apparentTemperature"=>29.52,
507
+ "dewPoint"=>8.02,
508
+ "windSpeed"=>3.83,
509
+ "windBearing"=>150,
510
+ "cloudCover"=>0,
511
+ "humidity"=>0.34,
512
+ "pressure"=>1022.72,
513
+ "ozone"=>263.87},
514
+ {"time"=>1382324400,
515
+ "summary"=>"Clear",
516
+ "icon"=>"clear-day",
517
+ "precipIntensity"=>0,
518
+ "precipProbability"=>0,
519
+ "temperature"=>38.17,
520
+ "apparentTemperature"=>35.29,
521
+ "dewPoint"=>10.91,
522
+ "windSpeed"=>3.91,
523
+ "windBearing"=>150,
524
+ "cloudCover"=>0,
525
+ "humidity"=>0.32,
526
+ "pressure"=>1022.49,
527
+ "ozone"=>263.21},
528
+ {"time"=>1382328000,
529
+ "summary"=>"Clear",
530
+ "icon"=>"clear-day",
531
+ "precipIntensity"=>0,
532
+ "precipProbability"=>0,
533
+ "temperature"=>43.05,
534
+ "apparentTemperature"=>41.17,
535
+ "dewPoint"=>13.58,
536
+ "windSpeed"=>3.64,
537
+ "windBearing"=>161,
538
+ "cloudCover"=>0,
539
+ "humidity"=>0.3,
540
+ "pressure"=>1022.08,
541
+ "ozone"=>262.23},
542
+ {"time"=>1382331600,
543
+ "summary"=>"Clear",
544
+ "icon"=>"clear-day",
545
+ "precipIntensity"=>0,
546
+ "precipProbability"=>0,
547
+ "temperature"=>47.52,
548
+ "apparentTemperature"=>46.66,
549
+ "dewPoint"=>16.04,
550
+ "windSpeed"=>3.22,
551
+ "windBearing"=>179,
552
+ "cloudCover"=>0,
553
+ "humidity"=>0.28,
554
+ "pressure"=>1021.53,
555
+ "ozone"=>261.09},
556
+ {"time"=>1382335200,
557
+ "summary"=>"Clear",
558
+ "icon"=>"clear-day",
559
+ "precipIntensity"=>0,
560
+ "precipProbability"=>0,
561
+ "temperature"=>50.79,
562
+ "apparentTemperature"=>50.79,
563
+ "dewPoint"=>17.97,
564
+ "windSpeed"=>3.11,
565
+ "windBearing"=>193,
566
+ "cloudCover"=>0,
567
+ "humidity"=>0.27,
568
+ "pressure"=>1020.9,
569
+ "ozone"=>260.04},
570
+ {"time"=>1382338800,
571
+ "summary"=>"Clear",
572
+ "icon"=>"clear-day",
573
+ "precipIntensity"=>0,
574
+ "precipProbability"=>0,
575
+ "temperature"=>52.83,
576
+ "apparentTemperature"=>52.83,
577
+ "dewPoint"=>19.48,
578
+ "windSpeed"=>3.67,
579
+ "windBearing"=>205,
580
+ "cloudCover"=>0,
581
+ "humidity"=>0.27,
582
+ "pressure"=>1020.26,
583
+ "ozone"=>259.09},
584
+ {"time"=>1382342400,
585
+ "summary"=>"Clear",
586
+ "icon"=>"clear-day",
587
+ "precipIntensity"=>0,
588
+ "precipProbability"=>0,
589
+ "temperature"=>53.94,
590
+ "apparentTemperature"=>53.94,
591
+ "dewPoint"=>20.74,
592
+ "windSpeed"=>4.5,
593
+ "windBearing"=>220,
594
+ "cloudCover"=>0,
595
+ "humidity"=>0.27,
596
+ "pressure"=>1019.6,
597
+ "ozone"=>258.24},
598
+ {"time"=>1382346000,
599
+ "summary"=>"Clear",
600
+ "icon"=>"clear-day",
601
+ "precipIntensity"=>0,
602
+ "precipProbability"=>0,
603
+ "temperature"=>53.91,
604
+ "apparentTemperature"=>53.91,
605
+ "dewPoint"=>21.47,
606
+ "windSpeed"=>4.96,
607
+ "windBearing"=>235,
608
+ "cloudCover"=>0,
609
+ "humidity"=>0.28,
610
+ "pressure"=>1019.13,
611
+ "ozone"=>257.73},
612
+ {"time"=>1382349600,
613
+ "summary"=>"Clear",
614
+ "icon"=>"clear-day",
615
+ "precipIntensity"=>0,
616
+ "precipProbability"=>0,
617
+ "temperature"=>52.46,
618
+ "apparentTemperature"=>52.46,
619
+ "dewPoint"=>21.37,
620
+ "windSpeed"=>4.72,
621
+ "windBearing"=>244,
622
+ "cloudCover"=>0.01,
623
+ "humidity"=>0.29,
624
+ "pressure"=>1019.1,
625
+ "ozone"=>257.79},
626
+ {"time"=>1382353200,
627
+ "summary"=>"Clear",
628
+ "icon"=>"clear-day",
629
+ "precipIntensity"=>0,
630
+ "precipProbability"=>0,
631
+ "temperature"=>50.07,
632
+ "apparentTemperature"=>50.07,
633
+ "dewPoint"=>20.56,
634
+ "windSpeed"=>4.13,
635
+ "windBearing"=>246,
636
+ "cloudCover"=>0.03,
637
+ "humidity"=>0.31,
638
+ "pressure"=>1019.34,
639
+ "ozone"=>258.19},
640
+ {"time"=>1382356800,
641
+ "summary"=>"Clear",
642
+ "icon"=>"clear-day",
643
+ "precipIntensity"=>0,
644
+ "precipProbability"=>0,
645
+ "temperature"=>47.58,
646
+ "apparentTemperature"=>46.38,
647
+ "dewPoint"=>19.45,
648
+ "windSpeed"=>3.62,
649
+ "windBearing"=>236,
650
+ "cloudCover"=>0.08,
651
+ "humidity"=>0.32,
652
+ "pressure"=>1019.56,
653
+ "ozone"=>258.55},
654
+ {"time"=>1382360400,
655
+ "summary"=>"Clear",
656
+ "icon"=>"clear-night",
657
+ "precipIntensity"=>0,
658
+ "precipProbability"=>0,
659
+ "temperature"=>45.02,
660
+ "apparentTemperature"=>43.73,
661
+ "dewPoint"=>18.07,
662
+ "windSpeed"=>3.31,
663
+ "windBearing"=>207,
664
+ "cloudCover"=>0.22,
665
+ "humidity"=>0.34,
666
+ "pressure"=>1019.8,
667
+ "ozone"=>258.75},
668
+ {"time"=>1382364000,
669
+ "summary"=>"Partly Cloudy",
670
+ "icon"=>"partly-cloudy-night",
671
+ "precipIntensity"=>0,
672
+ "precipProbability"=>0,
673
+ "temperature"=>42.06,
674
+ "apparentTemperature"=>40.6,
675
+ "dewPoint"=>16.36,
676
+ "windSpeed"=>3.08,
677
+ "windBearing"=>175,
678
+ "cloudCover"=>0.39,
679
+ "humidity"=>0.35,
680
+ "pressure"=>1020.1,
681
+ "ozone"=>258.9},
682
+ {"time"=>1382367600,
683
+ "summary"=>"Partly Cloudy",
684
+ "icon"=>"partly-cloudy-night",
685
+ "precipIntensity"=>0,
686
+ "precipProbability"=>0,
687
+ "temperature"=>39.04,
688
+ "apparentTemperature"=>39.04,
689
+ "dewPoint"=>14.6,
690
+ "windSpeed"=>2.9,
691
+ "windBearing"=>164,
692
+ "cloudCover"=>0.5,
693
+ "humidity"=>0.36,
694
+ "pressure"=>1020.47,
695
+ "ozone"=>258.91},
696
+ {"time"=>1382371200,
697
+ "summary"=>"Partly Cloudy",
698
+ "icon"=>"partly-cloudy-night",
699
+ "precipIntensity"=>0,
700
+ "precipProbability"=>0,
701
+ "temperature"=>36.23,
702
+ "apparentTemperature"=>36.23,
703
+ "dewPoint"=>12.98,
704
+ "windSpeed"=>2.73,
705
+ "windBearing"=>168,
706
+ "cloudCover"=>0.53,
707
+ "humidity"=>0.38,
708
+ "pressure"=>1020.86,
709
+ "ozone"=>258.66}]},
710
+ "daily"=>
711
+ {"summary"=>"Light snow next week; temperatures peaking at 54° on Monday.",
712
+ "icon"=>"snow",
713
+ "data"=>
714
+ [{"time"=>1382119200,
715
+ "summary"=>"Clear throughout the day.",
716
+ "icon"=>"clear-day",
717
+ "sunriseTime"=>1382145625,
718
+ "sunsetTime"=>1382185182,
719
+ "precipIntensity"=>0.00018,
720
+ "precipIntensityMax"=>0,
721
+ "precipProbability"=>1,
722
+ "temperatureMin"=>29.23,
723
+ "temperatureMinTime"=>1382137200,
724
+ "temperatureMax"=>52.86,
725
+ "temperatureMaxTime"=>1382173200,
726
+ "apparentTemperatureMin"=>26.09,
727
+ "apparentTemperatureMinTime"=>1382133600,
728
+ "apparentTemperatureMax"=>52.86,
729
+ "apparentTemperatureMaxTime"=>1382173200,
730
+ "dewPoint"=>18.06,
731
+ "windSpeed"=>3.44,
732
+ "windBearing"=>196,
733
+ "cloudCover"=>0.01,
734
+ "humidity"=>0.43,
735
+ "pressure"=>1023.43,
736
+ "ozone"=>289.48},
737
+ {"time"=>1382205600,
738
+ "summary"=>"Clear throughout the day.",
739
+ "icon"=>"clear-day",
740
+ "sunriseTime"=>1382232091,
741
+ "sunsetTime"=>1382271495,
742
+ "precipIntensity"=>0,
743
+ "precipIntensityMax"=>0,
744
+ "precipProbability"=>0,
745
+ "temperatureMin"=>25.63,
746
+ "temperatureMinTime"=>1382223600,
747
+ "temperatureMax"=>53.37,
748
+ "temperatureMaxTime"=>1382259600,
749
+ "apparentTemperatureMin"=>21.87,
750
+ "apparentTemperatureMinTime"=>1382223600,
751
+ "apparentTemperatureMax"=>53.37,
752
+ "apparentTemperatureMaxTime"=>1382259600,
753
+ "dewPoint"=>15.48,
754
+ "windSpeed"=>3.4,
755
+ "windBearing"=>194,
756
+ "cloudCover"=>0,
757
+ "humidity"=>0.38,
758
+ "pressure"=>1021.39,
759
+ "ozone"=>287.53},
760
+ {"time"=>1382292000,
761
+ "summary"=>"Partly cloudy in the evening.",
762
+ "icon"=>"partly-cloudy-night",
763
+ "sunriseTime"=>1382318558,
764
+ "sunsetTime"=>1382357808,
765
+ "precipIntensity"=>0,
766
+ "precipIntensityMax"=>0,
767
+ "precipProbability"=>0,
768
+ "temperatureMin"=>24.19,
769
+ "temperatureMinTime"=>1382310000,
770
+ "temperatureMax"=>53.94,
771
+ "temperatureMaxTime"=>1382342400,
772
+ "apparentTemperatureMin"=>20.19,
773
+ "apparentTemperatureMinTime"=>1382310000,
774
+ "apparentTemperatureMax"=>53.94,
775
+ "apparentTemperatureMaxTime"=>1382342400,
776
+ "dewPoint"=>12.5,
777
+ "windSpeed"=>3.46,
778
+ "windBearing"=>182,
779
+ "cloudCover"=>0.09,
780
+ "humidity"=>0.34,
781
+ "pressure"=>1021.14,
782
+ "ozone"=>262.19},
783
+ {"time"=>1382378400,
784
+ "summary"=>"Light rain overnight.",
785
+ "icon"=>"rain",
786
+ "sunriseTime"=>1382405026,
787
+ "sunsetTime"=>1382444123,
788
+ "precipIntensity"=>0.00107,
789
+ "precipIntensityMax"=>0,
790
+ "precipProbability"=>0.1,
791
+ "temperatureMin"=>27.51,
792
+ "temperatureMinTime"=>1382396400,
793
+ "temperatureMax"=>52.38,
794
+ "temperatureMaxTime"=>1382432400,
795
+ "apparentTemperatureMin"=>24.02,
796
+ "apparentTemperatureMinTime"=>1382396400,
797
+ "apparentTemperatureMax"=>52.38,
798
+ "apparentTemperatureMaxTime"=>1382432400,
799
+ "dewPoint"=>18.36,
800
+ "windSpeed"=>3.22,
801
+ "windBearing"=>196,
802
+ "cloudCover"=>0.62,
803
+ "humidity"=>0.42,
804
+ "pressure"=>1021.27,
805
+ "ozone"=>266.14},
806
+ {"time"=>1382464800,
807
+ "summary"=>"Mostly cloudy until evening.",
808
+ "icon"=>"partly-cloudy-day",
809
+ "sunriseTime"=>1382491494,
810
+ "sunsetTime"=>1382530438,
811
+ "precipIntensity"=>0.00245,
812
+ "precipIntensityMax"=>0.00542,
813
+ "precipIntensityMaxTime"=>1382468400,
814
+ "precipProbability"=>0.12,
815
+ "temperatureMin"=>29.18,
816
+ "temperatureMinTime"=>1382486400,
817
+ "temperatureMax"=>45.57,
818
+ "temperatureMaxTime"=>1382518800,
819
+ "apparentTemperatureMin"=>29.18,
820
+ "apparentTemperatureMinTime"=>1382486400,
821
+ "apparentTemperatureMax"=>42.82,
822
+ "apparentTemperatureMaxTime"=>1382518800,
823
+ "dewPoint"=>22.23,
824
+ "windSpeed"=>2.92,
825
+ "windBearing"=>237,
826
+ "cloudCover"=>0.76,
827
+ "humidity"=>0.55,
828
+ "pressure"=>1022.64,
829
+ "ozone"=>272.1},
830
+ {"time"=>1382551200,
831
+ "summary"=>"Partly cloudy overnight.",
832
+ "icon"=>"partly-cloudy-night",
833
+ "sunriseTime"=>1382577962,
834
+ "sunsetTime"=>1382616755,
835
+ "precipIntensity"=>0.00144,
836
+ "precipIntensityMax"=>0,
837
+ "precipProbability"=>0.17,
838
+ "temperatureMin"=>26.73,
839
+ "temperatureMinTime"=>1382569200,
840
+ "temperatureMax"=>48.33,
841
+ "temperatureMaxTime"=>1382605200,
842
+ "apparentTemperatureMin"=>26.73,
843
+ "apparentTemperatureMinTime"=>1382569200,
844
+ "apparentTemperatureMax"=>45.75,
845
+ "apparentTemperatureMaxTime"=>1382605200,
846
+ "dewPoint"=>25.07,
847
+ "windSpeed"=>2.92,
848
+ "windBearing"=>209,
849
+ "cloudCover"=>0.04,
850
+ "humidity"=>0.61,
851
+ "pressure"=>1021.77,
852
+ "ozone"=>279.96},
853
+ {"time"=>1382637600,
854
+ "summary"=>"Drizzle in the afternoon.",
855
+ "icon"=>"rain",
856
+ "sunriseTime"=>1382664430,
857
+ "sunsetTime"=>1382703073,
858
+ "precipIntensity"=>0.00321,
859
+ "precipIntensityMax"=>0.00545,
860
+ "precipIntensityMaxTime"=>1382688000,
861
+ "precipProbability"=>0.24,
862
+ "precipType"=>"snow",
863
+ "precipAccumulation"=>0.665,
864
+ "temperatureMin"=>29.35,
865
+ "temperatureMinTime"=>1382655600,
866
+ "temperatureMax"=>43.12,
867
+ "temperatureMaxTime"=>1382691600,
868
+ "apparentTemperatureMin"=>29.35,
869
+ "apparentTemperatureMinTime"=>1382655600,
870
+ "apparentTemperatureMax"=>39.92,
871
+ "apparentTemperatureMaxTime"=>1382691600,
872
+ "dewPoint"=>27.37,
873
+ "windSpeed"=>2.8,
874
+ "windBearing"=>248,
875
+ "cloudCover"=>0.65,
876
+ "humidity"=>0.72,
877
+ "pressure"=>1022.9,
878
+ "ozone"=>296.76},
879
+ {"time"=>1382724000,
880
+ "summary"=>"Mostly cloudy until afternoon.",
881
+ "icon"=>"partly-cloudy-day",
882
+ "sunriseTime"=>1382750899,
883
+ "sunsetTime"=>1382789392,
884
+ "precipIntensity"=>0.00148,
885
+ "precipIntensityMax"=>0,
886
+ "precipProbability"=>0.2,
887
+ "precipType"=>"snow",
888
+ "precipAccumulation"=>0.405,
889
+ "temperatureMin"=>25.62,
890
+ "temperatureMinTime"=>1382738400,
891
+ "temperatureMax"=>41.51,
892
+ "temperatureMaxTime"=>1382778000,
893
+ "apparentTemperatureMin"=>25.62,
894
+ "apparentTemperatureMinTime"=>1382738400,
895
+ "apparentTemperatureMax"=>37.79,
896
+ "apparentTemperatureMaxTime"=>1382778000,
897
+ "dewPoint"=>24,
898
+ "windSpeed"=>2.49,
899
+ "windBearing"=>241,
900
+ "cloudCover"=>0.4,
901
+ "humidity"=>0.71,
902
+ "pressure"=>1025.89,
903
+ "ozone"=>312.97}]},
904
+ "flags"=>
905
+ {"sources"=>["isd", "fnmoc", "cmc", "gfs"],
906
+ "isd-stations"=>
907
+ ["386130-99999",
908
+ "386150-99999",
909
+ "386155-99999",
910
+ "386160-99999",
911
+ "386270-99999"],
912
+ "units"=>"us"}}