Display Air Quality Report from AIRNOW.gov
This requests data from Airnow API.
##Preview
Simple Smashing widget (and associated job) to display Air Quality Info. Uses AirNow.gov API.
##Usage
To use this widget, copy airnow.html
, airnow.coffee
, and airnow.scss
into the /widgets/airnow
directory. Put the airnow.rb
file in your /jobs
folder.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="airnow" data-view="Airnow"></div>
</li>
##Settings
You'll need to add your API_KEY freely available from https://docs.airnowapi.org/login and your desired location to the job (you'll get New York Air quality by default). Get your API Key here click Request.
Data is fetched every 5 minutes, but you can change that by editing the job schedule.
##More API Info
For more API info go here [https://docs.airnowapi.org/forecastsbyzip/query]