1.0.0 • Published 5 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 installGo 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_idUsage
To save weather in ~/Downloads/weather.json run:
yarn start Novosibirsk ~/DownloadsTo save weather in ~/Downloads/test.txt run:
yarn start Moscow ~/Downloads/test.txtTo save weather in current directory in weather.json run:
yarn start KrasnodarLicense
MIT
1.0.0
5 years ago