Air Quality bot for HipChat
This project is not maintained anymore. Archived as of Dec 8th 2022.
Airbot is a small API endpoint (with two endpoints at the time of writing) that will accept a geolocation and will return the air quality index of that location.
It’s written in few hours work after the Northern California wildfires smoke hit San Francisco and the bay area in October 2017.
It’s designed to answer in the most basic HipChat/ Slack format so that it can be used as a HipChat/ Slack endpoint for a bot.
No authentication is required to use this API.
It’s designed to be easily deployed on Heroku. You have to define:
/aq Istanbul, Turkey
-> BOT_COMMAND="/aq"
)1. /aqi/
: accepts POST only. Payload should be HipChat format. Returns basic HipChat message format with colors according to aqi severity.
/aqi-slack
: accepts POST only. Payload is Slack’s slash command format. Returns a simple message. (Can be improved with Slack shenaningans)/aqig/<zipcode>
: accepts GET only. Whatever is after the the trailing slash is parsed as the location. Example: /aqig/Istanbul,%20TurkeyHipChat is not supported anymore. WomWomp…