Here you will find documentation that explains what each file does
Description of AutoGro running logs (these are wrapped at midnight with default install)
AGerror.log - All AutoGro runtime errors
AGpump.log - Detailed pump status
AGsensors.log - Detailed sensor status
(TimeStamp, SoilSensor Raw Value, SoilSensor Percentβ¦.Water Quality pH)
AGsys.log - Main AutoGro log with brief logging
AutoGroStart.log - By default a copy of AGsys.log via stdout redirect)
sensor_json.log - JSON values being passed to sensor web API
AGpump.csv - CSV file with pump details AGsensors.csv - CSV file with sensor details last_start_time - the timestamp on this file indicates when AutoGro was auto startedDescription of the Scripts Folder
clean - ran by user to cleanup / delete all logs
crontab.pi - this is the crontab entry to schedule cleanup of AutoGro logs
go - run by user to start AutoGro in foreground
rc.local - copied to /etc/ to start AutoGro automatically at Pi boot time
start - used by rc.local to start AutoGro automatically
start2 - used by start to restart AutoGro if the main Python task fails
wrap - used to wrap all running logs by crontab (at midnight by default)
Description of the Python source files
This is where the magic happens. Below is a brief description of each files purpose.
AutoGro.py - main AutoGro file, this is the python file that starts AutoGro
AGconfig.py - common functions and configuration parameters
AGsensors.py - main sensor routines. This is started as a thread by AutoGro.py
AutoGro has no protection from multiple copies running at one time. Unpredictable results will result if more than one copy is running. ps -ef | grep AutoGro - should only list one running AutoGro