Skip to content

danoscarmike/aqipy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AQIPY

A simple tool to get Air Quality Indices from around the world.

Installation

  1. Get an API token here.
  2. Create an environment variable with your token:
    export AQIPY_TOKEN='<your_new_token>'

From source

  1. Clone this repository.
  2. From your new directory:
    pip3 install -e .

From PyPI

pip install aqipy

Usage

To get the AQI for your current location (IP based):
aqipy

To get the AQI for a specific location (latitude longitude):
aqipy geo [--latlon / -l <lat lon>]

Example

$ aqipy geo --latlon 53.8 -7.4

Attribution

This tool uses APIs provided by the World Air Quality Index Project.

About

A simple command line tool to check the air quality index at your location or around the world

Resources

License

Stars

Watchers

Forks

Packages

No packages published