Skip to content

t3hj/BasicWeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather Application ☁️🌦️

A simple command-line weather application that fetches current weather data for multiple cities using the OpenWeatherMap API. Users can choose between metric (Celsius) and imperial (Fahrenheit) units for temperature.

Features ✨

  • Fetch current weather data for multiple cities at once. 🌍
  • Choose between Celsius and Fahrenheit for temperature units. 🌡️
  • Display temperature, humidity, wind speed, and weather description. 💨

Getting Started 🚀

Prerequisites 📋

  • Python 3.x
  • requests library (install using pip install requests)

Setup ⚙️

  1. Clone the repository:

    git clone https://github.com/t3hj/WeatherApp.git
    cd WeatherApp
  2. Install required libraries: Ensure you have the requests library installed:

    pip install requests
  3. API Key:

    • Sign up for an account at OpenWeatherMap and obtain your API key. 🔑
    • Replace the placeholder API key in the script with your valid API key:
      API_KEY = 'your_api_key_here'  # Ensure this is valid

Usage 💻

  1. Run the application:

    python main.py
  2. Follow the prompts:

    • Choose the temperature unit (C for Celsius, F for Fahrenheit). 🌡️
    • Enter city names separated by commas (e.g., London,Paris,New York). 🌆
  3. View the weather information displayed for each city. 📊

Example Output 💡

image

Contributing 🤝

If you'd like to contribute to this project, please fork the repository and create a pull request with your changes.

License 📜

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments 🙏

About

A command-line tool that retrieves current weather data for multiple cities using the OpenWeatherMap API. Users can select between Celsius and Fahrenheit for temperature, and view details like humidity, wind speed, and weather conditions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages