1.0.0 • Published 3 years ago
city-weather-cli v1.0.0
City-weather-cli
Find weather and save in file
Simple script for saving weather info to your computer by running one command
Installation
City-weather-cli requires Node.js v14.7.0+ to run.
Install the dependencies.
cd city-weather-cli
npm install
Go to openweathermap. Once you sign up using your email, the API key (APPID) will be sent to you in a confirmation email. Your API keys can always be found on your account page, where you can also generate additional API keys if needed.
Create .env file:
APP_ID=your_api_id
Usage
To save weather in ~/Downloads/weather.json run:
yarn start Novosibirsk ~/Downloads
To save weather in ~/Downloads/test.txt run:
yarn start Moscow ~/Downloads/test.txt
To save weather in current directory in weather.json run:
yarn start Krasnodar
License
MIT
1.0.0
3 years ago