weather-rust-s

Crates.ioweather-rust-s
lib.rsweather-rust-s
version0.0.1-beta.2
sourcesrc
created_at2024-04-23 07:02:33.203552
updated_at2024-04-23 07:03:45.514288
descriptionA simple weather CLI app written in Rust
homepagehttps://github.com/codeAbinash/weather-rs
repository
max_upload_size
id1217237
size61,120
Abinash Karmakar (codeAbinash)

documentation

README

Weather (weather-rs)

GitHub Release Release Date Languages License

A simple weather CLI app written in Rust.

Usage

$ weather

prints the weather of the location mentioned in the .env file or the default location.

$ weather --help # or  -v prints the help message
$ weather --version # or -h 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.

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.

Commit count: 0

cargo fmt