#weather #geolocation #forecast #api

app weather-app

A simple CLI tool to fetch weather data, by default uses you ip location

4 releases

0.2.4 Mar 22, 2025
0.2.3 Mar 21, 2025
0.2.2 Mar 20, 2025
0.2.1 Mar 20, 2025
0.1.0 Mar 20, 2025

#321 in Command line utilities

Download history 215/week @ 2025-03-15 191/week @ 2025-03-22 7/week @ 2025-03-29 3/week @ 2025-04-05

416 downloads per month

MIT license

15KB
81 lines

🌦️ Weather CLI

A blazing-fast and simple command-line application to fetch and display weather information for a given city using Rust. This tool utilizes reqwest to fetch weather data from an API and serde for efficient JSON parsing.

✨ Features

  • 🚀 Fetches real-time weather data
  • 🔍 Supports command-line input for city search
  • 🌍 Displays temperature, weather conditions, and other relevant details

🛠️ Installation

Prerequisites

  • 🦀 Rust (latest stable version recommended)

▶️ Run the CLI

  • add this export PATH="$HOME/.cargo/bin:$PATH" to you shell configuration file e.g: ~/.zshrc ~/.bashrc
export PATH="$HOME/.cargo/bin:$PATH"
weather-app [CITY_NAME/COUNTRY]

Example:

weather-app tokyo

📦 Dependencies

  • 🌐 reqwest - for making HTTP requests
  • 📜 serde and serde_json - for parsing JSON data

🛡️ Error Handling

  • The CLI gracefully handles network errors and invalid city inputs.
  • If an error occurs, it provides a meaningful error message.

📜 License

This project is licensed under the MIT License.

🤝 Contribution

Feel free to fork the repository, create issues, or submit pull requests!


🌍 Stay informed with real-time weather updates from your terminal! 🚀


🚀 Also avaialable on crate.io with the name weather-app

Dependencies

~9–20MB
~274K SLoC