- pip3 install xlrd
- make sure there are folders earthd_files and validated_files exist
- put the files need to be validated into the folder earthd_files
- make sure there is no opened files in folder earthd_files
- python3 earthd_pi_rain_check.py
- open the file validationResult.txt to check the results
- fix issues and re-run the script until all files pass the validation
- make sure earthd_pi_rain_check.py has been executed
- make sure there is no opened files in folder validated_files
- create database.ini
- python3 db_connect_test.py (test db connection)
- python3 earthd_pi_ingest.py
- earthd_pi_ingest_report_YYYY_MM_DD.txt will be created automatically
-
All files passed rain check will be moved to the folder validated_files automatically
-
The file validationResult.txt is reset everytime the script is run
-
Directory structue should looks like below
├── earthD (can be changed anyway) ├── earthd_files ├── validated_files ├── database.ini ├── config.py ├── db_connect_test.py ├── earthd_pi_rain_check.py ├── earthd_pi_ingest.py ├── README.md