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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 827be3c9aa6fb43eb80130138117310af980229f6976c311ce7587b0c5910fe1
4
- data.tar.gz: 193d563df6fc3cdb7e5896018acb0490dba0a91ae727bab7389916ea9d1c392b
3
+ metadata.gz: 41a5303ac3cd5465511a81305c58de1be06eb752d9846881f8a477088effd269
4
+ data.tar.gz: ec2f27b4fb6561bdc13270910798c2cffb853f75126429dd4643fbf28d693534
5
5
  SHA512:
6
- metadata.gz: ec449b4cf7cc1f1b08e4f594831347de2bccceabba49bfba7f0d149a2d98984a7d1efcb1831f01e0fd6736971895fb99c1b1cc771f9633e93f115e5b65ee2a7b
7
- data.tar.gz: d4c7f41a2dcbec9e634977f7d929c143263f60b314babbc70a67360214e9860345172c73aa9a20b8e3b1876e294ce38eabc705b3b3bd90d423dbf9df9bd95590
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 = get_aggregate_by_data_key(forecast, 'minutely', 'precipIntensity')
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 = get_aggregate_by_data_key(forecast, 'minutely', 'precipIntensity')
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 = get_aggregate_by_data_key(forecast, 'minutely', 'precipIntensity')
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-forecast-io'
3
- spec.version = '1.14.3'
3
+ spec.version = '1.14.4'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = <<-EOS
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-forecast-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.3
4
+ version: 1.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps