Currently with RAGen you can enable the additional relays but you have to manually code them into your PDE file. That is unfortunately one of the limitations of RAGen. This will be corrected in future versions of RAGen.
If you want to code any other ports on your relay box to work, all you have to do is insert the appropriate function
- ReefAngel.StandardLights(byte LightsRelay, byte OnHour, byte OnMinute, byte OffHour, byte OffMinute);
ReefAngel.MHLights(byte LightsRelay, byte OnHour, byte OnMinute, byte OffHour, byte OffMinute, byte MHDelay);
ReefAngel.StandardHeater(byte HeaterRelay, int LowTemp, int HighTemp);
ReefAngel.StandardFan(byte FanRelay, int LowTemp, int HighTemp);
ReefAngel.StandardATO(byte ATORelay, int ATOTimeout);
ReefAngel.SingleATO(bool bLow, byte ATORelay, byte byteTimeout, byte byteHrInterval);
ReefAngel.DosingPump(byte DPRelay, byte DPTimer, byte OnHour, byte OnMinute, byte RunTime);
ReefAngel.DosingPumpRepeat(byte DPRelay, byte DPTimer, int RepeatMinute, byte RunTime);
ReefAngel.Wavemaker(byte WMRelay, byte WMTimer);
// Or simplified versions that use the InternalMemory values for the appropriate functions
ReefAngel.StandardLights(byte Relay);
ReefAngel.MHLights(byte Relay);
ReefAngel.StandardHeater(byte Relay);
ReefAngel.StandardFan(byte Relay);
ReefAngel.StandardATO(byte Relay);
ReefAngel.SingleATOLow(byte Relay);
ReefAngel.SingleATOHigh(byte Relay);
ReefAngel.DosingPump1(byte Relay);
ReefAngel.DosingPump2(byte Relay);
ReefAngel.DosingPumpRepeat1(byte Relay);
ReefAngel.DosingPumpRepeat2(byte Relay);
ReefAngel.Wavemaker1(byte WMRelay);
ReefAngel.Wavemaker2(byte WMRelay);
And for the Relays/Port you will use the following convention:
BoxX_PortY
So for port 1 on expansion box 1 (first expansion box), it would be Box1_Port1, Box1_Port2, Box1_Port3,....,Box1_Port8
If you wanted to use the a port as a Timed port (on and off at certain times), you could do this:
Code: Select all
void loop()
{
...
ReefAngel.StandardLights(Box1_Port2, 8, 30, 16, 00); // on at 8:30a, off at 4:00p
...
}
Then the web banner does (or at least should to the best of my knowledge), have the ability to track the additional ports but they do not get displayed with any current/existing web banner template.
I also believe that the Client should be able to handle the additional ports, but I'm not 100% sure on that. Dave would have to comment more on it.
Curt