air-cli
Version:
Get Current Air Quality Index in CLI
66 lines (43 loc) • 1.24 kB
Markdown

Air-CLI is ann Air Quality Command Line App.
_Search current AQI by location._
---
`npm install -g air-cli`
- Download the app and install globally.
`$ air --add 29av922123`
- air-cli uses data from https://aqicn.org/api/
- To use the cli, visit the site and get the token.
- Add your token using `--add` flag.
```
Usage
Search by city
$ air --in <city>
Add api-token
$ air --add <Your Token Value>
Options
--add, -a Add API Token
--token,-t Show saved token
--remove, -r Remove token
--in, -i Search by location
--help, -h Display Heol
Examples
$ air --in here ............. Show Air Quality based on curreent location
$ air --in Seoul ............ Show Air Quality in Seoul
$ air --add 2zd82s .......... Add API Token
$ air --token ............... Show saved token
$ air --help ................ Show Help
API
https://aqicn.org/api/
`,
```
https://aqicn.org/api/
Licensed under MIT.
Report a bug in issues.
Made with love in Seoul by [Yogicat](https://www.github.com/yogicat)