Local Dashboard
The TwinEdge Edge local dashboard provides on-device monitoring when cloud connectivity is unavailable or for low-latency visualization.
Overview
The local dashboard runs directly on your edge device, accessible via web browser on the local network.
Key Features
- Real-time data: Sub-second updates
- Offline operation: No internet required
- Local alerts: On-device alert processing
- PWA support: Install as mobile app
- Touch-optimized: Works on tablets
Accessing the Dashboard
URL
Access from any device on the same network:
http://EDGE_DEVICE_IP:3000
For example:
http://192.168.1.100:3000http://twinedge-edge-1.local:3000(mDNS)
Finding the IP Address
On the edge device:
hostname -I
Or check your router's connected devices list.
Authentication
Default credentials:
- Username:
admin - Password:
twinedge
Change the default password immediately after first login via Settings → Users.
Dashboard Layout
Home Page
The home page shows:
- System Status: CPU, memory, disk usage
- Connected Assets: List of configured assets
- Recent Alerts: Latest triggered alerts
- Cloud Sync: Connection status to TwinEdge Cloud
Asset View
Click an asset to see:
- Real-time Values: Current sensor readings
- Trend Charts: Recent data history
- Health Status: Normal/Warning/Critical
- ML Predictions: Anomaly scores (if deployed)
Alerts Page
View and manage alerts:
- Active Alerts: Currently triggered
- Alert History: Past 24 hours
- Acknowledge: Mark alerts as seen
- Silence: Temporarily mute
Real-time Visualization
Live Charts
Charts update in real-time via WebSocket:
- Streaming mode: New points appear instantly
- Buffering: Smooth rendering for high-frequency data
- Zoom: Click and drag to zoom time range
Gauges and KPIs
- Animated transitions: Smooth value changes
- Color coding: Green/Yellow/Red based on thresholds
- Sparklines: Mini trend indicators
Data Tables
- Auto-refresh: Configurable update interval
- Sorting: Click column headers
- Filtering: Quick search
Alert Management
Viewing Alerts
The alert indicator shows:
- 🔴 Critical alerts active
- 🟡 Warning alerts active
- 🟢 No active alerts
Acknowledging Alerts
- Click the alert
- Click Acknowledge
- Optionally add a note
- Alert moves to "Acknowledged" status
Alert Actions
On the local dashboard, you can:
- Acknowledge: Mark as seen
- Silence (1h/4h/24h): Temporarily mute
- View Details: See trigger history
Offline Operation
What Works Offline
When disconnected from the cloud:
| Feature | Available Offline |
|---|---|
| Data collection | Yes |
| Local visualization | Yes |
| Local alerts | Yes |
| ML inference | Yes |
| Cloud sync | No |
| Remote access | No |
Data Buffering
Data is stored locally when offline:
storage:
buffer_size_gb: 10
retention_days: 7
sync_on_reconnect: true
When cloud connectivity returns, buffered data syncs automatically.
Offline Alerts
Local alerts continue to work:
- LED indicators (if configured)
- Local audio alarms
- Local email (if SMTP configured)
Configuration
Dashboard Settings
Access via Settings gear icon:
Display:
- Theme: Light/Dark/Auto
- Refresh rate: 1-60 seconds
- Default time range: 15m/1h/6h/24h
Units:
- Temperature: °C/°F
- Pressure: bar/psi
- Time format: 12h/24h
Asset Configuration
Edit assets via Settings → Assets:
- Add/remove tags
- Set display names
- Configure thresholds
- Set polling intervals
User Management
Manage local users:
- Go to Settings → Users
- Add/edit users
- Set roles (Admin/Operator/Viewer)
Mobile Access
Progressive Web App (PWA)
Install as an app on mobile devices:
iOS:
- Open in Safari
- Tap Share → "Add to Home Screen"
Android:
- Open in Chrome
- Tap menu → "Add to Home Screen"
Touch Optimization
The dashboard is optimized for touch:
- Large touch targets
- Swipe navigation
- Pinch-to-zoom on charts
Performance
Recommended Browsers
| Browser | Performance |
|---|---|
| Chrome | Excellent |
| Firefox | Excellent |
| Safari | Good |
| Edge | Excellent |
Resource Usage
The dashboard uses:
- ~50MB memory in browser
- Minimal CPU when idle
- ~100KB/s network during real-time updates
Scaling Considerations
For many assets (50+):
- Use pagination
- Limit visible charts
- Consider multiple dashboards
Customization
Custom Pages
Create custom dashboard pages:
- Go to Settings → Pages
- Click New Page
- Drag and drop widgets
- Save and set visibility
Widget Library
Available widgets:
- Line Chart
- Gauge
- KPI Card
- Table
- Status Indicator
- Asset Map (local network)
Theming
Customize appearance:
/* Custom theme in Settings → Appearance */
:root {
--primary-color: #00E5BF;
--background: #0B0F14;
--surface: #151B23;
}
Troubleshooting
Dashboard Not Loading
-
Verify edge device is running:
docker compose ps -
Check dashboard service:
docker compose logs dashboard -
Verify port is accessible:
curl http://localhost:3000
Slow Performance
- Check browser console for errors
- Reduce number of visible charts
- Increase chart refresh interval
- Check edge device resources
Data Not Updating
- Check WebSocket connection (browser dev tools)
- Verify data source connectivity
- Check dashboard-api service logs
Login Issues
Reset admin password:
cd /opt/twinedge
docker compose exec dashboard-api python reset_password.py admin
API Access
Local REST API
The dashboard API is available locally:
# Get current values
curl http://localhost:5000/api/assets
# Get asset details
curl http://localhost:5000/api/assets/Pump_001/sensors
# Get historical data
curl "http://localhost:5000/api/assets/Pump_001/history?start=-1h"
WebSocket
Real-time data via WebSocket:
const ws = new WebSocket('ws://localhost:5000/ws');
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log(data);
};
// Subscribe to asset
ws.send(JSON.stringify({
type: 'subscribe',
asset_id: 'Pump_001'
}));
Next Steps
- OTA Updates - Update the dashboard remotely
- Protocols - Connect more data sources
- Troubleshooting - Resolve common issues