lita-onewheel-forecast-io 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/forecasts.rb +2 -1
- data/lita-onewheel-forecast-io.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9ae64e2201ac6f35cd55fec3e1412134c54a008
|
4
|
+
data.tar.gz: 5830ae1315b25f1d2a29c2250e33b582d838d7c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a20033de9cb62f05a407deff420a1321548602cc9cf513b07afcd4f4c47c603dd8705431afbf23c3cea9fb0f2f95ce6e67498efde5b32e7cc15cbe88dff684f
|
7
|
+
data.tar.gz: e123e7adbf8470005d5880267347e5c752b96fd87325a3f6398b4002f0220b3be312ccb75b27c297a27b4c9c40f320a26de413a155076af1df5d2d2731939cf4
|
@@ -471,7 +471,7 @@ module ForecastIo
|
|
471
471
|
tm = Time.at(hour['time']).to_datetime.strftime('%k:%M')
|
472
472
|
puts "#{hour['time']} - #{tm} - #{hour['temperature']}"
|
473
473
|
|
474
|
-
if hour['temperature']
|
474
|
+
if hour['temperature'] > high_temp
|
475
475
|
high_temp = hour['temperature'].to_i
|
476
476
|
end
|
477
477
|
|
@@ -491,6 +491,7 @@ module ForecastIo
|
|
491
491
|
if time_to_close_the_windows.nil?
|
492
492
|
"Leave 'em open, no excess heat today(#{high_temp}°F)."
|
493
493
|
else
|
494
|
+
# Todo: base timezone on requested location.
|
494
495
|
timezone = TZInfo::Timezone.get('America/Los_Angeles')
|
495
496
|
time_at = Time.at(time_to_close_the_windows).to_datetime
|
496
497
|
local_time = timezone.utc_to_local(time_at)
|