A simple weather dashboard that displays current weather information for a given ZIP code using the OpenWeatherMap API.
- Visit OpenWeatherMap and sign up for a free account.
- Once logged in, go to your dashboard and copy your API key.
In the root directory of the project, create a file named config.ini with the following contents:
[openweathermap]
api=YOUR_API_KEY_HERE🔒 Replace YOUR_API_KEY_HERE with your actual API key.
✅ Sample
config.ini:
[openweathermap]
api=88073a42ddddddddddMake sure you have Python 3.6 or later installed. Then run:
pip install -r requirements.txtpython app.pyOnce running, open your browser and visit:
http://127.0.0.1:5000/
-
Enter a ZIP code to get current weather information
-
Displays:
- Temperature
- Weather condition
- “Feels like” temperature
-
Clean, responsive design
-
Mobile-friendly interface
- Python 3.6+
- Flask
- Werkzeug
- Requests
- configparser