This repository contains scripts and tools for generating configuration files and data files on a Raspberry Pi. It is part of the Cloud-Based Condition Monitoring for Diagnostic Health Monitoring of Machine Tool project, aimed at managing and processing sensor data for real-time health monitoring of machine tools.
The File Generation for Raspberry Pi project provides utilities for automating the creation and management of files necessary for sensor data processing. This includes setup scripts, data logs, and configuration files specifically for the MPU6050 sensors used in the system.
- File Creation: Automates the generation of configuration and data files for Raspberry Pi.
- MPU6050 Configuration: Generates and manages configuration files for integrating MPU6050 sensors.
- Data Logging: Creates logs for tracking data generated by the MPU6050 sensors.
- Raspberry Pi: Set up with an appropriate OS (e.g., Raspberry Pi OS).
- Python: Ensure Python 3.x is installed on your Raspberry Pi.
- Git: Ensure Git is installed to clone the repository.
- MPU6050 Sensors: Connected to the Raspberry Pi via I2C.
-
Clone the Repository:
git clone https://github.com/Wilo-Cloud-Monitoring/File-Generation-RPI-.git cd File-Generation-RPI-
-
Install Dependencies:
- Navigate to the directory containing the project.
- Install any required Python libraries. For example:
pip install -r requirements.txt
-
Create env file:
- Create a .env file.
- Add info about wifi there.
touch .env
- Add following in the file
- Don't Give space in between
SSID=name_of_wifi WIFI_PASSWORD=password
-
Run the Scripts:
- Execute the main script to generate the necessary files:
python main.py
- Execute the main script to generate the necessary files:
- Configuration Files: Modify
config_template.json
to customize settings for the MPU6050 sensors and data collection. - Data Logs: Logs are saved in the
logs
directory. Review these logs to ensure proper data generation and file creation.
For questions or support, please contact [email protected].