It is a system that visualizes data collected from sensors like temperature, water-tank, humidity in real-time using WEBSOCKET and published over MQTT.
- Realtime dashboard
frontend: Contains the Next.js application for the frontend.sms: Contains the Django application for the backend.
To get the frontend part of the Sensors Monitoring System up and running, follow these steps:
- Navigate to the frontend directory:
cd frontend - Install the required dependencies:
npm install
- Start the development server:
npm run dev
The frontend application should now be running on http://localhost:3000.
To get the backend part of the Sensors Monitoring System up and running, follow these steps:
-
Navigate to the sms directory:
cd sms -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the migrations:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
The backend application should now be running on http://localhost:8000.
Once both the frontend and backend servers are up and running, you can access the realtime dashboard by navigating to http://localhost:3000 in your web browser. The dashboard will display the real-time data from the connected sensors.
Make sure to configure your MQTT broker and WebSocket server settings in the configuration files of both the frontend and backend applications before starting the servers.
We welcome contributions to the Sensors Monitoring System! To contribute, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/your-feature-name
- Create a new pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by Adelite Niyonshuti Shema. https://niyonshuti.org/