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.
- 🌤 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
.envfile for API key management
Clone the repo:
git clone https://github.com/crypt0chris/weather-cli.git
cd weather-cliInstall dependencies:
pip install -r requirements.txtCreate a .env file with your OpenWeatherMap API key:
OPENWEATHER_API_KEY=your_api_key_hereAlternatively, copy .env.example and add your key:
cp .env.example .envRun the CLI:
python3 main.pyThen enter a city in the format:
City,StateCode,CountryCode
Examples:
New York,NY,USWashington,DC,USTokyo,JP
This project is licensed under the MIT License.