Finally got my Robo-Tank setup and running - the Robo-tank software worked after the Reef-Pi software just kept having driver issues.
One of the primary tasks I wanted the controller for was to automate water changes. The sequence I am looking for is:
if saltwater tank is low, abort/send alert email.
Turn off the ATO port
Turn on the drain pump until either the low level sensor trips or a watchdog timer trips (so it doesn't drain the tank endlessly)
Turn on refill pump until high water level sensor trips or watchdog timer trips (so it doesn't flood)
turn the ATO port back on
From what I can tell, the rules system isn't able to do a sequence of events such as this, nor is it able to have an OR statement. If these exist, i'm all ears. At the same time, this is a raspberry pi running what looks to be C/C++, so I can make this thing do whatever I want given enough willpower/programming skill. Is there a way to trick it to run another script that I can write to make this work?
One of the primary tasks I wanted the controller for was to automate water changes. The sequence I am looking for is:
if saltwater tank is low, abort/send alert email.
Turn off the ATO port
Turn on the drain pump until either the low level sensor trips or a watchdog timer trips (so it doesn't drain the tank endlessly)
Turn on refill pump until high water level sensor trips or watchdog timer trips (so it doesn't flood)
turn the ATO port back on
From what I can tell, the rules system isn't able to do a sequence of events such as this, nor is it able to have an OR statement. If these exist, i'm all ears. At the same time, this is a raspberry pi running what looks to be C/C++, so I can make this thing do whatever I want given enough willpower/programming skill. Is there a way to trick it to run another script that I can write to make this work?