Skip to content

A simple Python code generating API from OpenWeatherMap website

License

Notifications You must be signed in to change notification settings

Vikranth3140/Weather-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Weather Tracker ☁️

Overview

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.

Prerequisites

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

Usage

  1. Get an API key from OpenWeatherMap and replace the api_key variable in the script with your key.
  2. Run the script:
    streamlit run <filename>.py
  3. Enter the desired city name in the prompted text input.
  4. The application will display the coordinates of the city if it exists; otherwise, it will prompt you to enter a correct city name.

Example

python weather_tracker.py

Note

Ensure you keep your API key confidential and do not share it publicly.

License

This project is licensed under the MIT License.

About

A simple Python code generating API from OpenWeatherMap website

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages