Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AizenXBT/wind-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VEAD, a Weather CLI App

VEAD

A simple cli for checking weather conditions worldwide

Features

  • Check current weather conditions for any city
  • View 3-day weather forecast
  • Support for both Celsius and Fahrenheit units
  • Simple and intuitive command-line interface

Installation

  1. Clone or download VEAD
  2. Install dependencies:
    yarn install

Setup

To use VEAD, you need to get a free API key from WeatherAPI:

  1. Visit https://www.weatherapi.com/signup.aspx and create a free account
  2. Get your API key from https://www.weatherapi.com/my/
  3. Set the API key as an environment variable:
    export WEATHER_API_KEY="your_api_key_here"

Usage

Basic Usage

node bin/weather.js --city "New York"

Options

  • -c, --city (required): Name of the city to get weather for
  • -f, --format (optional): Temperature format (celsius or fahrenheit, default: celsius)
  • -F, --forecast (optional): Get 3-day weather forecast

Examples

Get current weather in New York:

node bin/weather.js --city "New York"

Get current weather in Fahrenheit format:

node bin/weather.js --city "London" --format fahrenheit

Get 3-day forecast for Tokyo:

node bin/weather.js --city "Tokyo" --forecast

Get forecast in Fahrenheit format:

node bin/weather.js --city "Sydney" --forecast --format fahrenheit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors