Need a little help with Apex programming

EuroDriver

Active Member
View Badges
Joined
Sep 7, 2017
Messages
173
Reaction score
39
Location
San Diego, CA
Rating - 100%
1   0   0
After years of running Reefkeepers, I finally switched over to Apex. Initial setup was relatively painless and somewhat intuitive. However I'm stuck with a couple of issues and although I've read numerous threads, I can't seem to wrap my head around it so looking for a little help here...

I set up a float switch to turn on my ATO pump when the water level drops in the sump and another below it to turn off the ATO pump when the freshwater runs empty.

ATO (pump at ATO_2_6)
Switch 1: (AtoSw1 at base_I1) float switch to turn ATO on
Switch 2: (FreSw2 at base_I2) float switch to turn ATO off

ATO
Fallback OFF
Set ON
If AtoSw1 OPEN Then OFF
If FreSw2 CLOSED Then OFF

Same concept on the skimmate container - I have a float switch to turn off the skimmer when the container is full.

Skimmer (Skimmer_2_5)
Switch 3: (SkmSw3 at base_I3) float switch to turn skimmer off


What I want to do now is have the Fusion app notify me when the RODI container is empty and when the skimmate container is full.

I got as far as creating a virtual channel named RODI Empty set as follows:

Set OFF
If FreSw2 CLOSED Then ON

everything else I've tried from there results in an error.

If someone can give me a hand, I'd really appreciate it
 
I don’t know if this will help but I have the APEX ATO
And this is the code the APEX generated for me when I hooked it up to the APEX

Fallback OFF
Set OFF
If AtkLow OPEN Then ON
If AtkHig CLOSED Then OFF
If ResLow OPEN Then OFF
When On > 002:00 Then OFF
Defer 010:00 Then ON
Min Time 050:00 Then OFF
 
Thanks for the example. I have the switches triggering the respective actions I need. However what I need to set up is for the app to notify me when my topoff container is empty and when my skimmate container is full
 
Hmm I have have a alarm for when my top off is empty and the float is a sensor
In my alarms
If reslow closed then ON
 
Ok which version of the APEX do you have and yes you need to creat a virtual outlet mide for my ATO reservoir is called reslow
 
I can help. I have the same apex.
First, open up the settings and go to outlets
38D4ED8D-B06A-4CDF-90FB-BB415C8A07DF.jpeg 10FE1B05-8582-4AAC-A45C-CBE08147F9A6.jpeg

Then find the outlet named EmailAlm_I5 (this May have a slightly different name)

4F2F46F4-88DC-4561-9BC1-C7E05D59E292.png

Then add this to your program:
IF AtoSw1 Closed then ON
Defer 000:005 then Off
Feel free to text me if you have any questions. 18056991270.

Once you do all of this, post your apex code for the email alarm up here so I can verify it.
32C05A7F-7DDE-47BC-AB95-669BDCDFCD14.jpeg
 
I can help. I have the same apex.
First, open up the settings and go to outlets...

Once you do all of this, post your apex for the email alarm up here so I can verify it.
32C05A7F-7DDE-47BC-AB95-669BDCDFCD14.jpeg

@MSB123, I did as you said and it worked like a charm! Thanks. But a couple of things - first, I guess there's no need for a virtual channel?

Next, is there a way to edit the notification contents? For example, instead of having the alerts read "status on / status off" have them report "RODI Empty, Skimmer Full," etc?

Screen shots below of my configuration as requested and how the alerts currently read
cd187be82cadbda8ba07cd5b8ccee3ee.jpg
7ee61a889abe96d3aa83c217835fa631.jpg
 
@MSB123, I did as you said and it worked like a charm! Thanks. But a couple of things - first, I guess there's no need for a virtual channel?

Next, is there a way to edit the notification contents? For example, instead of having the alerts read "status on / status off" have them report "RODI Empty, Skimmer Full," etc?

Screen shots below of my configuration as requested and how the alerts currently read
cd187be82cadbda8ba07cd5b8ccee3ee.jpg
7ee61a889abe96d3aa83c217835fa631.jpg
There is no way to edit the notification email/text. I have just named my switches “SkmFull”
And “RODIHI”
 
Ok, wishful thinking. At least I have it working so I can be notified when these conditions arise.

Thanks so much for your help
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top