Page 1 of 33

Android Reef Angel Status

Posted: Sun Oct 30, 2011 3:50 pm
by binder
For those of you who have been wanting an android app for monitoring your controller, you now have one.

http://play.google.com/store/apps/detai ... ngel.phone

Check out the link above or the icon link in my signature.

If you are curious about what the app looks like and how it functions, I have created a Manual for it along with photos and hopefully a detailed description of every aspect of the app.
Android Status Manual

I continue to post updates and new features in this forum. I have a few ways for people to stay up on the "newest" features and test releases before they hit the play store for the standard users.

There is a Google Plus community created for this app. I created the community specifically to allow for a Beta channel of the app for people to test the new releases without always having to download and install from my server. It will also allow for further discussions (if needed).

https://plus.google.com/communities/106 ... 8650872090

I maintain an archive of ALL the releases of my android app. This archive is kept up for those who cannot use the Play store or are wanting to sideload an APK or needing to drop down to a previous release (for whatever reason). The archive location is:

http://curtbinder.info/apps/

Also, inside the archive are all the apps that I have created and released.

Feedback is always welcome.

curt

Re: Android Reef Angel Status

Posted: Sun Oct 30, 2011 4:23 pm
by rimai
Awesome!!!
Let me play around with it :)

Re: Android Reef Angel Status

Posted: Mon Oct 31, 2011 1:10 pm
by alexwbush
are you able to see relay status? I don't have mine hooked up through wifi right now, but I keep debating switching back.

Re: Android Reef Angel Status

Posted: Mon Oct 31, 2011 2:29 pm
by binder
alexwbush wrote:are you able to see relay status? I don't have mine hooked up through wifi right now, but I keep debating switching back.
no. this initial release does not display relay status. i was more focused on getting the basis down and the app released. relay status will be added in along with the mode changes and memory settings too.

curt

Re: Android Reef Angel Status

Posted: Tue Nov 01, 2011 5:36 am
by StuGotz
Sweet! Now... how do I explain to the wife I need a wifi adapter for a controller that's 5 feet from my computer?

Re: Android Reef Angel Status

Posted: Tue Nov 01, 2011 7:00 am
by wolfador
I went with the "it saves energy since I don't need the computer on all the time"

Re: Android Reef Angel Status

Posted: Tue Nov 01, 2011 9:26 am
by agentgreen
awwwww yeaaaaaaaaa!!!!

Thanks binder!

Re: Android Reef Angel Status

Posted: Tue Nov 01, 2011 10:37 am
by binder
agentgreen wrote:awwwww yeaaaaaaaaa!!!!

Thanks binder!
you are welcome. :D

more stuff will be added to the app so do not worry about functionality that is lacking currently. im already working on an update to improve connection handling and then hopefully on to the relay status and toggling. oh and cant forget about the memory reading and updating plus changing modes. 8-)

curt

Re: Android Reef Angel Status

Posted: Wed Nov 02, 2011 10:23 am
by binder
Just pushed another release, so be on the lookout for it. Here's the new changes:
  • Improved XML parsing
  • Added more status text updates
  • Switched to use HttpURLConnection, allows for read and connect timeouts
  • Moved status strings to strings.xml
  • Added connect & read timeouts to host class
  • Added ability to enter in userid for web banner on reefangel.com
  • Added ability to choose to query controller directly or reefangel.com for values
curt

Re: Android Reef Angel Status

Posted: Thu Nov 03, 2011 12:15 am
by alexwbush
nice update. I haven't switched to wifi yet, so I am using the reefangel.com values. I guess it can't pull DP and AP percents from the website.

I might play with putting wifi back in if you're going to work it such that we can modify from our phones. I've got it plugged in via USB to a stand alone computer running the client right now.

Is a widget coming?

Re: Android Reef Angel Status

Posted: Thu Nov 03, 2011 4:53 am
by binder
alexwbush wrote:nice update. I haven't switched to wifi yet, so I am using the reefangel.com values. I guess it can't pull DP and AP percents from the website.

I might play with putting wifi back in if you're going to work it such that we can modify from our phones. I've got it plugged in via USB to a stand alone computer running the client right now.

Is a widget coming?
the ap and dp values are set to be added to the reefangel.com website values soon... i just have to add the sending of them to the web banner string.

you will be able to modify memory values and trigger modes and toggle relays from the app eventually. i'm actually going to start working on that stuff next. i don't think you will be able to do that if you use the website values though... have to test that one.

as for a widget, i have thought about it and how that would work. it would be nice to have a widget with a value or two on it that would load the app up if you clicked on it. i just don't have all the specifics worked out with it yet. so we will have to see.

curt

Re: Android Reef Angel Status

Posted: Thu Nov 03, 2011 4:57 am
by StuGotz
binder wrote:Just pushed another release, so be on the lookout for it. Here's the new changes:
  • Improved XML parsing
  • Added more status text updates
  • Switched to use HttpURLConnection, allows for read and connect timeouts
  • Moved status strings to strings.xml
  • Added connect & read timeouts to host class
  • Added ability to enter in userid for web banner on reefangel.com
  • Added ability to choose to query controller directly or reefangel.com for values
curt
Great Update! Thanks for adding the ability to use our userid for web banner!

Re: Android Reef Angel Status

Posted: Thu Nov 03, 2011 9:19 am
by alexwbush
binder wrote: the ap and dp values are set to be added to the reefangel.com website values soon... i just have to add the sending of them to the web banner string.

you will be able to modify memory values and trigger modes and toggle relays from the app eventually. i'm actually going to start working on that stuff next. i don't think you will be able to do that if you use the website values though... have to test that one.

as for a widget, i have thought about it and how that would work. it would be nice to have a widget with a value or two on it that would load the app up if you clicked on it. i just don't have all the specifics worked out with it yet. so we will have to see.

curt
Curt,
Excellent news on the ap/dp. I was not aware that those were coming to the website.

I doubt values could be modified via the website... but you guys keep developing stuff, so who knows.

I was thinking like a 2-3 space widget that would show the same info as the banner. Also if the app could trigger water change or feed mode... that'd be impressive. I'm working on building the automated water change again now that I have room on the new board.

I will have to look hard again at wifi. I think the main problem I might have is that my internet connection comes in through the router and goes through 3 personal routers before going to my computers. I had one setup as a webserver for a little while going through two routers, so I know it's possible. But I also have an IP camera I am trying to get to work. I'll have to play around with settings and see if I can get them both to work.

Re: Android Reef Angel Status

Posted: Thu Nov 03, 2011 7:33 pm
by binder
alexwbush wrote: I was thinking like a 2-3 space widget that would show the same info as the banner. Also if the app could trigger water change or feed mode... that'd be impressive. I'm working on building the automated water change again now that I have room on the new board.
The triggering of water change and feed mode will be coming. The code already exists on the controller's end. The iPhone app handles it already (they had a head start on development over me).

I'm going to be researching the widget more. It would require some modification of the current code and improvements that I've already planned to do (but haven't yet). This would be so the phone is only doing one request on the controller instead of multiple ones (from different apps and such). Plus I will have to add in an "update interval" to specify how often to update the values from the device (controller or web banner).

Yes, I have ideas....lots of them. I just have to implement them and continue to work on other things. Maybe I should clone myself. :ugeek:

curt

Re: Android Reef Angel Status

Posted: Sun Nov 13, 2011 7:05 pm
by binder
For those of you in foreign countries (aka, non-English speaking locations), I'm curious to know how the app works for you with displaying other languages and if you've encountered any problems.

Also, if you would be interested in doing some string translations for the app, please let me know. You're name will be added to the list of contributors as well.

curt

Re: Android Reef Angel Status

Posted: Tue Nov 15, 2011 5:58 pm
by binder
Ok. I've got a French translation that will be in the next update.

curt

Re: Android Reef Angel Status

Posted: Sat Nov 19, 2011 11:28 am
by binder
Next update is pushed. Be on the lookout for it.

Here's the highlights for version 0.3
  • store controller values inside a database
  • added history menu that displays previous 30 status updates
  • database is limited to only keeping 30 status updates
  • BufferedReader has 8K initialization
  • Switched connection reader to use StringBuilder instead of just appending to a single String
  • added error status summary to update line on error
  • improved error handling
  • update the screen after changing preferences
  • use styles with the layout for consistent look and easier to update values
  • add in ability to label relay ports
  • moved labels to own preference screen: controller & relay labels
  • moved visibility to own preferences screen
  • display relay status information
  • allow for toggling relay port status
  • option to query all labels from ra.com using web banner id entered (does not download values yet)
  • added French translation
  • added better layout/style for tablets (extra large screens)
This should be a good update for everybody. More additions, more updates. The big update with this one is the ability to toggle the ports on & off.

curt

Re: Android Reef Angel Status

Posted: Sun Nov 27, 2011 5:33 pm
by binder
Just pushed a minor update. Fixed a bug with parsing the salinity.

curt

Re: Android Reef Angel Status

Posted: Wed Nov 30, 2011 9:48 pm
by tkeracer619
Keep up the good work! Program works good on my HTC Sensation.

Get home this weekend and will hopefully get everything setup.

Re: Android Reef Angel Status

Posted: Thu Dec 01, 2011 9:05 am
by rimai
It's been working beutiful now with last patch :)
I've been using it everyday. It's awesome.

Re: Android Reef Angel Status

Posted: Thu Dec 01, 2011 4:00 pm
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

Re: Android Reef Angel Status

Posted: Mon Dec 12, 2011 8:10 pm
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

Re: Android Reef Angel Status

Posted: Mon Dec 12, 2011 8:23 pm
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

Re: Android Reef Angel Status

Posted: Mon Dec 12, 2011 8:40 pm
by tkeracer619
Yup clears it up.

Thanks for the quick response :)

Re: Android Reef Angel Status

Posted: Thu Jan 05, 2012 4:12 pm
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?

Re: Android Reef Angel Status

Posted: Thu Jan 05, 2012 9:10 pm
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.

Re: Android Reef Angel Status

Posted: Fri Jan 06, 2012 5:01 am
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!

Re: Android Reef Angel Status

Posted: Fri Jan 06, 2012 8:56 am
by rimai
You could always use the internal ip address too.
It would work inside your house, but not outside.

Re: Android Reef Angel Status

Posted: Fri Jan 13, 2012 12:28 pm
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.

Re: Android Reef Angel Status

Posted: Sat Jan 14, 2012 9:07 pm
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