https://github.com/codeabinash/weather-rust
https://github.com/codeabinash/weather-rust
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeabinash/weather-rust
- Owner: codeAbinash
- License: mit
- Created: 2024-04-23T07:13:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T18:14:24.000Z (almost 2 years ago)
- Last Synced: 2024-05-05T19:28:11.477Z (almost 2 years ago)
- Language: Rust
- Size: 908 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

Weather CLI Rust
A simple weather CLI app written in Rust.
## Usage
```bash
$ weather
```
> Prints the weather of the location mentioned in the .env file or the default location.
```bash
$ weather --help # or -h prints the help message
```
```bash
$ weather --version # or -v prints the version of the app
```
## Configuration
Configuration the .env file.
Weather is in development stage. A lot of features are yet to be implemented. Now the configuration is static. And can be modified in the .env file. But in future it will be dynamic and can be changed from the command line.
```js
LATITUDE = 23.2325;
LONGITUDE = 87.0654;
API_KEY = "0e376e0750966cdba160fc85a4bb0427";
LOCATION_NAME = "Bankura";
```
> If there is no .env file the program will use the default configuration which is mentioned above.
> Weather API key can be obtained from [OpenWeatherMap](https://openweathermap.org/).