/air-quality-cli

Get Air Quality Index for your city/country 😷

Primary LanguageGoApache License 2.0Apache-2.0

Air Quality Index CLI

Go Report Card License: Apache-2.0 Latest GitHub release

Get Air Quality index for your City.

Installation

curl -f https://raw.githubusercontent.com/yankeexe/air-quality-cli/master/install.sh | sudo sh

Contents

Usage

Initialization

One time setup to initialize the CLI using API token.

Get your API Token!

$ air init

Search for air quality based on country or city name

$ air search kathmandu

# by default, stations whose data is not avaiable is hidden.
# use --all or -a to show stations even if there's no data.

$ air search kathmandu --all
$ air search Nepal
Demo demo of air quality cli search

Fuzzy search the stations from your query.

Alternative to viewing all the stations as table, you can also fuzzy search the stations returned from your query.

Use -f or --fuzzy flag to initiage fuzzy searching.

$ air search kathmandu -f

# by default, stations whose data is not avaiable is hidden.
# use --all or -a to show stations even if there's no data.
$ air search kathmandu -fa
Demo demo of air quality cli search

Save your city to config for quick view.

You can save stations from a number of locations to quickly view air quality there.

Save the location

$ air add kathmandu
Demo demo of air quality cli add stations

Show air quality from all your saved locations

$ air show

# by default, stations whose data is not avaiable is hidden.
# use --all or -a to show stations even if there's no data.

$ air show --all
Demo demo of air quality cli show

Remove saved city from your config

You can remove any saved stations/city from your config if you no longer need its information.

$ air remove
Demo demo of air quality cli remove

Contributing

For guidance on setting up a development environment and how to make a contribution to air-quality-cli, see the contributing guidelines.