Skip to main content

Professional manufacturing dashboard with real-time analytics and monitoring

Project description

Manufacturing Dashboard IO

Python 3.7+ License: MIT PyPI version

A professional manufacturing dashboard with real-time analytics, interactive charts, and comprehensive monitoring capabilities.

๐Ÿญ Features

  • Real-time Production Monitoring: Track daily production output in real-time
  • Interactive Charts: Production trends, quality breakdown, energy consumption analysis
  • Machine Status Tracking: Monitor operational status of all machines
  • Team Performance Metrics: View top performers and team statistics
  • Maintenance Scheduling: Track and schedule maintenance tasks
  • Password Protection: Secure access with encrypted authentication
  • Dark/Light Mode: Beautiful UI with theme customization
  • Responsive Design: Works on desktop, tablet, and mobile devices
  • Keyboard Shortcuts: Quick access to common functions
  • Multi-language Support Ready: Easy to extend for multiple languages

๐Ÿ“‹ System Requirements

  • Python 3.7 or higher
  • 50MB disk space
  • Any modern web browser (Chrome, Firefox, Safari, Edge)

๐Ÿš€ Installation

Quick Start

pip install manufacturing-dashboard-io

From Source

git clone https://github.com/mahdi123-tech/manufacturing-dashboard-io.git
cd manufacturing-dashboard-io
pip install -e .

๐ŸŽฏ Usage

Start the Dashboard

manufacturing start

The dashboard will automatically open in your default browser at http://localhost:8000

Command Options

# Custom port
manufacturing start --port 9000

# Listen on all interfaces
manufacturing start --host 0.0.0.0

# Don't auto-open browser
manufacturing start --no-browser

# Show version
manufacturing --version

# Show help
manufacturing --help

๐Ÿ” Default Credentials

Password: play with mahdi

โš ๏ธ Important: Change the password in production by modifying manufacturing_dashboard/web/js/script.js

โŒจ๏ธ Keyboard Shortcuts

Shortcut Action
Ctrl+K / Cmd+K Logout
Ctrl+T / Cmd+T Toggle Dark/Light Mode
Ctrl+E / Cmd+E Export Data

๐Ÿ“Š Dashboard Sections

1. Key Metrics

  • Total Units: Daily production output
  • Efficiency Rate: Operational efficiency percentage
  • Defect Rate: Quality control metrics
  • Machine Uptime: System availability

2. Analytics

  • Production Trend: 7-day production volume with bar charts
  • Quality Breakdown: Defects distribution with pie charts
  • Energy Consumption: Hourly energy usage with line charts
  • Shift Distribution: Workers per shift visualization

3. Monitoring

  • Machine Status: Real-time operational status
  • Team Performance: Top performers ranking
  • Maintenance Schedule: Upcoming maintenance tasks
  • Active Alerts: System notifications and warnings

4. Activity

  • Recent Events: Production and system events timeline
  • Daily Target: Production goal progress tracker

๐ŸŽจ Customization

Change the Password

Edit manufacturing_dashboard/web/js/script.js:

// Find this line (around line 30):
this.correctPasswordHash = this.hashPassword("play with mahdi");

// Change to your desired password:
this.correctPasswordHash = this.hashPassword("your-new-password");

Customize Colors

Edit manufacturing_dashboard/web/css/styles.css:

:root {
    --color-primary: #000;        /* Primary color */
    --color-success: #4CAF50;     /* Success (green) */
    --color-warning: #FF9800;     /* Warning (orange) */
    --color-error: #F44336;       /* Error (red) */
    --color-info: #2196F3;        /* Info (blue) */
}

Add Custom Data

Modify the data in manufacturing_dashboard/web/js/script.js in the ChartDrawer class:

static drawProductionChart() {
    const data = [14200, 15100, 16800, 17500, 16200, 18900, 15487];
    // Modify the data array with your actual values
}

๐Ÿ“ฆ Project Structure

manufacturing-dashboard-io/
โ”œโ”€โ”€ manufacturing_dashboard/
โ”‚   โ”œโ”€โ”€ __init__.py              # Package initialization
โ”‚   โ”œโ”€โ”€ server.py                # HTTP server implementation
โ”‚   โ”œโ”€โ”€ cli.py                   # Command-line interface
โ”‚   โ”œโ”€โ”€ utils.py                 # Utility functions
โ”‚   โ””โ”€โ”€ web/                     # Web assets
โ”‚       โ”œโ”€โ”€ index.html           # Login page
โ”‚       โ”œโ”€โ”€ dashboard.html       # Main dashboard
โ”‚       โ”œโ”€โ”€ css/
โ”‚       โ”‚   โ””โ”€โ”€ styles.css       # All styling
โ”‚       โ””โ”€โ”€ js/
โ”‚           โ””โ”€โ”€ script.js        # Frontend logic
โ”œโ”€โ”€ setup.py                     # Package configuration
โ”œโ”€โ”€ requirements.txt             # Dependencies
โ”œโ”€โ”€ LICENSE                      # MIT License
โ”œโ”€โ”€ README.md                    # This file
โ””โ”€โ”€ MANIFEST.in                  # Package manifest

๐Ÿ”ง Development

Local Development Setup

# Clone the repository
git clone https://github.com/mahdi123-tech/manufacturing-dashboard-io.git
cd manufacturing-dashboard-io

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in development mode
pip install -e .

# Run the dashboard
manufacturing start

Running Tests

# Run all tests
python -m pytest

# Run with coverage
python -m pytest --cov=manufacturing_dashboard

๐Ÿ“ค Publishing to PyPI

Prerequisites

  1. Register account at PyPI.org
  2. Install required tools:
pip install build twine

Build the Package

cd manufacturing-dashboard-io
python -m build

This creates dist/ directory with:

  • manufacturing-dashboard-io-1.0.0.tar.gz (source distribution)
  • manufacturing_dashboard_io-1.0.0-py3-none-any.whl (wheel)

Upload to PyPI

# Upload to PyPI (requires credentials)
python -m twine upload dist/*

# Or with specific credentials
python -m twine upload dist/* -u __token__ -p your-pypi-token

Test Upload (TestPyPI)

# First time setup: register on testpypi.org
# Upload to TestPyPI
python -m twine upload --repository testpypi dist/*

# Install from TestPyPI to verify
pip install --index-url https://test.pypi.org/simple/ manufacturing-dashboard-io

๐Ÿ› Troubleshooting

Port Already in Use

# Use a different port
manufacturing start --port 9000

# Or kill existing process
# On Linux/Mac: lsof -i :8000 | grep LISTEN | awk '{print $2}' | xargs kill -9
# On Windows: netstat -ano | findstr :8000

Browser Doesn't Open Automatically

# Use --no-browser flag and open manually
manufacturing start --no-browser
# Then visit http://localhost:8000

Wrong Password Error

The default password is: play with mahdi (case-sensitive)

Dashboard Not Loading

  1. Check console for errors (F12)
  2. Verify Python version: python --version
  3. Verify installation: pip show manufacturing-dashboard-io
  4. Reinstall: pip install --upgrade manufacturing-dashboard-io

๐Ÿ“š Additional Resources

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ Changelog

Version 1.0.0 (2025-02-04)

  • Initial release
  • Real-time production monitoring
  • Interactive charts and analytics
  • Password protection
  • Dark/Light mode support
  • Responsive design

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘จโ€๐Ÿ’ป Author

Manufacturing Systems

๐Ÿ™ Acknowledgments

  • Built with Python 3.7+
  • Inspired by modern manufacturing analytics platforms
  • Thanks to the open-source community

โญ Support

If you find this project useful, please consider giving it a star on GitHub!


Happy Manufacturing! ๐Ÿญ

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manufacturing_dashboard_io-1.0.0.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manufacturing_dashboard_io-1.0.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file manufacturing_dashboard_io-1.0.0.tar.gz.

File metadata

File hashes

Hashes for manufacturing_dashboard_io-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6784fe7134db5bcea6ce59e4f11c966ea9b205d66d8a284dc49c674ba7eceb70
MD5 e0d9cc1b6c5350c9d3d36d4cf6ffdd9d
BLAKE2b-256 df55590bd486ba4559e487aadc23be8ffe886c1e3c09d55b220a9200d704c37e

See more details on using hashes here.

File details

Details for the file manufacturing_dashboard_io-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for manufacturing_dashboard_io-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e4f5a33e3313e3411b2bf1af65d38954221aba282f8bfdf15383ce21d7657d6
MD5 cc43e3cf880efe69343f21d9bbcbcdaf
BLAKE2b-256 1654475fc243f51e79e385ba5854717e73b2ee788461b704ac89692c0baaf3c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page