https://github.com/sandipgyawali/weather-cli
command line tool that helps retrivie weather information.
https://github.com/sandipgyawali/weather-cli
nodejs typescript weather weather-cli
Last synced: about 2 months ago
JSON representation
command line tool that helps retrivie weather information.
- Host: GitHub
- URL: https://github.com/sandipgyawali/weather-cli
- Owner: SandipGyawali
- Created: 2024-05-15T15:58:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T16:15:18.000Z (about 2 years ago)
- Last Synced: 2025-02-14T20:46:46.322Z (over 1 year ago)
- Topics: nodejs, typescript, weather, weather-cli
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# weather-cli
Check the weather from your terminal
### Install
```shell
$ clone the repo
$ yarn install
$ npm link
```
```shell
$ Note: Create an account in the openweather and use the api key from the profile that you get.
```
```shell
$ weather --help
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
current display the current weather data based on the city passed
Example: weather current location
forecast [options] list of weather forecast data for the provided location
Example: weather forecast location
air-quality display the air-quality of the location that we define
Example: weather air-quality location
favorites List all the favorite locations
Example: weather favorites
add-favorite Add a location to favorite
Example: weather favorites nepal
help [command] display help for command
Examples
$ weather current Nepal
result:
{
temperature: '22.18 deg',
Humidity: '59%',
Pressure: '1012hPa',
Wind_Speed: '2.08m/s',
description: 'broken clouds',
coordinate: { lon: 84, lat: 28 },
timezone: 20700,
visibility: 10000
}
$ weather air-quality Nepal
result:
{
AQI: 4,
PM2_5: 42.12,
PM10: 65.05,
O3: 141.62
}
```
### License
Licensed under MIT. See [LICENSE](LICENSE) for more information.
### Issues
Report a bug in issues.
Made by [Sandip Gyawali](https://github.com/SandipGyawali)