Skip to content

nkaradzhov/weather-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

license

MIT

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published