A dynamic and user-friendly weather CLI that brings you real-time weather updates from around the world. Stay informed about the latest temperature and humidity levels, ensuring you're always prepared for the elements. With colorful visual cues and interactive features, Weatherly provides an engaging weather experience like no other. Powered by Bing API, OpenWeatherMap, and enhanced with GitHub Copilot, Weatherly is your go-to companion for all things weather. Let's embark on a meteorological adventure together! 🌍🌤️🌡️💦
-
Fetch weather data based on city names or user location
-
Display temperature and humidity information with color-coded formatting
-
Supports multiple cities with the same name, allowing the user to select the desired city
-
Appropriate error handling for the city names such as involvement of special characters, numbers or extra spaces.
-
An example command line argument can be
python weather_cli.py Delhi Hy der#abad
- Clone the repository:
[[git clone https://github.com/your-username/weather-app.git](https://github.com/Fastest-Coder-First/Python-Weather-Forecast-CLI.git)
- Install dependencies:
pip install -r requirements.txt
- Don't forget to go to https://openweathermap.org/api and get your api key
- And https://www.microsoft.com/en-us/bing/apis/bing-web-search-api to get your api key
- Run the cli:
python weather_cli.py city1 city2 city3
- Replace
city1
,city2
, etc., with the names of the cities you want to get weather data for. - Example:
python weather_cli.py Srinagar Hyderabad
(city names separated by spaces) - You will be prompted to choose your desired options from the available locations with the same/similar names.
- Choose your desired location and Hoorayy!!
- Replace
-
Alternatively, run the cli without command line arguments:
- Example:
python weather_cli.py
- Enter city names separated by commas when prompted.
- You will be prompted to choose your desired options from the available locations with the same/similar names.
- Choose your desired location and Hoorayy!!
- Example:
- This is the general workflow of the CLI application.
- Powered by Bing API for geocoding and OpenWeatherMap API for weather data.
- AI assistance provided by GitHub Copilot.
We welcome contributions to improve our project. To contribute, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request