File Safety and Conditional CSV Creation
Schedules will now only execute if there is not a call for gas and the well is recharged. This is because if those two conditions are not true, then there is a high chance that the system is reading/writing to files, so any kind of file deleting/manipulation is not recommended.
In addition:
- If the db gets deleted, a new one will be created without touching the csv file, unless the csv file was deleted as well.
- If the db gets goofed up (cleared), PM2 will restart the process since something will error, and on startup a new db will be created. Any data that was in the deleted db will be lost, but the system will not break.