So I've been poking at the source of this SW for the last week or so, 'reverse-engineering' so to speak, but I'm still not able to locate the actual function that is making the decisions.
Where is the main loop?
I get python - no problem - but I've no experience with Flask or putting the two together.
I want to get to the point where I can add features and things as they come to mind, but at this point and time I'm having a hard time tracking the workflow.
Where can I find the infinite loop that is running the decision making algorithms?
Nice! Thank you. This helps a bunch! I now see there are jobs being scheduled that call these functions and then that value/data is being written and read from a DB for integrity. Makes sense.
It will take some time, but I'll continue to dissect and come back with any questions.
Thanks again.
well, there is no infinite loop, the scheduler calls the required module when it is the due time. Regarding the decision making algorithm, you can refer to the automationmod.py for the automation, or autowateringmod.py for the watering. Both of them are called every time there is a sensor reading.