Jyotii is a comprehensive IoT project designed to monitor the status of a Navratri diya (lamp) ensuring it remains lit continuously for 9 days. The system includes an Arduino Nano with an old bootloader CH340, a NodeMCU ESP8266MOD, and an analog flame sensor. The backend server is built with Flask and deployed on Heroku, while the frontend is developed in Flutter.
- Real-Time Monitoring: Provides live status updates of the Navratri Diya via a Flask server.
- IoT Integration: Utilizes Arduino and NodeMCU ESP8266MOD for precise and non-invasive diya monitoring.
- Cross-Platform App: A user-friendly Flutter frontend for monitoring and interacting with the IoT device.
- Scalable Server: The Flask server can handle connections efficiently and is deployed on Heroku for high availability.
flutter_frontend/
: Contains all the Flutter application code.jyotiiFlask/
: Contains the Flask server application code.
- Python 3.8 or later
- Flask 1.1 or later
- Arduino IDE
- Flutter 2.0 or later
-
Clone the repository:
git clone https://github.com/divyesh1099/jyotii.git cd jyotii
-
Set up the Flask server:
-
Navigate to the
jyotiiFlask
directory:cd jyotiiFlask
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask server:
flask run
-
-
Set up the Flutter app:
-
Navigate to the
flutter_frontend
directory:cd flutter_frontend
-
Install Flutter dependencies:
flutter pub get
-
Run the app:
flutter run
-
- Environment Variables: Configure necessary environment variables such as
DATABASE_URL
andSECRET_KEY
. - IoT Device Setup: Ensure the Arduino and NodeMCU are programmed with the correct firmware which can be found in the
firmware
directory.
Refer to the included deployment guide for detailed instructions on deploying the Flask server to Heroku and setting up the Flutter app for production use.
Contributions are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Papa
- Navratri
- Meri Berojgari
- Moti❤️