A simple command-line tool for fetching and displaying weather information for any city. Also includes a minimalistic GUI for user's with a preference.
WeatherCLI
is a Python script designed to interact with the OpenWeatherMap API to retrieve current weather conditions for any given city. This tool is perfect for those who prefer command-line interfaces or want to integrate weather data into their scripts or applications.
-
Clone the Repository:
git clone git@github.com:dotne1/WeatherCLI.git cd WeatherCLI
-
Install Dependencies:
pip install -r requirements.txt
-
Set your OpenWeatherMap API key as an environment variable:
export OPENWEATHER_API_KEY="your_api_key_here"
-
Run the script:
python WeatherCLI.py <city_name>
-
OR for GUI Feature:
python WeatherGUI.py
- OpenWeatherMap API Key: You need to sign up for an API key from OpenWeatherMap. Ensure you keep your API key secure and do not commit it to your repository.
- Python 3.6+
- requests library
- Fork the repository.
- Create a new branch (git checkout -b feature/awesome-feature).
- Make your changes
- Commit your changes (git commit -m 'Add some awesome feature').
- Push to branch (git push origin feature/awesome-feature).
- Create a Pull Request.
This project is licensed under the MIT License.
- OpenWeatherMap for providing the weather data API.
- Python Requests Library for making HTTP requests easy.