Skip to content

ericasberry/cli-weather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-weather

NPM

npm npm node Build status npm GitHub issues

A simple client to get weather in your terminal. Working on a project but need to run across the street to Jimmy John's to get your food? Instead of looking up the weather online, just run weather from your terminal and get instant, accurate location-based weather (current and 4-day forecast!).

installation

$ npm install cli-weather -g

usage

$ weather
$ weather -a "Atlanta, GA"
$ weather --address="Atlanta, GA"
$ weather --lat=34.1036 --long=-84.6374

units

Use the -c option flag to specify metric units (celsius for temp and meters per second for windspeed)

$ weather -c

configuration

If you always want to see weather for a particular area or with celsius instead of fahrenheit, pass --save or -s along with your preferred values, and the next time you run weather without any arguments, it will get those values and give you weather for them.

sample output

Fahrenheit

Sample output in F

Celsius

Sample output in C

Saving

Sample save output

Custom Location

Sample custom location output;

api

coming soon...

The cli-weather api will allow you to require() cli-weather in your apps/sites and get all the data and formatting that powers this module.

About

Weather in the terminal.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%