lita-onewheel-forecast-io 1.14.3 → 1.14.4
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 +3 -3
- data/lita-onewheel-forecast-io.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41a5303ac3cd5465511a81305c58de1be06eb752d9846881f8a477088effd269
|
4
|
+
data.tar.gz: ec2f27b4fb6561bdc13270910798c2cffb853f75126429dd4643fbf28d693534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e85a6178ddc17503dc3829542c5626d6cb9b8770c5b112089c22394006a188cd63639581cbdda5c7d734d31a64ec6e288223858e170812ed8c8f528b252d82f3
|
7
|
+
data.tar.gz: '097f5e47fa5c715b69123cd23d40113a369854f70bbc0bca38aa68fc316848c7abaea0fd14e779d7809b1e7c09254b50f0bb9699b0ad5aa8256ed04425f5af8d'
|
@@ -5,20 +5,20 @@ module ForecastIo
|
|
5
5
|
def ascii_rain_forecast(forecast)
|
6
6
|
(str, precip_type) = do_the_rain_chance_thing(forecast, ascii_chars, 'precipProbability')
|
7
7
|
max = get_max_by_data_key(forecast, 'minutely', 'precipProbability')
|
8
|
-
agg =
|
8
|
+
agg = get_max_by_data_key(forecast, 'minutely', 'precipIntensity')
|
9
9
|
"1hr #{precip_type} probability #{(Time.now).strftime('%H:%M').to_s}|#{str}|#{(Time.now + 3600).strftime('%H:%M').to_s} max #{(max.to_f * 100).round(2)}%, #{get_accumulation agg} accumulation"
|
10
10
|
end
|
11
11
|
|
12
12
|
def ansi_rain_forecast(forecast)
|
13
13
|
(str, precip_type) = do_the_rain_chance_thing(forecast, ansi_chars, 'precipProbability') #, 'probability', get_rain_range_colors)
|
14
14
|
max = get_max_by_data_key(forecast, 'minutely', 'precipProbability')
|
15
|
-
agg =
|
15
|
+
agg = get_max_by_data_key(forecast, 'minutely', 'precipIntensity')
|
16
16
|
"1hr #{precip_type} probability #{(Time.now).strftime('%H:%M').to_s}|#{str}|#{(Time.now + 3600).strftime('%H:%M').to_s} max #{(max.to_f * 100).round(2)}%, #{get_accumulation agg} accumulation"
|
17
17
|
end
|
18
18
|
|
19
19
|
def ansi_rain_intensity_forecast(forecast)
|
20
20
|
(str, precip_type) = do_the_rain_intensity_thing(forecast, ansi_chars, 'precipIntensity') #, 'probability', get_rain_range_colors)
|
21
|
-
agg =
|
21
|
+
agg = get_max_by_data_key(forecast, 'minutely', 'precipIntensity')
|
22
22
|
"1hr #{precip_type} intensity #{(Time.now).strftime('%H:%M').to_s}|#{str}|#{(Time.now + 3600).strftime('%H:%M').to_s}, #{get_accumulation agg} accumulation"
|
23
23
|
end
|
24
24
|
|