air-cli
Get Current Air Quality Index in CLI
Last updated 5 months ago by yogicat .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install air-cli 
SYNC missed versions from official npm registry.

Air-cli

screenshot

Air-CLI is ann Air Quality Command Line App.

Search current AQI by location.


Installation

npm install -g air-cli

  • Download the app and install globally.

API Token

$ 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

   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/
`,

Data

https://aqicn.org/api/

License

Licensed under MIT.

Issues

Report a bug in issues. Made with love in Seoul by Yogicat

Current Tags

  • 0.0.3                                ...           latest (5 months ago)

1 Versions

  • 0.0.3                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (5)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |