api – eBlog https://emresaglam.com/blog My Blog about my life and my thoughts... Tue, 17 Oct 2017 04:22:38 +0000 en-US hourly 1 https://wordpress.org/?v=5.5.3 Air Quality Index Bot https://emresaglam.com/blog/blog/2017/10/16/air_quality_index_bot/ https://emresaglam.com/blog/blog/2017/10/16/air_quality_index_bot/#respond Tue, 17 Oct 2017 04:09:45 +0000 http://emresaglam.com/blog/?p=1212 Continue reading Air Quality Index Bot ]]> After the devastating Northern California wildfires, I found myself looking at AirNow multiple times a day. Also at work, like many Bay Area tech companies, we use HipChat (or Slack). Naturally I was inclined to issue a slash command to get the latest air quality index (AQI) for my area in a chat channel. I couldn’t find a good AQI bot so I wrote one.

Installation for Heroku is on the README of the project. How to add a slash command for HipChat and/or Slack are not covered in this blog entry, but it’s very easy 🙂 (I used /aq <zipcode> for command)

The bot (really an API endpoint) is here in my github repo. Feel free to use, improve, contribute to it.

]]>
https://emresaglam.com/blog/blog/2017/10/16/air_quality_index_bot/feed/ 0