No commit activity in last 3 years
No release in over 3 years
AQI data retrieval bot
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.2
~> 4.4
 Project Readme

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.