Page 1 of 1

coding vortech pumps with rf module

Posted: Sun Nov 02, 2014 1:15 pm
by briank6050
hi, im new to both the ra and writing codes. got most of the probs figured out using the wizard but dont know how to make my mp40 pump go into night mode. any help would be much appreciated. thanks

Re: coding vortech pumps with rf module

Posted: Sun Nov 02, 2014 4:21 pm
by lnevo
// Turn off Night Mode
if (hour()>8 && ReefAngel.RF.Mode==Night) ReefAngel.RF.SetMode(Night_Stop,0,0);
// Turn on Night Mode
if (hour()>20 && ReefAngel.RF.Mode!=Night) ReefAngel.RF.SetMode(Night,20,0);

Re: coding vortech pumps with rf module

Posted: Sun Nov 02, 2014 6:08 pm
by briank6050
where exactly do i put this info into the sketch?

Re: coding vortech pumps with rf module

Posted: Sun Nov 02, 2014 6:53 pm
by lnevo
In the custom code section inside the loop() function.

Re: coding vortech pumps with rf module

Posted: Sun Nov 02, 2014 7:13 pm
by briank6050
i dont even see the night mode anywhere in the code. im so confused

Re: coding vortech pumps with rf module

Posted: Mon Nov 03, 2014 6:01 am
by lnevo
I posted it above...not sure what the question is. If you post your full code, i can show you where it goes..