Skip to content

GitRichorDieTrying/weather-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather CLI

Python License PRs Welcome

A sleek and minimalist terminal tool for fetching real-time weather conditions by city, using the OpenWeatherMap API. Perfect for CLI enjoyers and automation enthusiasts.

✨ Features

  • 🌤 Current weather conditions by city name
  • 🌡 Temperature shown in both °C / °F
  • 💧 Humidity and 🌬 Wind speed included
  • 🔧 Clean CLI output, easy to integrate and extend
  • 📂 Supports .env file for API key management

📦 Installation

Clone the repo:

git clone https://github.com/crypt0chris/weather-cli.git
cd weather-cli

Install dependencies:

pip install -r requirements.txt

🔑 Setup

Create a .env file with your OpenWeatherMap API key:

OPENWEATHER_API_KEY=your_api_key_here

Alternatively, copy .env.example and add your key:

cp .env.example .env

🚀 Usage

Run the CLI:

python3 main.py

Then enter a city in the format:
City,StateCode,CountryCode
Examples:

  • New York,NY,US
  • Washington,DC,US
  • Tokyo,JP

📄 License

This project is licensed under the MIT License.

About

Pulls real-time weather data using an API and displays it based on user input.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages