1.0.1 • Published 2 years ago

wwweather v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

wwwweather - 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]

The run the command:

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

-h flag - To get all available commands

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