diff --git a/lib/lita/handlers/forecasts.rb b/lib/lita/handlers/forecasts.rb index f895746..aa4c162 100644 --- a/lib/lita/handlers/forecasts.rb +++ b/lib/lita/handlers/forecasts.rb @@ -206,8 +206,9 @@ def do_the_windchill_temp_thing(forecast, chars, hours) end # Temp must be F. - def calculate_windchill(temp, wind) - 35.74 + (0.6215 * temp) - (35.75 * wind ** 0.16) + (0.4275 * temp * wind ** 0.16) + def calculate_windchill(temp_c, wind) + temp_f = (temp_c * 9/5) + 32 + 35.74 + (0.6215 * temp_f) - (35.75 * wind ** 0.16) + (0.4275 * temp_f * wind ** 0.16) end def ansi_wind_direction_forecast(forecast) diff --git a/lita-onewheel-forecast-io.gemspec b/lita-onewheel-forecast-io.gemspec index 1d490ad..cfd84b8 100644 --- a/lita-onewheel-forecast-io.gemspec +++ b/lita-onewheel-forecast-io.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = 'lita-onewheel-forecast-io' - spec.version = '1.14.1' + spec.version = '1.14.2' spec.authors = ['Andrew Kreps'] spec.email = ['andrew.kreps@gmail.com'] spec.description = <<-EOS