Skip to content

A command line utility that displays the current/forecasted weather

License

Notifications You must be signed in to change notification settings

smarulanda/cli-weatherman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Weather and Forecast

This is a node.js command line tool that will print weather and 5-day forecast information for the user's current (or specified) location.

If the user does not provide a ZIP code as a command-line argument, then the script uses freegeoip to determine the user's location based on their IP address. Location information is then passed to Yahoo's weather YQL API to determine current and future weather.

Installation

This tool is available on npm. Use the -g flag to install it globally:

$ npm install -g cli-weatherman

Command Line Interface

Usage:

$ weatherman [options]

Options:

-h, --help       output usage information
-V, --version    output the version number
-C, --celsius    Show temperatures in celsius
-z, --zip <zip>  Return weather for a specific zip code

Examples:

$ weatherman
$ weatherman -C
$ weatherman -z 90210

About

A command line utility that displays the current/forecasted weather

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published