lita-onewheel-forecast-io 1.14.4 → 1.14.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41a5303ac3cd5465511a81305c58de1be06eb752d9846881f8a477088effd269
4
- data.tar.gz: ec2f27b4fb6561bdc13270910798c2cffb853f75126429dd4643fbf28d693534
3
+ metadata.gz: b29bdb44e2b85d79a57e85ae3170697c93a7c72d2b0ac85746f794dc96583fbd
4
+ data.tar.gz: 6faec2852edcb5c7cd999cbfa8d16abc7da4c5418904a314e0142e8e02fc4dde
5
5
  SHA512:
6
- metadata.gz: e85a6178ddc17503dc3829542c5626d6cb9b8770c5b112089c22394006a188cd63639581cbdda5c7d734d31a64ec6e288223858e170812ed8c8f528b252d82f3
7
- data.tar.gz: '097f5e47fa5c715b69123cd23d40113a369854f70bbc0bca38aa68fc316848c7abaea0fd14e779d7809b1e7c09254b50f0bb9699b0ad5aa8256ed04425f5af8d'
6
+ metadata.gz: 62a337062a60d3eaeb96afc243f09219e504f05427856f636b76d58606502d0ccb8df601004733c7714e92157b9ccd9fe33badd0cceddbb1c3e51125046945f8
7
+ data.tar.gz: bd35f1af5a9d54d8b8bee86a6fef15796971d7b4355be846ccd23923a4536aee592c0b7cb9965a6e9801c61ac2994473d61b20af61a40a66f6cb4bf3fd053fcb
@@ -142,7 +142,10 @@ module ForecastIo
142
142
 
143
143
  def ansi_temp_forecast(forecast, hours = 24)
144
144
  str, temperature_data = do_the_temp_thing(forecast, 'temperature', ansi_chars, hours)
145
- "#{hours} hr temps: #{get_temperature temperature_data.first.round(1)} |#{str}| #{get_temperature temperature_data.last.round(1)} Range: #{get_temperature temperature_data.min.round(1)} - #{get_temperature temperature_data.max.round(1)}"
145
+ resp = "#{hours} hr temps: #{get_temperature temperature_data.first.round(1)} "
146
+ resp += "(feels like #{get_current_apparent_temp(forecast)}) |#{str}| "
147
+ resp += "#{get_temperature temperature_data.last.round(1)} Range: "
148
+ resp += "#{get_temperature temperature_data.min.round(1)} - #{get_temperature temperature_data.max.round(1)}"
146
149
  end
147
150
 
148
151
  def ansi_temp_apparent_forecast(forecast, hours = 24)
@@ -673,5 +676,11 @@ module ForecastIo
673
676
 
674
677
  "#{uvs.first} |#{str}| #{uvs.last} max: #{uvs.max}"
675
678
  end
679
+
680
+ private
681
+
682
+ def get_current_apparent_temp(forecast)
683
+ forecast['hourly']['data'][0]['apparentTemperature']
684
+ end
676
685
  end
677
686
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-forecast-io'
3
- spec.version = '1.14.4'
3
+ spec.version = '1.14.5'
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.4
4
+ version: 1.14.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps