The WeatherSense_CLI Tool is a command-line interface application allowing users to obtain the current weather forecast for any city or country they choose. By utilizing the OpenWeatherMap API and leveraging the power of Python, this tool provides accurate and up-to-date weather information in a simple and convenient manner.
weathersenser.mp4
- Clone the repository to your local machine:
git clone https://github.com/Fastest-Coder-First/WeatherSense_CLI.git
- Navigate to the project directory:
cd WeatherSense_CLI
- Install the required dependencies:
pip install -r requirements.txt
-
Obtain an API key from OpenWeatherMap by creating an account on their website.
-
Rename the
.env.example
file to.env
and replaceYOUR_API_KEY_HERE
with your actual OpenWeatherMap API key.
To use the WeatherSense_CLI Tool, follow these steps:
-
Open a terminal or command prompt.
-
Navigate to the project directory.
-
Run the tool with the following command:
python main.py <city_name/country_name>
- Wait for the tool to fetch and display the current weather forecast for the specified location.
The WeatherSense_CLI Tool relies on the following dependencies:
- requests
- argparse
- pyfiglet
- simple-chalk
- python-dotenv
These dependencies are listed in the requirements.txt
file and will be installed during the installation process.
The WeatherSense_CLI Tool was developed with the assistance of GitHub Copilot, an AI-powered coding assistant. Copilot provides helpful code suggestions and autocompletion, making development faster and more efficient.
It helps in generating code snippets, suggesting function signatures, and even completing entire lines of code.
Copilot is currently in technical preview and is available as a Visual Studio Code extension. It also helped us in writing this README file.
Copilot seamlessly integrates into our workflow, providing real-time assistance and helping us overcome coding challenges. While adjustments were occasionally needed, Copilot's understanding of our project's context and alignment with our coding style impressed us. We believe it will continue to improve with user feedback and updates. Overall, Copilot has transformed our development process, allowing us to focus on delivering a superior user experience.
The WeatherSense_CLI Tool was developed using the OpenWeatherMap API, which provides the weather data used in this application. We would like to express our gratitude to the developers and contributors of OpenWeatherMap for their valuable service.