Giter VIP home page Giter VIP logo

particlepatrol.com's Introduction

Credit should first be given to the appropriate source - federal, state, local, and tribal air quality agencies and the EPA AirNow program - in products, publications, presentations, or any other related distribution. These federal, state, local, and tribal air quality agencies are the owners of the data and the authorities for the data. A list of state/local/tribal agencies can be found at http://www.airnow.gov/index.cfm?action=airnow.partnerslist.

Particle Patrol

Air quality index (AQI) aggregation for specific Arizona areas of interest. Source: https://docs.airnowapi.org/

The AirNow API is open to all with an account. You can reset your website password or retrieve your API key via the Log In page. Your API key is also automatically included in example URLs when using the Query Tool. The Web Services endpoint is used to generate queries in the UI, which can be translated to API requests.

Objectives

  • Integrate AWS CLI solution for API key retrieval (currently in archive/) into /src/request.py
  • Use Python, AWS CLI, and the AirNow API to poll and parse air quality data for specific zip codes
  • Present data in a web page (particlepatrol.com)
  • Include test cases for all functions
  • Include error/exception handling for input, request, and display functionality

Reference

Sample Request

method endpoint headers auth
GET historical: https://www.airnowapi.org/aq/observation/zipCode/historical/
current: https://www.airnowapi.org/aq/observation/zipCode/current/
?format=application/json&zipCode=12345&date=YYYY-MM-DDT00-0000&distance=25 &API_KEY={REDACTED}

Sample Response

Sample Output

[
    {
        'DateIssue': '2024-07-26', 
        'DateForecast': '2024-07-26', 
        'ReportingArea': 'Decatur', 
        'StateCode': 'IL', 
        'Latitude': 39.8529, 
        'Longitude': -88.9369, 
        'ParameterName': 'O3', 
        'AQI': -1, 
        'Category': 
            {
                'Number': 1, 
                'Name': 'Good'
                }, 
        'ActionDay': False, 
        'Discussion': ''
        },
]
AQI in Decatur on 2024-07-26 is: -1
AQI is reportedly less than 0
Consider validating: https://www.airnow.gov/

particlepatrol.com's People

Contributors

blakejacobus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.