This Streamlit application provides a user-friendly interface to access weather data for a given city using the Open Weather Map API.
You can check out the deployed app here: Weathlit.

This project demonstrates a minimum viable product (MVP) using Streamlit, a Python library for creating web applications for data science and machine learning projects. The application connects to the Open Weather Map API to fetch real-time weather data for a given city and presents it in a user-friendly manner.
Upon launching the application, you will see a text input field where you can enter the name of the city for which you want to fetch weather data.
Type the name of the desired city in the text input and press "Enter" or click outside the input to trigger the data retrieval process.
The application will fetch weather data for the specified city using the Open Weather Map API and display the weather forecast for 5 days.
You can view the temperature, pressure, and humidity metrics in both numerical and chart format.
Follow the instructions below to run the Streamlit application on your local machine:
-
Clone the GitHub repository: Open Weather Map Streamlit.
-
Ensure that you have streamlit installed on your local machine. Find out how to install streamlit here
-
Create a .streamlit folder in your root directory
-
Navigate to your .streamlit directory
cd .streamlit- Create a secrets.toml file and place your open weather api key. Find out more here Open weather Map API
apikey = 'YOUR API KEY'- Run the following command in your terminal from your root terminal using windows.
streamlit run streamlit_app.pyThe weather data is provided by Open Weather Map, which offers a powerful and reliable weather API for developers.
Special thanks to the Streamlit team for providing an excellent framework for building interactive and intuitive web applications in Python.
Enjoy exploring the weather data and have a great day! 🌞🌤️🌦️