This project is an IoT dashboard that allows visualization and analysis of data from various connected devices.
- Real-time IoT data collection
- Data visualization using charts and tables
- Predictions using the Prophet model
- Intuitive and responsive user interface
- Python 3.7+
- Node.js and npm (for the user interface)
-
Clone the repository:
git clone https://github.com/mcrai-dev/iot-dashboard.git cd iot-dashboard -
Install Python dependencies:
pip install -r requirements.txt -
Install JavaScript dependencies:
npm install -
Download the Prophet model: The Prophet model (
prophet_model.pkl) is not included in this repository due to its size. Download it from [INSERT DOWNLOAD LINK HERE] and place it in themodel/prophet_models/folder.
- Ensure that the
prophet_model.pklfile is correctly placed in themodel/prophet_models/folder. - Check that the
.envfile contains the correct environment variables (see.env.examplefor an example).
-
Launch the backend server:
python app.py -
In a new terminal, start the user interface:
npm start -
Open your browser and go to
http://localhost:3000
app.py: Main server applicationmodel/: Contains prediction modelsprophet_models/: Folder for the Prophet model (to be downloaded separately)
static/: Static files for the user interfacetemplates/: HTML templatessrc/: React user interface source code
If you encounter issues when running the dashboard:
- Verify that all dependencies are installed.
- Make sure the Prophet model is correctly downloaded and placed.
- Check the server and client logs for specific error messages.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
