An open API service indexing awesome lists of open source software.

https://github.com/anand-sony/mttr-dashboard

Streamlit dashboard for MTTR analysis with shift-wise loss insights and machine-level downtime tracking.
https://github.com/anand-sony/mttr-dashboard

analytics business-analytics dashboard data python statistical-analysis

Last synced: 29 days ago
JSON representation

Streamlit dashboard for MTTR analysis with shift-wise loss insights and machine-level downtime tracking.

Awesome Lists containing this project

README

          

๐Ÿ“Š MTTR Analysis Dashboard

Interactive dashboard to track Mean Time To Repair across production lines, machines, and defect categories.

![Python](https://img.shields.io/badge/Python-3.x-blue?style=flat-square)
![Streamlit](https://img.shields.io/badge/Streamlit-1.45.1-red?style=flat-square)
![Plotly](https://img.shields.io/badge/Plotly-5.24.1-green?style=flat-square)

---

## ๐Ÿš€ Live App

> **[๐Ÿ‘‰ Click here to open the dashboard](https://dkxsds6bfnnebiz4jxkr4j.streamlit.app/)**

No installation needed โ€” runs directly in your browser.

---

## ๐Ÿ“‹ How to Use

### Step 1 โ€” Open the App
Click the live link above. The dashboard loads instantly.

### Step 2 โ€” Download Sample Data *(Optional)*
Click the **"๐Ÿ“ฅ Download Sample CSV (500 rows)"** button at the top of the app to get a ready-to-use file with the correct format.

### Step 3 โ€” Prepare Your CSV

Your file must have exactly these **7 columns**:

| Column Name | Description | Example |
|---|---|---|
| `Line-ID` | Production line name | `Line-1` |
| `Machine-ID` | Machine name | `Machine-3` |
| `Start-Time` | Breakdown start time | `17-01-2025 06:00` |
| `End-Time` | Breakdown end time | `17-01-2025 08:05` |
| `Category Defect` | Main defect category | `Electrical Defect` |
| `Sub-Category Defect` | Specific defect type | `Relay Contactor` |
| `Down-Time` | Duration in minutes | `99.99` |

> โš ๏ธ **Date format must be `DD-MM-YYYY HH:MM`**

### Step 4 โ€” Upload & Explore
Upload your CSV and the dashboard will automatically generate all charts.

---

## ๐Ÿ“Š Features

| Feature | Description |
|---|---|
| ๐Ÿ“ˆ Pareto Chart by Line | Rank lines by MTTR with cumulative % overlay |
| ๐Ÿ”ง Machine-wise MTTR | Select any line โ†’ see machine-level breakdown |
| ๐Ÿ” Loss-wise MTTR | Select any machine โ†’ drill into defect categories |
| ๐Ÿ“‹ Top 5 Defects by Line | Most frequent defects per line |
| ๐Ÿ Cross-line Defects | Defects appearing across multiple machines/lines |
| ๐Ÿ“ฅ Export Charts | Download any chart as an interactive HTML file |

---

## ๐ŸŽ›๏ธ Filters

Use the **left sidebar** to:
- Filter by **date range**
- Set a **minimum Down-Time** threshold (e.g. show only breakdowns > 30 min)

---

## ๐Ÿ› ๏ธ Tech Stack

- [Streamlit](https://streamlit.io/) โ€” dashboard framework
- [Pandas](https://pandas.pydata.org/) โ€” data processing
- [Plotly](https://plotly.com/) โ€” interactive charts
- [NumPy](https://numpy.org/) โ€” numerical operations

---

## ๐Ÿ“ Repository Structure

```
MTTR-Dashboard/
โ”œโ”€โ”€ mttr_dashboard.py # Main dashboard app
โ”œโ”€โ”€ Sample_Data.csv # Sample dataset (500 rows)
โ”œโ”€โ”€ requirements.txt # Python dependencies
โ””โ”€โ”€ README.md
```

---

## ๐Ÿ“ฌ Contact

Built by **Anand Soni** ยท [GitHub Profile](https://github.com/Anand-Sony)

## โญ Support

## If you found this project useful, consider giving it a โญ on GitHub!