How aryankv08-png/telangana-hydrosense works
Aqua Intel is a Telangana water-quality monitoring and treatment decision-support application. Its main workflow is: an operator or viewer uses the web interface to submit or inspect water-quality data; the Node.js API coordinates prediction, safety and operational analysis, persists results, and returns findings and actions. The product also provides identity and role controls, water-body and alert management, restoration plans, reports, WQI/LSI calculations, impact-radius analysis and treatment-cost estimates. README documents the Python ML service; some frontend and route wiring is not excerpted, so uncertain links are omitted or marked unverified.
Main entry points: core.js Core routes · server.js Express application · aquaIntel.js Aqua Intel routes · db.js MySQL access
Components 21
User experience
- Web interface
index.html - Browser features
public
Node API
- Express application
server.js - Auth routes
src/routes/auth.js - Core routes
src/routes/core.js - Aqua Intel routes
src/routes/aquaIntel.js - WQI LSI routes
src/routes/wqiLsi.js - Identity and roles
src/middleware/auth.js - Error handling
src/middleware/errorHandler.js
Water analysis
- Safety standards
src/services/safety.js - False alarm filtering
src/services/falseAlarms.js - Risk matrix
src/services/matrix.js - Action recommendations
src/services/recommendations.js - Usage guidance
src/services/usageGuidance.js - WQI and LSI
src/services/wqiLsi.js
Data and ML
- MySQL access
src/db.js - Water-quality database
schema.sql - Schema and seeds
src/migrate.js - ML service client
src/services/mlClient.js - Prediction and analytics
ml_service.py
Other components
- Water user
Connections 28
- Water user → Web interface: uses
README.md - Web interface → Express application: submits requests
- Express application → Auth routes: mounts routes
server.js - Express application → Core routes: mounts routes
server.js - Express application → Aqua Intel routes: mounts routes
server.js - Express application → WQI LSI routes: mounts routes
server.js - Express application → Schema and seeds: initializes schema
server.js - Express application → Error handling: registers handler
server.js - Auth routes → MySQL access: reads and writes
src/routes/auth.js - Auth routes → Identity and roles: uses authentication
src/routes/auth.js - Core routes → MySQL access: reads and writes
src/routes/core.js - Core routes → ML service client: requests predictions
src/routes/core.js - Core routes → Safety standards: evaluates samples
src/routes/core.js - Core routes → False alarm filtering: filters alarms
src/routes/core.js - Core routes → Risk matrix: uses risk matrix
src/routes/core.js - Core routes → Action recommendations: uses recommendations
src/routes/core.js - Core routes → Usage guidance: builds guidance
src/routes/core.js - Aqua Intel routes → MySQL access: reads and writes
src/routes/aquaIntel.js - Aqua Intel routes → Identity and roles: checks roles
src/routes/aquaIntel.js - Aqua Intel routes → ML service client: checks ML health
src/routes/aquaIntel.js - Aqua Intel routes → Safety standards: evaluates safety
src/routes/aquaIntel.js - Aqua Intel routes → Risk matrix: uses risk matrix
src/routes/aquaIntel.js - WQI LSI routes → MySQL access: reads and writes
src/routes/wqiLsi.js - WQI LSI routes → WQI and LSI: calculates indices
src/routes/wqiLsi.js - Schema and seeds → MySQL access: creates and seeds
src/migrate.js - MySQL access → Water-quality database: queries
src/db.js - ML service client → Prediction and analytics: calls HTTP API
src/services/mlClient.js - Browser features → Express application: calls API