mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 04:51:08 -05:00
World Air Quality Index plugin for Limnoria
This plugin retrieves air quality index info from the World Air Quality Index project (aqicn.org).
Setup
-
Get an API key: https://aqicn.org/api
-
Configure the API key:
config plugins.aqi.apikey <your-api-token>
Usage
<@jlu5> `aqi Vancouver
<%bitmonster> Vancouver International Airport #2, British Comlumbia, Canada :: 7 (Good) <https://aqicn.org/city/british-comlumbia/vancouver-international-airport--2>; from British Columbia, Canada Air Quality Monitoring Agency and World Air Quality Index Project
Extended Geolookup
The built-in city search provided by aqicn.org is fairly limited, so this plugin also supports using geocoding backends from the NuWeather plugin (when it is loaded and configured).
You can set the default geocoding backend via the plugins.aqi.geocodeBackend
option, or override it per call using the --geocode-backend
command option. By default, the backend is set to "native", which refers to aqicn.org's built-in search.