Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CspmIT/mas-agua-front/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Mas Agua Dashboard is the central hub for real-time water management monitoring. It displays live data from InfluxDB through multiple chart types, automatically refreshing every 30 seconds to provide up-to-date information about your water infrastructure.
Key Features
- Real-time Data Updates: Automatic refresh every 30 seconds from InfluxDB
- Multiple Chart Types: Support for liquid fill, gauge, boolean status, pie, bar, and line charts
- Responsive Grid Layout: Adaptive layout that adjusts to screen size
- Pump Control Monitoring: Specialized widgets for pump status and control
- Flexible Configuration: Charts are dynamically loaded from backend configuration
Dashboard Architecture
The dashboard uses a component-based architecture that fetches all chart configurations from the backend and renders them dynamically:Data Flow
- Initial Load: Dashboard fetches chart configurations from
/indicatorChartsendpoint - Variable Extraction: All InfluxDB variables are extracted from chart configs
- Batch Query: Single API call to
/multipleDataInfluxfetches all data at once - Automatic Refresh: 30-second interval updates all values simultaneously
Chart Components
Liquid Fill Chart
Displays percentage or volume levels with animated liquid fill effect.
Supported Shapes:
- Circle
- Rectangle
- Rounded Rectangle
- Triangle
- Diamond
- Arrow
- Pin
Gauge Speed
Speedometer-style gauge for displaying metrics with min/max ranges.
Features:
- 210° arc display (from bottom-left to bottom-right)
- Gradient color fills
- Customizable maximum value
- Unit labels and descriptions
Boolean Chart
LED-style indicator for on/off status visualization.
Configuration:
- Radial gradient for depth effect
- Glow animation when active
- Automatic color transitions
Multiple Boolean Chart
Grid display of multiple boolean indicators in a single widget. Use Cases:- Tank status monitoring
- Multiple pump states
- System health indicators
Pump Control Widget
Specialized component for monitoring pumps and their operational states. Data Structure:Grid Layout
The dashboard uses a responsive Material-UI Grid system:Responsive Behavior
- Mobile (xs): All charts display full width
- Tablet (sm): Pump controls at 8/12, standard charts at 4/12
- Desktop (lg): Pump controls at 4/12, standard charts at 2/12
Data Optimization
The dashboard implements efficient data fetching to minimize API calls:Single Batch Request
Automatic Updates
Card Wrapper
All dashboard charts are wrapped in a consistent card component:Configuration Example
Backend chart configuration format:Performance Tips
Common Use Cases
Water Tank Monitoring
Combine liquid fill charts with boolean indicators:- Liquid fill: Tank level percentage
- Boolean: High/low level alarms
- Gauge: Inlet pressure
Pump Station Dashboard
Use pump control widgets with supporting metrics:- Pump control: Primary and backup pumps
- Gauge: Flow rate and pressure
- Boolean: Motor protection status
Network Pressure Monitoring
Display pressure across multiple zones:- Gauge charts: Pressure at different points
- Line charts: Pressure trends (via dashboard charts)
- Boolean: Pressure alarm states
Next Steps
Real-time Monitoring
Learn about the real-time data update system
Charts & Visualization
Explore all available chart types

