How balavenu123/dryer-readings works
This is an industrial dryer SCADA monitoring system. Operators sign in, enter the protected dashboard, and view live dryer telemetry and alarms; they can inspect trends, acknowledge alarms, and adjust connection settings. Superadmins also manage monitor accounts. The backend obtains values from OPC UA or simulator state, evaluates alarms, and streams telemetry and status to the browser. A site bridge can push remote telemetry into the backend. The excerpts establish the principal API, socket, and frontend calls; the bridge link is documented only by the backend endpoint, so its caller relationship is unverified.
Main entry points: App.jsx Dashboard routing · SocketContext.jsx Live data context · server.js API and stream server · client.js OPC UA client
Components 21
Operator dashboard
- Dashboard routing
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - Live data context
frontend/src/context/SocketContext.jsx - Dryer detail
frontend/src/pages/DryerDetails.jsx - Alarm review
frontend/src/pages/Alarms.jsx - Trend analysis
frontend/src/pages/Trends.jsx - Connection settings
frontend/src/pages/Settings.jsx - User administration
frontend/src/pages/Admin.jsx - Status and alerts
frontend/src/components/Header.jsx - Navigation
frontend/src/components/Sidebar.jsx - Dashboard footer
frontend/src/components/Footer.jsx
Telemetry services
- API and stream server
backend/server.js - Telemetry and alarms
backend/services/simulator.js - Plant settings
backend/config/settings.json
Access management
- Authentication routes
backend/routes/auth.js - User records
backend/config/users.json
Plant connectivity
- OPC UA client
backend/opcua/client.js - Site telemetry bridge
site-bridge/site-bridge.js
Other components
- Operator
- OPC UA server
- Site PC
Connections 30
- Operator → Dashboard routing: opens dashboard
frontend/src/App.jsx - Dashboard routing → Session context: provides session
frontend/src/App.jsx - Dashboard routing → Live data context: provides live data
frontend/src/App.jsx - Dashboard routing → Dryer detail: routes to
frontend/src/App.jsx - Dashboard routing → Alarm review: routes to
frontend/src/App.jsx - Dashboard routing → Trend analysis: routes to
frontend/src/App.jsx - Dashboard routing → Connection settings: routes to
frontend/src/App.jsx - Dashboard routing → User administration: routes to
frontend/src/App.jsx - Dashboard routing → Status and alerts: renders
frontend/src/App.jsx - Dashboard routing → Navigation: renders
frontend/src/App.jsx - Dashboard routing → Dashboard footer: renders
frontend/src/App.jsx - Session context → Authentication routes: authenticates via API
frontend/src/context/AuthContext.jsx - Authentication routes → User records: reads and writes
backend/routes/auth.js - User administration → Authentication routes: manages accounts
frontend/src/pages/Admin.jsx - Dryer detail → Live data context: reads and toggles
frontend/src/pages/DryerDetails.jsx - Alarm review → Live data context: uses live alarms
frontend/src/pages/Alarms.jsx - Trend analysis → Live data context: uses telemetry
frontend/src/pages/Trends.jsx - Connection settings → Live data context: updates settings
frontend/src/pages/Settings.jsx - Status and alerts → Live data context: reads status
frontend/src/components/Header.jsx - Live data context → API and stream server: calls API
frontend/src/context/SocketContext.jsx - API and stream server → Live data context: streams updates
backend/server.js - API and stream server → Authentication routes: mounts routes
backend/server.js - API and stream server → Telemetry and alarms: reads and updates
backend/server.js - API and stream server → OPC UA client: connects and polls
backend/server.js - OPC UA client → OPC UA server: reads tag values
- OPC UA client → Telemetry and alarms: updates telemetry
backend/opcua/client.js - OPC UA client → Plant settings: loads endpoint settings
- API and stream server → Plant settings: reads settings
- Site PC → Site telemetry bridge: provides site data
- Site telemetry bridge → API and stream server: pushes telemetry