I'm happy, my code is coming along.
Next project. Is there a way to get the power heads to go into Nutrient Transport mode after a feeding?
Can I modify this to work?
int ntmDelay=300; // Time to wait before starting Nutrient Transport
int ntmTime=7200; // Time to run Nutrient Transport
static time_t t;
if (now()-t > ntmDelay && now()-t < ntmTime+ntmDelay) {
ReefAngel.DCPump.Mode=NutrientTransport;
}
if (ReefAngel.DisplayedMenu==FEEDING_MODE) {
t=now(); // Run post feeding mode when this counter stops
}
Ok, I don't think I'm going to use the NT mode after feeding. I might schedule it at a certain time of the day instead.
I have another request. I have the 12V power thingy I want to use to run a couple of water solenoid valves. I understand that it shows up as another relay box. I understand that I need to write it in the code as follows to turn ports on and off.
ReefAngel.Relay.On(Box2_Port3);
Thing is I will only be using them right now as manual ports to refill my ATO reservoir and water change barrels. How do I make them accessible in the app?
I do have another relay. I have 2 regular relay boxes and then the 12 volt power expansion. How would I activate it? Just plug it in to the system and it adds another set of relays in the app?
Actually I think I understand. I could just reference them as off in the code and then I will get the ability to control them in the app right? Something like this?