<commit_before># lita-onewheel-forecast-io

[![Build Status](https://travis-ci.org/onewheelskyward/lita-onewheel-forecast-io.png?branch=master)](https://travis-ci.org/onewheelskyward/lita-onewheel-forecast-io)
[![Coverage Status](https://coveralls.io/repos/onewheelskyward/lita-onewheel-forecast-io/badge.svg)](https://coveralls.io/r/onewheelskyward/lita-onewheel-forecast-io)
[![Documentation Status](https://readthedocs.org/projects/lita-onewheel-forecast-io/badge/?version=latest)](https://readthedocs.org/projects/lita-onewheel-forecast-io/?badge=latest)

This Lita handler takes location-based queries and returns interesting data about the weather.  Temperatures, rain chance and intensity, and wind speeds are all included.  But wait, there's more!  if you download now, you also get 8-ball style replies with `!rain` and `!snow`!

## Installation

Add lita-onewheel-forecast-io to your Lita instance's Gemfile, from github since it's currently unpublished:

``` ruby
gem 'lita-onewheel-forecast-io', '~> 0.0'
```

## Configuration

``` ruby
Lita.configure do |config|
  config.handlers.onewheel_forecast_io.api_key = 'yourforecastiokey'
  config.handlers.onewheel_forecast_io.api_uri = 'https://api.forecast.io/forecast/'
  config.handlers.onewheel_forecast_io.colors = true<commit_msg>Darksky :(<commit_after># lita-onewheel-forecast-io

[![Build Status](https://travis-ci.org/onewheelskyward/lita-onewheel-forecast-io.png?branch=master)](https://travis-ci.org/onewheelskyward/lita-onewheel-forecast-io)
[![Coverage Status](https://coveralls.io/repos/onewheelskyward/lita-onewheel-forecast-io/badge.svg)](https://coveralls.io/r/onewheelskyward/lita-onewheel-forecast-io)
[![Documentation Status](https://readthedocs.org/projects/lita-onewheel-forecast-io/badge/?version=latest)](https://readthedocs.org/projects/lita-onewheel-forecast-io/?badge=latest)

This Lita handler takes location-based queries and returns interesting data about the weather.  Temperatures, rain chance and intensity, and wind speeds are all included.  But wait, there's more!  if you download now, you also get 8-ball style replies with `!rain` and `!snow`!

# WARNING

With the upcoming deprecation of the Darksky api (12/2021) this handler will become useless.  I'm open to suggestions on new data sources, feel free to open an issue with an idea!


## Installation

Add lita-onewheel-forecast-io to your Lita instance's Gemfile, from github since it's currently unpublished:

``` ruby
gem 'lita-onewheel-forecast-io', '~> 0.0'
```

## Configuration

``` ruby
Lita.configure do |config|
  config.handlers.onewheel_forecast_io.api_key = 'yourforecastiokey'
  config.handlers.onewheel_forecast_io.api_uri = 'https://api.forecast.io/forecast/'
  config.handlers.onewheel_forecast_io.colors = true
{'fraction_non_alphanumeric': 0.13174946004319654, 'fraction_numerical': 0.004319654427645789, 'mean_word_length': 5.569739952718676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2290760', 'n_tokens_mistral': 978, 'n_tokens_neox': 930, 'n_words': 190}