https://lake-lobster-5aa.notion.site/Weather-API-Task-08c038c956bd4e8cb7b41656929b5a97?pvs=4
Global Weather Tracker is a Python-based application designed to fetch real-time weather data from various global locations. Leveraging the Weather API, this app provides up-to-the-minute temperature updates for a selection of countries, making it an invaluable tool for travelers, researchers, and weather enthusiasts.
- Python
- Requests Library
- GeonamesCache
- dotenv for environment variable management
- Weather API
- Fetches real-time weather data for five randomly chosen countries.
- Uses the Weather API to retrieve current temperatures and other weather details.
- Custom logging system for tracking and debugging.
- Easy configuration through environment variables.
- Works on any os system, include docker , k8s .
To run this application on your local machine, follow these steps:
- Create a user and obtain API Key from :
(https://www.weatherapi.com/) - Clone the repository:
git clone [repo-link] - Install required Python packages:
pip install -r requirements.txt - Set up your
.envfile with your API_KEY=12345678910 - Run the application:
python app.py
Run the application using the command python app.py. The app will automatically update weather information every 5 minutes and log the data.