Skip to content

harsharma30/Real-Time-Weather-Analytics-using-PowerBI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌦️ Weather Analytics Dashboard | Power BI

Dashboard Preview

📌 Project Overview

The Weather Analytics Dashboard is a fully responsive Power BI project that provides real-time weather insights for any city using live weather APIs. The dashboard dynamically updates current conditions, historical trends, and forecast information whenever the user selects a different city.

Unlike dashboards built on static datasets, this project fetches live weather information from an online API, transforms the data using Power Query, and presents it through an interactive and responsive Power BI dashboard.


🎯 Business Problem

Weather data is critical for industries such as:

  • Aviation
  • Logistics
  • Tourism
  • Agriculture
  • Event Management
  • Smart Cities

Most weather applications provide raw information but lack analytical dashboards that enable quick decision-making.

This project aims to solve that problem by creating a centralized analytics dashboard that displays:

  • Current Weather Conditions
  • Weekly Forecast
  • Air Quality Metrics
  • Sunrise & Sunset Timings
  • Rain Probability
  • Weather Trends

Users can instantly switch between cities and receive updated visualizations without modifying the report.


🌍 Dataset

Data Source

  • Live Weather API
  • Air Quality API

The dashboard fetches:

  • Current Weather
  • Forecast Weather
  • Air Quality Data
  • Sunrise & Sunset Information
  • Atmospheric Conditions

Since the project uses APIs, no static dataset is stored inside the repository.


🛠️ Tools Used

Tool Purpose
Power BI Desktop Dashboard Development
Power Query API Connection & Data Transformation
DAX Measures & Calculations
REST API Live Weather Data
JSON API Response Format

🧹 Data Cleaning

The API responses are received in JSON format and transformed using Power Query.

The following transformations were performed:

  • Flattened nested JSON objects
  • Removed unnecessary fields
  • Converted timestamps into readable date/time formats
  • Standardized temperature units (°C)
  • Renamed columns
  • Changed data types
  • Created calculated columns
  • Handled missing values
  • Prepared separate tables for:
    • Current Weather
    • Forecast
    • Air Quality
    • Additional Weather Metrics

🗂️ Data Model

The dashboard is built using multiple transformed tables obtained from the API.

Weather API
        │
        ▼
Power Query
        │
 ┌───────────────┐
 │ Current Data  │
 │ Forecast Data │
 │ AQI Data      │
 │ City Details  │
 └───────────────┘
        │
        ▼
Power BI Data Model
        │
        ▼
Interactive Dashboard

📷 Dashboard Preview

Main Dashboard

Dashboard Dashboard Dashboard

Features

  • 🌍 Dynamic City Selection
  • 📅 7-Day Forecast
  • 📈 Temperature Trend Analysis
  • 🌅 Sunrise & Sunset
  • 🌧️ Rain Probability
  • 🌫️ Air Quality Metrics
  • 🌡️ Weather Indicators
  • 📱 Fully Responsive Layout
  • ⚡ Live API Integration

📊 KPIs

The dashboard displays the following Key Performance Indicators:

Weather Metrics

  • Current Temperature
  • Weather Condition
  • Humidity
  • Wind Speed
  • Visibility
  • Atmospheric Pressure
  • UV Index
  • Precipitation

Forecast Metrics

  • Weekly Temperature Forecast
  • Daily Weather Icons
  • Temperature Trend Line

Air Quality

  • PM2.5
  • PM10
  • CO
  • NO₂
  • SO₂
  • O₃

Astronomy

  • Sunrise Time
  • Sunset Time

Rain Analytics

  • Daily Chance of Rain (%)

📈 Key Insights

  • Weather updates dynamically based on selected city.
  • Live API ensures real-time weather information.
  • Forecast visualization enables quick comparison of temperature trends.
  • Air Quality metrics help evaluate environmental conditions.
  • Rain probability assists users in travel planning.
  • Sunrise and Sunset timings provide additional daily insights.
  • Responsive design offers a consistent experience across different screen sizes.

💡 Recommendations

Possible future enhancements include:

  • 🌍 Global map visualization
  • Weather alerts and notifications
  • Severe weather warnings
  • Historical weather comparison
  • Temperature anomaly analysis
  • Monthly climate trends
  • Weather-based travel recommendations
  • Multi-language support
  • Dark & Light theme toggle
  • Mobile-optimized dashboard version

📁 Repository Structure

Weather-Analytics-Dashboard/
│
├── Dashboard/
│   └── Weather Dashboard.pbix
│
├── Images/
│   ├── dashboard-preview.png
│   ├── city-selection.png
│   ├── forecast.png
│   └── air-quality.png
│
├── Documentation/
│   └── Project Report.pdf
│
├── README.md
│
└── LICENSE

🚀 How to Open the Project

Option 1 (Recommended)

  1. Download the repository.
  2. Open Weather Dashboard.pbix using Power BI Desktop.
  3. Refresh the report.
  4. Ensure an internet connection is available so the APIs can retrieve the latest weather data.
  5. Select any city to explore updated weather insights.

⭐ Project Highlights

✔ Live API Integration

✔ Dynamic City Selection

✔ Fully Responsive Dashboard

✔ Interactive Visualizations

✔ Air Quality Monitoring

✔ Forecast Analytics

✔ Power Query Data Transformation

✔ Modern Dashboard UI


👨‍💻 Author

Harsh Sharma

  • 💼 Aspiring Data Analyst
  • 📊 Power BI | SQL | Python | Excel | Data Visualization

If you found this project helpful, consider giving it a ⭐ on GitHub!

About

The Weather Analytics Dashboard is a real-time business intelligence solution built using Power BI that connects to live weather APIs, processes JSON data through Power Query, and presents dynamic visualizations for current weather, forecast trends, air quality, and environmental metrics.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors