Weather Tracker is a simple Python application built with Streamlit that allows users to check the current weather of a city. It utilizes the OpenWeatherMap API to retrieve weather information.
Make sure you have the following installed on your system:
- Python
- Streamlit
- Requests library
You can install the required dependencies using the following:
pip install streamlit requests
- Get an API key from OpenWeatherMap and replace the
api_key
variable in the script with your key. - Run the script:
streamlit run <filename>.py
- Enter the desired city name in the prompted text input.
- The application will display the coordinates of the city if it exists; otherwise, it will prompt you to enter a correct city name.
python weather_tracker.py
Ensure you keep your API key confidential and do not share it publicly.
This project is licensed under the MIT License.