Turn outlets on/off from joystick?
-
- Posts: 51
- Joined: Wed Sep 16, 2015 8:12 am
Turn outlets on/off from joystick?
Perhaps I'm not accessing it correctly, is there no manual on/off menu for the relay box? (from the joystick)
Ty!
Ty!
Re: Turn outlets on/off from joystick?
As far as I know you can't turn ports on/off from the head unit.
Really make any changes except calibrate salinity, pH and other items.
Really make any changes except calibrate salinity, pH and other items.
-
- Posts: 51
- Joined: Wed Sep 16, 2015 8:12 am
Re: Turn outlets on/off from joystick?
Apologies as I'm still learning the setup, which header or section of source code is the GUI portion on the joystick/head unit?
Re: Turn outlets on/off from joystick?
I also interested in this turning off/on port from the joystick-
I wonder if you can do it through the APP-
I wonder if you can do it through the APP-
Re: Turn outlets on/off from joystick?
Yes. The apps and the portal can do it, but not the joystick.
Sent from my SM-G928P using Tapatalk
Sent from my SM-G928P using Tapatalk
Re: Turn outlets on/off from joystick?
to use the APP what attachment do I need?
Re: Turn outlets on/off from joystick?
WiFi module only.
Then you can use either app and the portal.
Sent from my SM-G928P using Tapatalk
Then you can use either app and the portal.
Sent from my SM-G928P using Tapatalk
-
- Posts: 51
- Joined: Wed Sep 16, 2015 8:12 am
Re: Turn outlets on/off from joystick?
Is it not possible to add code for it?
Re: Turn outlets on/off from joystick?
That's a question for Roberto.
I don't believe so, but maybe I'm wrong.
Sent from my SM-G928P using Tapatalk
I don't believe so, but maybe I'm wrong.
Sent from my SM-G928P using Tapatalk
Re: Turn outlets on/off from joystick?
I'm sure it could be added by a strong enough programmer.
--Colin
--Colin
Re: Turn outlets on/off from joystick?
Most people dont use the screen joystick enough to warrant it in my opinion. You have access to water change mode and feeding modes from the menu. If theres another common device you want to toggle i have code for that in my ino. I do that for my refugium light.
If you dont have the wifi but have a laptop you could use the windows client.
It certainly could be done but its quite a bit of code especially when you could have up to 72 relays each with explicit on/off/auto
If you dont have the wifi but have a laptop you could use the windows client.
It certainly could be done but its quite a bit of code especially when you could have up to 72 relays each with explicit on/off/auto
Re: Turn outlets on/off from joystick?
Maybe a two line screen where you can left/right to run through all the ports and then you press down to the next line and pick the operation then down to OK/Cancel buttons
-
- Posts: 51
- Joined: Wed Sep 16, 2015 8:12 am
Re: Turn outlets on/off from joystick?
I'm tryin to.. hehcosmith71 wrote:I'm sure it could be added by a strong enough programmer.
--Colin
If it weren't for my c# goggles this would be going much faster...
Re: Turn outlets on/off from joystick?
everyone is correct about it being a bit tricky to do this. it's not a highly suggested thing either. it can be done though. one thing you have to keep in mind is the code size increases when doing this. it may not be a problem now with the Plus but it certainly was with the standard ra when it was originally being coded.
if you are doing this, when you get the screen created to toggle the ports, while you are waiting for the input you will need to make sure you are letting the ra check its status and handle all its events. the current code does this, so try to mimic that. im just saying don't go creating one function that listens for a response before it returns or proceeds, otherwise your tank won't function properly.
with that being said, have fun coding it! customize it to your hearts content.
Sent from my Moto X
if you are doing this, when you get the screen created to toggle the ports, while you are waiting for the input you will need to make sure you are letting the ra check its status and handle all its events. the current code does this, so try to mimic that. im just saying don't go creating one function that listens for a response before it returns or proceeds, otherwise your tank won't function properly.
with that being said, have fun coding it! customize it to your hearts content.
Sent from my Moto X
-
- Posts: 51
- Joined: Wed Sep 16, 2015 8:12 am
Re: Turn outlets on/off from joystick?
Been so busy I haven't made any progress.
Lnevo could I get that code you have, might be able to adapt some of it.
I see if I press the joystick left, 3 times, I get a screen, the list of relays, labeled with their status, a color and then Port #.
That screen would be perfect to be able to arrow down through, click/scroll to select the state.
Anyone know which source file contains that? I've looked through a lot of code but am still fumbling a bit
Tyvm though, any other thoughts are quite welcome!
Lnevo could I get that code you have, might be able to adapt some of it.
I see if I press the joystick left, 3 times, I get a screen, the list of relays, labeled with their status, a color and then Port #.
That screen would be perfect to be able to arrow down through, click/scroll to select the state.
Anyone know which source file contains that? I've looked through a lot of code but am still fumbling a bit
Tyvm though, any other thoughts are quite welcome!
Re: Turn outlets on/off from joystick?
This is what I use in my menu. You have to follow the thread that explains how to customize the menu to add this. This function toggles the port on / off depending on it's state
Code: Select all
void MenuEntry1() {
// Toggle refugium light between on/auto.
ReefAngel.Relay.Override(Refugium, ReefAngel.Relay.Status(Refugium)+1);
ReefAngel.DisplayedMenu = RETURN_MAIN_MODE;
}
Re: Turn outlets on/off from joystick?
Definitely able to be coded. Code allowed feeding/water change/lighting modes out of the box which controls outlets as groups. I seem to have lost lighting control through menu since starting to reprogram it from what the wizard generated for me and haven't looked into it but feeding and water change modes still work.