A web-based dashboard for monitoring potion flow and cauldron management. Brew View provides an interactive map, 3D visualization, ticket logs, analytics, and route optimization tools to monitor cauldron capacity, detect suspicious activity, and optimize collection routes.
- Overview
- Prerequisites
- Quick Start
- Manual Installation
- Start the Application
- Usage Guide
- Navigation
- Timeline Controls
- Filtering Data
- Features
- Troubleshooting
- Support and Feedback
Brew View is a Flask-based dashboard for real-time and historical monitoring of cauldron networks. Key capabilities include map-based monitoring, Three.js 3D visualizations, ticket logging and filtering, suspicious activity highlighting, analytics, and route optimization.
- Python 3.7 or higher
- pip3 (Python package installer)
- Internet connection for API access and map tiles
To get up and brewing instantly:
./start.shThis script will:
- Create and activate a virtual environment
- Install all required dependencies
- Launch the Flask application
Once running, open your browser and go to:
http://localhost:5000
To stop the server, press Ctrl+C in the terminal.
If you prefer to set things up manually:
- Open a terminal and navigate to the project directory
cd /path/to/PycharmProjects/brew-view - Create a virtual environment
python3 -m venv .venv
- Activate the virtual environment
- On Linux / macOS:
source .venv/bin/activate - On Windows:
.venv\Scripts\activate
- On Linux / macOS:
- Install required dependencies
pip3 install -r requirements.txt
- Ensure you are in the project directory and the virtual environment is active
- Run the Flask app
python3 flask_app.py
- Open your browser and navigate to:
http://localhost:5000 - To stop the server press Ctrl+C in the terminal
-
Map Tab (Default)
- Interactive map showing cauldron locations
- Color-coded markers for capacity levels
- Timeline controls for historical playback
- Date/time selection (year, month, day, hour)
- Click Show to display selected data on the map
- The Show button has a wiggle animation until first click
-
3D Visualization Tab
- Three-dimensional view of the cauldron network
- Rotate, zoom, and pan controls
- Animated particle effects
- Timeline controls for temporal data
-
Ticket Logs Tab
- View collection tickets with filters for date range, cauldron ID, courier ID, and status (Normal/Suspicious)
- Sortable columns and ticket statistics
- Suspicious tickets highlighted in red
- Light mode ensures text remains readable
-
Cauldron Trends Tab
- Historical trend charts per cauldron
- Multi-cauldron comparison and capacity-over-time visualizations
- Date and cauldron filters
-
Analytics Dashboard Tab
- System statistics, collection efficiency, courier performance, and health indicators
-
Route Optimization Tab
- Generate optimized collection routes between cauldrons
- Distance and time estimates with visual route display on the map
- Select Year from the dropdown
- Select Month from the dropdown
- Select Day from the dropdown
- Use the time slider to select a specific hour
- Click Show to load and display the data
- Use dropdown filters in Ticket Logs and Trends to select cauldrons, couriers, and date ranges
- Multiple selections are supported
- Filters apply either automatically or when you click Apply, depending on the UI context
- Real-time cauldron monitoring
- Interactive Leaflet/OpenStreetMap integration
- 3D visualization using Three.js
- Historical data timeline and playback
- Ticket logging and advanced filtering
- Suspicious activity detection with highlighted tickets
- Route optimization algorithms and visual routes
- Analytics and trend analysis
- Light/Dark themes with persistent setting
- Responsive design for desktop and mobile
- Animated UI elements for better discoverability
-
Problem: Application won't start
- Ensure dependencies are installed:
pip install -r requirements.txt - Check Python version:
python --version(must be 3.7+) - Verify port 5000 is free
- Ensure dependencies are installed:
-
Problem: Map tiles not loading
- Check internet connection
- Verify firewall or outbound rules allow map tile requests
-
Problem: API data not loading
- Check internet connection
- Verify API endpoint accessibility (example endpoint used by the project)
- Open the browser console (F12) and inspect network or JS errors
-
Problem: Light mode text not visible
- Update to the latest
index.htmlprovided in the repository
- Update to the latest
-
Problem: Show button animation not stopping
- Click the Show button once to stop the wiggle; refresh the page if it persists
For issues, bugs, or feature requests please open an issue in the project GitHub repository.
Happy Brewing and safe cauldron handling! 🧪✨