air-quality-cli

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Air Quality Index CLI

Get Air Quality index for your City.

Installation

Download the latest binary for your platform from the Release page.

Contents

Usage

Initialization

One time setup to initialize the CLI using API token.

Get your API Token!

$ air init
Seach for air quality based on country or city name
$ air search kathmandu

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

$ air search kathmandu --all
$ air search Nepal
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 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.

Documentation

Overview

Copyright © 2021 Yankee Maharjan

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg
aqi

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL