weathercli

0.0.7 • Public • Published

Check the weather from the terminal

install

$ npm install -g weathercli

setup

$ weathercli setup

? enter city (undefined):

london

? choose units (Use arrow keys)

> metric ( Celsius )
  imperial ( Farenheit )

? enter access token for the openweathermap api (undefined):

c06277ef7d8e1faf47d42134dsfa2347

setup complete

this will be persisted in ~/.config/configstore/weathercli.json

$ cat ~/.config/configstore/weathercli.json

{
    "city": "london",
    "token": "c06277ef7d8e1faf47d42134dsfa2347",
    "units": "metric"
}

usage

$ wcli

London, GB

  .-.         _ o  
 (   ).      |_    light snow
(___(__)     |_|   rain: 100 %
*  *  *  
*  *  *   
--------------------------------------------------------------------------------------------

 Mon 2          Tue 3          Wed 6          Thu 7          Fri 10         Sat 13   

  .-.            .-.            .-.           \   /          \   /          \   /    
 (   ).         (   ).         (   ).          .-.            .-.            .-.     
(___(__)       (___(__)       (___(__)      ‒ (   ) ‒      ‒ (   ) ‒      ‒ (   ) ‒  
 *  *  *        *  *  *        *  *  *         `-᾿            `-᾿            `-᾿     
*  *  *        *  *  *        *  *  *         /   \          /   \          /   \    


todo

  • [x] make degrees configurable
  • [ ] different rendering styles ( simple, normal, detail, etc)
  • [ ] add self update feature
  • [ ] determine location automatically

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i weathercli

Weekly Downloads

2

Version

0.0.7

License

ISC

Last publish

Collaborators

  • hukuuu