Carbon Vodka Dosing

Talk about you and your tank/equipment
Post Reply
Paul_Velasco
Posts: 127
Joined: Thu Sep 19, 2013 7:46 am
Location: Saint Cloud, FL

Re: Carbon Vodka Dosing

Post by Paul_Velasco »

Starting at 2PM want to start at 9AM? Having the portal send me an email everytime the relay triggers. Emails start at 2PM.
Any ideas?
Attachments
Reef-1.jpg
Reef-1.jpg (45.94 KiB) Viewed 8373 times
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Carbon Vodka Dosing

Post by lnevo »

Again the portal cannot send you reliable notifications like that. Your best method would be to use WiFiAlert to send an alert immediately. Are you using the first or second line that you posted above? I would recommend the second if you want it to start at 9am.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Carbon Vodka Dosing

Post by cosmith71 »

Here's a way you can track it. This is for 2 pumps. The way this works is when your dosing pump relays come on, this turns on relays in a "ghost" expansion relay for 5 minutes so the portal can track them. It is only good for seeing that the relays came on, not for the actual length of time they were on.

Put this up top in the globals section:

Code: Select all

unsigned long LastUpdate1=0;    // For virtual dosing pumps
unsigned long LastUpdate2=0;    // For virtual dosing pumps
This goes in loop:

Code: Select all

// *******************  Turn on imaginary relays for 5 minutes when dosing pumps activate so Portal can track them  *******************
  if (ReefAngel.Relay.Status(AlkPump) && LastUpdate1==0)
  {
    LastUpdate1 = now();
    ReefAngel.Relay.On (VirtAlk);
  }
  if (now() - LastUpdate1 >= 300 && LastUpdate1 != 0)
  {
    LastUpdate1 = 0;
    ReefAngel.Relay.Off (VirtAlk);
  }
  if (ReefAngel.Relay.Status(CalPump) && LastUpdate2==0)
  {
    LastUpdate2 = now();
    ReefAngel.Relay.On (VirtCal);
  }
  if (now() - LastUpdate2 >= 300 && LastUpdate2 != 0)
  {
    LastUpdate2 = 0;
    ReefAngel.Relay.Off (VirtCal);
  }
AlkPump and CalPump are the outlets your dosing pumps are on. VirtAlk and VirtCal are outlets on an expansion box that you don't actually have connected (yes, it works!).

I have one expansion relay(Box1) so I use Box2_Port1 and Box2_Port2 for my imaginary relays.

When your real pumps turn on, these imaginary relays turn on and stay on for 5 minutes and will show up on the portal tracking.

HTH,

--Colin
Paul_Velasco
Posts: 127
Joined: Thu Sep 19, 2013 7:46 am
Location: Saint Cloud, FL

Re: Carbon Vodka Dosing

Post by Paul_Velasco »

Thanks for all the help!
Physically verified that the relays are turning on at 9am, do not show on portal
Will try above code to track

Happy turkey day to everyone
Image
Paul_Velasco
Posts: 127
Joined: Thu Sep 19, 2013 7:46 am
Location: Saint Cloud, FL

Re: Carbon Vodka Dosing

Post by Paul_Velasco »

Cosmith71 works perfect!! TY
Image
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Carbon Vodka Dosing

Post by cosmith71 »

Paul_Velasco wrote:Cosmith71 works perfect!! TY
You're welcome!

--Colin
Post Reply