Skip to content

Commit

Permalink
darksky is starting to suck
Browse files Browse the repository at this point in the history
  • Loading branch information
onewheelskyward committed Sep 9, 2020
1 parent 1855258 commit c5db794
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 12 additions & 9 deletions lib/lita/handlers/irc_handlers.rb
Expand Up @@ -77,15 +77,17 @@ def handle_irc_conditions(response)
end

def handle_irc_ansiwind(response)
location = geo_lookup(response.user, response.match_data[1])
forecast = get_forecast_io_results(response.user, location)
response.reply location.location_name + ' ' + ansi_wind_direction_forecast(forecast)
response.reply "Sorry, darksky's api lies about wind now. Try the main interface at https://darksky.net"
# location = geo_lookup(response.user, response.match_data[1])
# forecast = get_forecast_io_results(response.user, location)
# response.reply location.location_name + ' ' + ansi_wind_direction_forecast(forecast)
end

def handle_irc_ascii_wind(response)
location = geo_lookup(response.user, response.match_data[1])
forecast = get_forecast_io_results(response.user, location)
response.reply location.location_name + ' ' + ascii_wind_direction_forecast(forecast)
response.reply "Sorry, darksky's api lies about wind now. Try the main interface at https://darksky.net"
# location = geo_lookup(response.user, response.match_data[1])
# forecast = get_forecast_io_results(response.user, location)
# response.reply location.location_name + ' ' + ascii_wind_direction_forecast(forecast)
end

def handle_irc_alerts(response)
Expand Down Expand Up @@ -156,9 +158,10 @@ def handle_irc_seven_day_rain(response)
end

def handle_irc_daily_wind(response)
location = geo_lookup(response.user, response.match_data[1])
forecast = get_forecast_io_results(response.user, location)
response.reply location.location_name + ' ' + do_the_daily_wind_thing(forecast)
response.reply "Sorry, darksky's api lies about wind now. Try the main interface at https://darksky.net"
# location = geo_lookup(response.user, response.match_data[1])
# forecast = get_forecast_io_results(response.user, location)
# response.reply location.location_name + ' ' + do_the_daily_wind_thing(forecast)
end

def handle_irc_daily_humidity(response)
Expand Down
2 changes: 1 addition & 1 deletion lita-onewheel-forecast-io.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'lita-onewheel-forecast-io'
spec.version = '1.13.0'
spec.version = '1.13.1'
spec.authors = ['Andrew Kreps']
spec.email = ['andrew.kreps@gmail.com']
spec.description = <<-EOS
Expand Down

0 comments on commit c5db794

Please sign in to comment.