π‘οΈ PyTemp β Your Simple City Temperature Checker π Python Program to Fetch Real-Time Weather Data PyTemp is a lightweight Python script designed to retrieve the current temperature of any city using the OpenWeatherMap API.
This project was created as part of my learning journey in Python and API integration. The code and logic are based on Dave Gray's Python Course for Beginners, which provided clear explanations and hands-on examples.
π Features π Get real-time temperature of any city in the world.
π§ Uses OpenWeatherMap API for accurate and reliable data.
π Supports .env file for secure API key storage.
π‘ Easy to set up and run β perfect for beginners and enthusiasts alike.
π οΈ Setup Instructions
π¦ Install dependencies (if not already installed):
pip install requests python-dotenvπ Create an account on OpenWeatherMap to get your free API key.
π Set up your .env file in the project root:
env
API_KEY=your_openweathermap_api_key_here- Add your own API_KEY in the .env folder
- Generate your own API_KEY from the OpenWeatherApp Website (Current Weather Data API) section.
π§ͺ Run the program and enter the city name when prompted.