No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
README.md
Rakefile
lita-onewheel-aqi.gemspec

README.md

lita-onewheel-aqi

Build Status Coverage Status

I built this on a plane on day where wildfire smoke had caused Portland, OR's air quality to be worse than Hong Kong's. The next year, I upgraded it to use a newer, better API.

http://airnowapi.org/aq101

http://aqicn.org/city/usa/oregon/portland

Installation

Add lita-onewheel-aqi to your Lita instance's Gemfile:

gem 'lita-onewheel-aqi'

Configuration

Add your API key to your lita_config.rb:

config.handlers.onewheel_aqi.api_key

It can be procured here: http://aqicn.org/api/

If you're using this in slack, turn off the IRC color codes by using:

config.handlers.onewheel_aqi.colors = false

Usage

bot: aqi Portland, OR

^^ should return your PM2.5 number.