Skip to content

typeofMax/get-weather-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wwweather - worldwide weather is a utility to get the current weather in any city

Install

npm install -g wwweather

Usage

To get a token, you need to register at the https://openweathermap.org/ and get an API token (it's free). Then you need to pass token

weather -t [YOUR_TOKEN]

The token will be saved locally on your computer in the json format

You must save your favourite city with:

weather -s [CITY]

Run the command:

weather 

Output:

WEATHER  Погода в городе Москва
☁️ пасмурно
Температура: 23.35 (ощущается как 22.97)
Влажность: 47%
Скорость ветра: 4.52 м/с

-h flag - To get all available commands

weather -h

Output:

Без параметров - вывод погоды     
-s [CITY] для установки города    
-h вывод помощи                   
-t [API_KEY] для сохранения токена

About

World wide weather is a cli utility to get the current weather in any city

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published