A simple cli for checking weather conditions worldwide
- 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
- Clone or download VEAD
- Install dependencies:
yarn install
To use VEAD, you need to get a free API key from WeatherAPI:
- Visit https://www.weatherapi.com/signup.aspx and create a free account
- Get your API key from https://www.weatherapi.com/my/
- Set the API key as an environment variable:
export WEATHER_API_KEY="your_api_key_here"
node bin/weather.js --city "New York"-c, --city(required): Name of the city to get weather for-f, --format(optional): Temperature format (celsiusorfahrenheit, default: celsius)-F, --forecast(optional): Get 3-day weather forecast
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 fahrenheitGet 3-day forecast for Tokyo:
node bin/weather.js --city "Tokyo" --forecastGet forecast in Fahrenheit format:
node bin/weather.js --city "Sydney" --forecast --format fahrenheit