Android Reef Angel Status

Community contributed apps
Post Reply
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

rimai wrote:It's been working beutiful now with last patch :)
I've been using it everyday. It's awesome.
that's great. i'm glad it's working properly now. i just need to start adding in more features to make it more complete. 8-)

curt
tkeracer619
Posts: 160
Joined: Thu Nov 24, 2011 9:50 pm
Location: Golden, CO

Re: Android Reef Angel Status

Post by tkeracer619 »

Quick question...

What is the purpose of the green dot that shows up when you manually turn on one of the relays?

Once it has been turned on and back off why does the green dot stay on when turning off the relay via the button and then only goes off when touching the green dot?

When you turn off a relay that is already on via the programming and then turn it back on using the android app does the relay go back to its programmed state? If I want to turn on a relay for say a few days (my ro) and have it ignore the programmed state how is this done without first turning the relay off and then back on? or can you even do this?

Thanks,
Mark
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

tkeracer619 wrote:Quick question...

What is the purpose of the green dot that shows up when you manually turn on one of the relays?

Once it has been turned on and back off why does the green dot stay on when turning off the relay via the button and then only goes off when touching the green dot?
The green dot that shows up indicates that the relay has been overridden from its default state. Normally, the relays are in "auto" mode meaning they are controlled by the logic in the code (ie, your loop() ). When you use the app to force a port ON or OFF, you are overriding their default logic/mode. Thus you are turning the port ON and it will stay ON until you return it back to the AUTO mode (or if you turn it OFF for good). So the green dot is a way to clear out the override mask and return the port to it's automatic mode that is controlled by the logic.

The iPhone app has a blue dot. (I made it green to match the green android logo. :) )
When you turn off a relay that is already on via the programming and then turn it back on using the android app does the relay go back to its programmed state? If I want to turn on a relay for say a few days (my ro) and have it ignore the programmed state how is this done without first turning the relay off and then back on? or can you even do this?
To do this, you would manually turn it on by choosing ON from the app (to force it ON). Then when you are ready to return it back to it's normal state you would click on the green dot to return to normal. Otherwise it would stay in the overridden state forever (or until you restart the controller).

The idea behind the override is that you are specifically wanting a port turned ON or OFF and you know what you are doing. This came from the lights ON and OFF modes in the menu and also with the feeding and water change modes. The modes had to have a way to override the logic to force a port off (or on) and keep it that way while running so as to prevent unwanted events from happening during the different modes. (You wouldn't want your powerheads to cycle ON while you were in the middle of feeding OR you wouldn't want your return pump to turn back ON when you had 25% of your water out of the tank for a water change.)

Hopefully that clarifies things for you.

curt
tkeracer619
Posts: 160
Joined: Thu Nov 24, 2011 9:50 pm
Location: Golden, CO

Re: Android Reef Angel Status

Post by tkeracer619 »

Yup clears it up.

Thanks for the quick response :)
Image
Nikkwins
Posts: 20
Joined: Fri Nov 18, 2011 10:30 pm

Re: Android Reef Angel Status

Post by Nikkwins »

Curt, thank you for providing this app! I have two questions:

1) I checked the box to display salinity, and it shows up on my screen but the value is 0.0

2) I tried to control the relays but the relay buttons dont do anything when i tap them.

Any ideas?
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Nikkwins wrote:Curt, thank you for providing this app! I have two questions:

1) I checked the box to display salinity, and it shows up on my screen but the value is 0.0

2) I tried to control the relays but the relay buttons dont do anything when i tap them.

Any ideas?
yes. what are you communicating with? the website or your controller?

when you choose the website, the relay toggling is disabled. also the website does not handle salinity, so i think that is your problem.
Nikkwins
Posts: 20
Joined: Fri Nov 18, 2011 10:30 pm

Re: Android Reef Angel Status

Post by Nikkwins »

binder wrote:
Nikkwins wrote:Curt, thank you for providing this app! I have two questions:

1) I checked the box to display salinity, and it shows up on my screen but the value is 0.0

2) I tried to control the relays but the relay buttons dont do anything when i tap them.

Any ideas?
yes. what are you communicating with? the website or your contr

when you choose the website, the relay toggling is disabled. also the website does not handle salinity, so i think that is your problem.
Curt, thats right, I have it configured to use the website. I found the instructions in the iphone thread to set up dynamic DNS so ill mess with that toniht. thanks for your help!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Android Reef Angel Status

Post by rimai »

You could always use the internal ip address too.
It would work inside your house, but not outside.
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

For those of you that are following this app, I just pushed another update. The highlights are as follows:
  • * added icons to the menus
    * added ability to change PH & Salinity labels
    * added Memory reading / writing
    * added controller command sending
    * ability to download labels from reefangel.com
    * full history viewing instead of just temperatures
    * improved communication framework
Just thought I'd share this with everybody. So for those of you who are using the app, look for the update.
projectx
Posts: 120
Joined: Sat Apr 23, 2011 6:53 pm

Re: Android Reef Angel Status

Post by projectx »

That is great thanks for doing this.

there a way to change what is set to on and off during feeding mode or water change mode?

I am glad that this was the controller I decided to go with, you guys are on top of this
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

projectx wrote:there a way to change what is set to on and off during feeding mode or water change mode?
Yes. You do this inside your PDE file. If you used RAGen to generate your PDE file, on the PDE tab at the bottom of the screen you will be able to "check" what ports get turned off in the different modes.

If you did not use RAGen, you can manually add that functionality to your PDE file in the setup(). The code you will want is as follows:

Code: Select all

void setup()
{
    ReefAngel.Init();  //Initialize controller

    // Set the ports that get toggled on & off during the following modes
    // To enable a port to be toggled, place a 1 in the appropriate position
    // Uncomment and update as needed
    //                     Port   87654321
    //ReefAngel.FeedingModePorts = B10011100;
    //ReefAngel.WaterChangePorts = B10011100;
    //ReefAngel.OverheatShutoffPorts = B00001100;
    //ReefAngel.LightsOnPorts = B00000110;

    // Other initialization code goes here...
}
From the example above, you just need to place a 1 in the correct spot of the port you want turned on/off in the respective mode. If you look at the Feeding and water change modes above, ports 8, 5, 4 & 3 will be turned OFF when those modes are entered and turned ON when those modes are exited.
projectx
Posts: 120
Joined: Sat Apr 23, 2011 6:53 pm

Re: Android Reef Angel Status

Post by projectx »

Ok, sorry I ment inside the android app, i did do it inside the ragen app.
Image
serhiyi
Posts: 50
Joined: Thu Jul 21, 2011 8:59 pm

Re: Android Reef Angel Status

Post by serhiyi »

Does this work with WiFi Authentication?

I was testing app inside the house with local IP and it works. But I want to be able to access controller from anywhere using phone. Before setting up router to handle redirect I added security to controler

I'm able to use access by 192.168.1.100:2000/wifi and it asks for user and password. Works great.
But now app is not working.

My code:

Code: Select all

void setup()
{
    ReefAngel.Init(); //Initialize controller
    WifiAuthentication("ra:test");
    ReefAngel.SetTemperatureUnit(0);
    ReefAngel.PWM.SetActinic(0);
    ReefAngel.PWM.SetDaylight(0);
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

No, authentication currently is not implemented. It is added to the todo list and will be worked on. If I recall correctly, some people were having issues with authentication in general but I do not know what the status of that is as it has been a little while since it was discussed on the forums.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Android Reef Angel Status

Post by agentgreen »

Great work on this app! Quick question.

I have port forwarding setup and I can use the app to read memory settings, so I know the connection is working. However, when I hit Refresh, the 'Last Updated" field runs through, Connecting -> Reading (can't really tell its too fast) -> Parsing and stays at parsing, but doesn't seem to update any of the items below.

Once I switch back to the web banner everything updates. Am I missing something?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Android Reef Angel Status

Post by rimai »

Bug :(
You are in the same boat that I am.
Curt is working on it though.
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Roberto is right. He found a bug with the app. I had partially implemented relay boxes and doing so triggered the bug. I've got it fixed and should be releasing an update soon.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Just released the fix for it. Be on the lookout for the update to come through the market.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Android Reef Angel Status

Post by agentgreen »

binder wrote:Just released the fix for it. Be on the lookout for the update to come through the market.
Love it! Thanks!
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Let me know if you have any other problems or questions about it. Also, feedback (both positive and negative) is always welcomed.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Android Reef Angel Status

Post by agentgreen »

Hrmm, I saw the update, installed it, rebooted my phone to verify I am running the new version, and I'm still seeing the same behavior. Is there anything on my side that I might be missing?

I guess the better question, have you released multiple updates today? Maybe I didn't get the most recent one...
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Most recent update is 0.4.1.

If you are still seeing the same behavior, could you elaborate more on what your setup is? How many relay boxes do you have installed?
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Android Reef Angel Status

Post by agentgreen »

binder wrote:Most recent update is 0.4.1.

If you are still seeing the same behavior, could you elaborate more on what your setup is? How many relay boxes do you have installed?
Sure. I just verified I'm running 0.4.1. I am running 2 relay boxes at the moment and both are connected. I have port 2000 forwarded on my router to port 80 on the internal IP address of the wifi module. I can read memory settings as well.

I can PM you my connection information if it will help with debugging.
dedvalson
Posts: 140
Joined: Tue Oct 04, 2011 5:49 am

Re: Android Reef Angel Status

Post by dedvalson »

Hi,

I am having the same issue. As of the update a few days ago, the Android app got stuck on Parsing forever. I just downloaded the newest update today and it is doing the same thing.

I have 1 additional Relay box (besides the main one). This was working great for me till a few days ago.

I know I am able to reach the box because I can Read and Write Memory and also the Feeding Mode button works. I have Library version 0.8.5.19 and Reef Angel Status version 0.4.1

Don
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Yeah, I figured out what the problem actually is now. Thanks to agentgreen for letting me test out on his controller to confirm a couple things. It was a continued error on my part with the only partially implemented expansion relay support. Problem is fixed and will be released shortly.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Just released the fix for the problem. Let me know if it still persists.
agentgreen
Posts: 97
Joined: Wed Jul 06, 2011 6:45 am

Re: Android Reef Angel Status

Post by agentgreen »

binder wrote:Just released the fix for the problem. Let me know if it still persists.
Success! Thanks so much!
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Android Reef Angel Status

Post by binder »

Ok. I figured out a problem. In fixing the relay box issue, it breaks with the 0.9.0 libraries. It has to do with how the data is sent. There's gonna be one more minor update. So bear with me on this update. This will fix both versions of the libraries now until expansion relays are officially supported.
dedvalson
Posts: 140
Joined: Tue Oct 04, 2011 5:49 am

Re: Android Reef Angel Status

Post by dedvalson »

Works for me too.

Thanks.

Looking forward to having the Expansion Relay Support. ;)
Mike S
Posts: 82
Joined: Tue Dec 27, 2011 7:26 pm

Re: Android Reef Angel Status

Post by Mike S »

I'm finally diving in to the memory settings in this app and they are awesome. Is there a guide or info available that explains how each setting works? I'm trying understand how the actinic/daylight pwm % settings relate to the pwm slope actinic/daylight end % settings. Does the pwm % setting adjust the maximum intensity that the light will reach once the slope function ramps up fully? Does the slope % end setting set the threshold at which the lights turn off? This setting appears to range from 0 to 255 rather than a 0 to 100 scale?
Post Reply