weather-cli-rs

Crates.ioweather-cli-rs
lib.rsweather-cli-rs
version1.0.0
sourcesrc
created_at2024-07-20 11:15:02.718603
updated_at2024-07-25 09:50:32.392315
descriptionA simple weather CLI application written in Rust
homepage
repositoryhttps://github.com/anathrax/weather-cli-rs
max_upload_size
id1309384
size52,149
Jakub Martenek (jm530ob)

documentation

README

weather-cli-rs

GitHub last commit GitHub commit activity Crates.io Total Downloads GitHub Repo stars

A simple weather CLI application written in Rust.

This application retrieves and displays current weather information for a specified city.

Future plans include integrating a Text User Interface (TUI).

Installation

cargo install weather-cli-rs

Usage

Ensure you have created an API key at https://openweathermap.org/. You will need to provide this key as an argument!

Run in your terminal

$ weather-cli-rs <COMMAND>

Commands

Command Description
key Ensure you have entered a valid API key before continuing
set Sets up your city
go Executes the app using the stored configuration
help Print this message or the help of the given subcommand(s)

Example

$ weather-cli-rs key <API_KEY>
$ weather-cli-rs set --name "Kyoto" --country "JP"

Note: The --country (-c) flag is optional. However, you will likely be prompted with several options to select your city

Weather in Kyoto - JP
        🢒 scattered clouds ☁
        🢒 Temperature: 31.81°C | feels_like 37.85°C
        🢒 Atmospheric pressure : 1010 hPa
        🢒 Visibility: 10000 m
        🢒 Humidity: 64%
        🢒 Wind speed: 2.24 m/s
        🢒 Clouds: 39%

Save yourself a few clicks next time

$ weather-cli-rs go
Commit count: 0

cargo fmt