Using ChatGPT for Apex programming

Bill_Moorman

Active Member
View Badges
Joined
Jun 14, 2018
Messages
282
Reaction score
333
Location
Pueblo, Colorado
Rating - 0%
0   0   0
Morning everyone!

Just wanted to share that ChatGPT is able to provide programming lines for Apex. I've been out of the game for a while and was trying to program some things, and I was curious if ChatGPT would be able to do it, and it sure does! It will even provide an explanation of the programming. Always double check it before sending it to your system, but I wanted to share! I asked it to review my current programming for my Tunze ATO:

✅ What Your Current Code Does:​


apex
CopyEdit
Fallback ON
Set ON
If Outlet ReturnPump = ON Then ON
If Outlet ReturnPump = OFF Then OFF


🔍 Meaning:​


  • Allows power to the Tunze Osmolator only when the Return Pump is ON (normal tank operation).
  • Disables power to the Osmolator if the Return Pump is OFF, like during maintenance or feed mode.
  • Fails ON if Apex loses contact with the Energy Bar (this could be risky — see below).



👍 Why This Is Reasonable:​


  • You don't want the Tunze running if the Return Pump is off (e.g., during water changes), since it might mistake the sump water level drop as evaporation and overfill the tank.
  • This programming provides a basic safeguard against accidental over-top-off during those conditions.



⚠️ Suggested Improvements:​


1. Fail-Safe Fallback


Change Fallback ON to Fallback OFF:


apex
CopyEdit
Fallback OFF


  • Prevents the Osmolator from running if Apex loses control — avoids unmonitored top-offs.
  • The Tunze has its own fail-safes, but you don’t want to blindly provide power in a controller failure.

2. Optional: Add Feed Mode Protection


apex
CopyEdit
If FeedA 000 Then OFF


  • Turns off the ATO during feed mode (if your Return Pump doesn’t already turn off then).
  • Extra layer of protection during temporary water level changes in the sump.



✅ Recommended Final Program:​


apex
CopyEdit
Fallback OFF
Set ON
If Outlet ReturnPump = OFF Then OFF
If FeedA 000 Then OFF


You could also omit Set ON and just rely on the Return Pump condition:


apex
CopyEdit
Fallback OFF
If Outlet ReturnPump = ON Then ON




🔚 Summary:​


Since you're using a Tunze Osmolator, your Apex outlet should:


  • Only provide power when it’s safe (e.g., Return Pump running)
  • Turn off during maintenance or sump water fluctuations
  • Fail OFF if Apex loses communication

Let me know if you're using Neptune’s ATK instead, or if you'd like to log ATO activity through Apex too.
 

Peace River

Thrive Master
View Badges
Joined
Apr 29, 2014
Messages
24,733
Reaction score
172,769
Location
USA
Rating - 100%
1   0   0
Thanks for the tip! Now I need to check if it will help me dial in a few things on my Hydros!
 

areefer01

5000 Club Member
View Badges
Joined
Jun 28, 2021
Messages
5,667
Reaction score
5,883
Location
Ca
Rating - 0%
0   0   0
I've seen a few hobbyist using this with decent results. I would personally try things before implementing to make sure but I also do that with using the wizard or my own code.

I do not know where it is pulling its source material from but if it is using the comprehensive manual then we are good. The manual is a hidden gem.
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 34 27.9%
  • 100% dry rock + 100% live sand

    Votes: 42 34.4%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 27 22.1%
  • 75% live rock, 25% live sand

    Votes: 11 9.0%
  • 25% live rock, 75% live sand

    Votes: 8 6.6%
Back
Top