how to name plugs on relay box?

New members questions
Post Reply
deva
Posts: 25
Joined: Sun Mar 04, 2012 9:47 pm

how to name plugs on relay box?

Post by deva »

Hi all,
just got my RA controller...
I would like to rename a couple plugs on the relay box In RAgen. is this possible?
I would like to rename metal halides to LED whites an normal lights to LED blue.
or is that something I can do a app or the controller it self?
cheers
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: how to name plugs on relay box?

Post by rossbryant1956 »

That depends on where you want the names to show up. I have renamed my relays in the client app, in the portal, and in the android app. I am pretty sure you can rename them in custom menu on the RA screen but I haven't tackled that yet.

Take a look at my sig block. Comes directly from my portal (although you do need the wireless add-on)

Don't worry, you'll get there. Let us know how we can help. Thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
deva
Posts: 25
Joined: Sun Mar 04, 2012 9:47 pm

Re: how to name plugs on relay box?

Post by deva »

yes...that is what i want to do.
I would like to rename them on Ragen so a can make codes as well as portal and the iphone app.
found this thread:
http://www.reefangel.com/Support.Puttin ... ckets.ashx

was trying to use this code but change the "#define......"then name the socket.
but I get a error.
"class reefangel class has no member named 'LCD'
thoughts?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: how to name plugs on relay box?

Post by rimai »

Just change them on the portal.
The smart phone apps can grab labels from the portal
Roberto.
deva
Posts: 25
Joined: Sun Mar 04, 2012 9:47 pm

Re: how to name plugs on relay box?

Post by deva »

OK but don't have the wifi setup yet and unfortunately I can't use my iphone with the app b/c it's only the 3g ( second gen ) & the app only works on the 3gs and higher. a real bummer too :(
you have to have the wifi set up to run portal right?
deva
Posts: 25
Joined: Sun Mar 04, 2012 9:47 pm

Re: how to name plugs on relay box?

Post by deva »

ok you do...answered my own question.
is there a way to change them on RAgen so I know what goes where?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: how to name plugs on relay box?

Post by rimai »

RAGen doesn't uses names. It uses Port1 through Port8, but if you prefer to call it by names, you can do it too.
Just add :

Code: Select all

#define yoursocketname 1
Just change name and #, but that will not be shown anywhere else but the code.
That's meant just for reading the code a little easier, instead of Port1. That's all.
So, you can use the functions like this:

Code: Select all

ReefAngel.Relay.On(yoursocketname);
Instead of this:

Code: Select all

ReefAngel.Relay.On(Port1);
Roberto.
Post Reply