Skip to content

WeatherVista is a web application that provides real-time weather information for any city you search. It uses the OpenWeatherMap API to fetch current weather data and displays it in a clean and attractive user interface.

Notifications You must be signed in to change notification settings

kuldeep059/Real-Time-Weather-Application---Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherVista - Real-Time Weather Application

WeatherVista is a web application that provides real-time weather information for any city you search. It uses the OpenWeatherMap API to fetch current weather data and displays it in a clean and attractive user interface.

🌟 Features

  • Real-Time Weather: Fetches and displays current temperature, weather description, humidity, and wind speed.
  • User-Friendly Interface: Attractive and responsive design with an animated background.
  • City Search: Allows users to search for weather in any city.
  • Error Handling: Displays clear error messages for invalid city names.
  • .env Support: Uses a .env file to securely store your OpenWeatherMap API key.

🔧 Technologies Used

  • Python: Backend logic and API integration
  • Flask: Web framework for creating the application
  • Requests: For making HTTP requests to the OpenWeatherMap API
  • python-dotenv: For managing environment variables
  • HTML/CSS: Frontend design and layout
  • OpenWeatherMap API: For weather data

🧰 Prerequisites

Ensure you have the following installed:

  • Python 3.6+
  • pip (Python package installer)

🚀 Installation

  1. Clone the repository:
    git clone <repository_url>
    cd WeatherVista

🛠️ Setup Instructions

✅ Create a Virtual Environment (Recommended)

```bash
  python -m venv venv
  source venv/bin/activate  # On macOS/Linux
  venv\Scripts\activate     # On Windows

☁️ Azure Cloud Deployment and DevOps Integration

WeatherVista is deployed on Microsoft Azure App Service with end-to-end DevOps implementation.


✅ Cloud Infrastructure & Deployment Using Azure

  • Hosted on Azure App Service
  • 🌐 Live Link: WeatherVista
  • Deployment is done using GitHub CI/CD workflows.

🔄 CI / CD Pipeline

  • GitHub Actions: Automatically builds and deploys on every push to the main branch.
  • Zero downtime deployment with integrated build steps.

🔐 Security & Compliance

  • Environment Variables: API keys and secrets are securely stored in Azure Application Settings, not in the code repository.
  • No sensitive data checked into version control.

📊 Monitoring & Logging

  • Azure Monitoring Enabled: View real-time logs in:
    • KUDU (Advanced Tools)
    • Azure App Service > Logs section
  • Application health and error tracking are turned on for better observability.

🗃️ Database and Storage Management

  • This application uses Azure Cosmos DB to store and manage weather-related or user-specific data (if applicable).
  • Cosmos DB provides scalable, globally distributed database capabilities with high availability.
  • Future enhancements may include storing search history, user preferences, or weather logs in Cosmos DB.

📈 Log Analysis & Automation

  • Application logs are archived and can be used with Azure Log Analytics.
  • Automated alerts can be configured for error patterns or high latency.

🧪 Future Improvements

  • 5-day weather forecast integration
  • Location-based weather detection
  • Weather icons and improved animations
  • Mobile-first enhancements

Feel free to fork, star, and contribute to this project! 😊
For any questions or feature requests, raise an issue or contact via GitHub.

About

WeatherVista is a web application that provides real-time weather information for any city you search. It uses the OpenWeatherMap API to fetch current weather data and displays it in a clean and attractive user interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published