This repository hosts the codebase for a web application built on Hyperledger Fabric to monitor and manage an automated irrigation system. The application provides real-time data visualization and control for various parameters related to crop cultivation in a polyculture setup. Users can:
- Register and log in to access their dashboards.
- Select and monitor specific crop plots.
- Visualize real-time data in graphical and numerical formats.
- Configure, add, or remove sensor and actuator blocks.
- Manually control actuators and check their status.
- Export collected data in CSV format.
The parameters monitored include:
- Soil moisture
- Soil temperature
- Air humidity
- Air temperature
- Rainfall amount
- Rain probability
To use this application, you must first:
- Deploy and install our Hyperledger Fabric irrigation network, available here.
- Deploy and instantiate the
SmartAICc
(Smart Automatic Irrigation Chaincode) designed for interactions within this blockchain network. The chaincode repository is available here.
The project structure is as follows:
ApplicationWeb
├── backend
│ ├── certs # Contains certificates for HTTPS connections
│ ├── connection_profile # Connection profiles used to configure a gateway for all network interactions, focusing on business logic
│ └── utils # Utility files
├── frontend
├── css # Stylesheets
├── images # Images
└── views # HTML pages
The connection files provided are specific to our Hyperledger Fabric irrigation network. here.
git clone https://github.com/Lane-Romuald/Hyperledger-Fabric-SIA-Application.git
cd Hyperledger-Fabric-SIA-Application
Follow the instructions provided in the Hyperledger Fabric network repository.
Follow the instructions provided in the SmartAICc Chaincode repository.
- Navigate to the
backend
directory. - Update the
connection_profile
with your deployed Fabric network details. - Place your organisation's certificates in the
certs
directory, where you can keep what is already there.
cd backend
npm install
cd ../frontend
npm install
cd backend
node server.js
cd ../frontend
npm start
Open your browser and navigate to https://IP_Adresse:3000
.
- User Authentication
- Sign-up and login pages to securely access the platform.
- Plot Management
- Add new crop plots or select existing ones for monitoring.
- Real-Time Monitoring
- Visualize soil and air parameters in real time.
- Actuator Control
- Activate or deactivate actuators manually and view their status.
- Data Export
- Download collected data in CSV format for further analysis.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
- Hyperledger Fabric Documentation for guidelines and support.
- Open-source tools and libraries used in this project.