Professional manufacturing dashboard with real-time analytics and monitoring
Project description
Manufacturing Dashboard IO
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
- Register account at PyPI.org
- 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
- Check console for errors (F12)
- Verify Python version:
python --version - Verify installation:
pip show manufacturing-dashboard-io - Reinstall:
pip install --upgrade manufacturing-dashboard-io
๐ Additional Resources
- GitHub: https://github.com/mahdi123-tech/manufacturing-dashboard-io
- Issues: Report bugs or request features
- Wiki: Documentation and guides
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - 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
- Email: info@manufacturingdashboard.io
- GitHub: @mahdi123-tech
๐ 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file manufacturing_dashboard_io-1.0.0.tar.gz.
File metadata
- Download URL: manufacturing_dashboard_io-1.0.0.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6784fe7134db5bcea6ce59e4f11c966ea9b205d66d8a284dc49c674ba7eceb70
|
|
| MD5 |
e0d9cc1b6c5350c9d3d36d4cf6ffdd9d
|
|
| BLAKE2b-256 |
df55590bd486ba4559e487aadc23be8ffe886c1e3c09d55b220a9200d704c37e
|
File details
Details for the file manufacturing_dashboard_io-1.0.0-py3-none-any.whl.
File metadata
- Download URL: manufacturing_dashboard_io-1.0.0-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e4f5a33e3313e3411b2bf1af65d38954221aba282f8bfdf15383ce21d7657d6
|
|
| MD5 |
cc43e3cf880efe69343f21d9bbcbcdaf
|
|
| BLAKE2b-256 |
1654475fc243f51e79e385ba5854717e73b2ee788461b704ac89692c0baaf3c2
|