Page 4 of 12

Re: Did someone say iPhone app?

Posted: Wed Oct 05, 2011 9:12 am
by wolfador
wolfador wrote:Apple said the app crashed when they tried to enter the ip address. The logs they sent me don't tell me much and I am unable to reproduce the error on any of my devices nor the simulator.

the new SDK was just released so I am going to recompile with that, test and resubmit. Sorry guys.

resubmitted and back in review again. I guess rejected apps get first priority. :lol:

I had to remove the authentication part due to a bug in ASIHTTP's code, caused a crash in iOS5. I submitted a bug report to them so hopefully they can get it fixed so we can get that back. Everything else is working under iOS5.

Since I had to resubmit this version will have the memory screen like I posted above.

Re: Did someone say iPhone app?

Posted: Sat Oct 08, 2011 2:23 pm
by wolfador
App was approved and should be available to everyone. Let me know if there are any issues or feature requests.

Re: Did someone say iPhone app?

Posted: Sat Oct 08, 2011 2:50 pm
by Xender
I can't find it. Only in US store??

Re: Did someone say iPhone app?

Posted: Sat Oct 08, 2011 2:57 pm
by wolfador
Xender wrote:I can't find it. Only in US store??
it is available world wide, may take a little bit for it to span all app stores. Here is the itunes link


http://itunes.apple.com/us/app/reefange ... ?ls=1&mt=8

Re: Did someone say iPhone app?

Posted: Sat Oct 08, 2011 5:19 pm
by rimai
Sweet :)

Re: Did someone say iPhone app?

Posted: Sat Oct 08, 2011 6:58 pm
by wolfador
If anyone wants to write a better description feel free, I will update it.

Re: Did someone say iPhone app?

Posted: Sun Oct 09, 2011 2:44 am
by Chris
Hey ust got the iPhone app. Looks sweet. But need to get notifications on there. Plus can you only see and use the app if you are connected to the same wifi?
Not 3G ???

Re: Did someone say iPhone app?

Posted: Sun Oct 09, 2011 6:23 am
by wolfador
Chris wrote:Hey ust got the iPhone app. Looks sweet. But need to get notifications on there. Plus can you only see and use the app if you are connected to the same wifi?
Not 3G ???

you probably need to open port 2000 on your router and type in your external ip address. You can configure it using dyndns.com like Curt and I do.

If you are using the RA Client software on your computer you can configure it for text messages which you should get on your phone.

Re: Did someone say iPhone app?

Posted: Sun Oct 09, 2011 6:32 am
by Chris
How will I do that. I got it working sweet on wife. But won't update on 3G.
It emails me but only if the laptop is running. But if I can get the app to run 3G then I can just keep an eye out.
So any ideas on what I need to do. Sorry I'm not really comp minded.

Also it would really cool to get the client suite on the iPad.

Re: Did someone say iPhone app?

Posted: Sun Oct 09, 2011 11:54 am
by wolfador
Check out http://portforward.com/ just forward port 2000 to whatever local ip address your RA is on.

Re: Did someone say iPhone app?

Posted: Sun Oct 09, 2011 12:15 pm
by dmolton
Chris wrote:How will I do that. I got it working sweet on wife. But won't update on 3G.
It emails me but only if the laptop is running. But if I can get the app to run 3G then I can just keep an eye out.
So any ideas on what I need to do. Sorry I'm not really comp minded.

Also it would really cool to get the client suite on the iPad.
Chris, first thing you want to do is go to http://www.dyndns.org, create a new account and setup a new hostname. By doing this, you will create a new host address. Something like "chris.dyndns-remote.com". What this will do is bind the chosen host address (chris.dyndns-remote.com) to your IP address that your ISP will give to you. This gives you a way to access your home network outside of your home. Most modern routers will have a "DynDns" or "Dynamic DNS" option that lets you provide your newly created dyndns account/host information with your router. Anytime your ISP hands you a different IP address, your router will automatically update your dyndns host information making sure you're always able to reach your network via your dyndns host address.

Next thing you will want to do is assign your ReefAngel wifi adapter a static IP address, again through your router's setup page. This will ensure that anytime your network is reset, no matter what, your wifi adapter always has the same ip address. By default I think most routers will dynamically change the devices ip address. In my case, my router will always assign the wifi adapter the ip address 192.168.1.110 as you can see from the screenshot below:
Image

Next step is to setup a port forwarding rule. This will make sure that anytime your router sees a request coming in on a specified port, it knows exactly where to forward that request to, again on the specified port. Port 2000 is the recommended port for this. Here you can see anytime a request comes in on port 2000 - my router will forward it to the static ip address (192.168.1.110) on the same port 2000. This is why its so important to setup the static ip address rule in the previous step. If your router is always changing the ip address of your wifi adapter, then the port forward rule won't work out so well.
Image

Last step is to update the IP address field in the iphone application to now point to your dyndns host:2000. (http://chris.dyndns-remote.com:2000). This will let you see the ReefAngel information over 3G when you're not connected to your homes wifi router. You can also use the same url inside the Client Suite installed to a laptop outside of your home and it will work just the same..

Re: Did someone say iPhone app?

Posted: Sun Oct 09, 2011 12:21 pm
by wolfador
Nice write-Up :idea:

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:16 pm
by Rey
Thank you for the app. I set it up correctly but I'm not seeing any data populate.

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:28 pm
by wolfador
Rey wrote:Thank you for the app. I set it up correctly but I'm not seeing any data populate.

no error messages? what happens when you hit the refresh button? Make sure you hit save on the setup screen.

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:29 pm
by Rey
no error messages and when I hit refresh button no changes. Yes, I click on Save with any changes I make. I'm using ipad 2.

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:29 pm
by dmolton
Rey wrote:Thank you for the app. I set it up correctly but I'm not seeing any data populate.
Open a web browser and type the iPhone app's "address field : port number" in the address bar.

It should look like "http://192.168.1.110:2000" or if you're using a dyndns account, type in "http://yourdynhostaddress:2000" into the address bar of the browser and press return. What does the web browser show?

is your phone/ipod on wifi or 3G?

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:32 pm
by Rey
The screen is blank.
dmolton wrote:
Rey wrote:Thank you for the app. I set it up correctly but I'm not seeing any data populate.
Open a web browser and type the iPhone app's "address field : port number" in the address bar.

It should look like "http://192.168.1.110:2000" or if you're using a dyndns account, type in "http://yourdynhostaddress:2000" into the address bar of the browser and press return. What does the web browser show?

is your phone/ipod on wifi or 3G?

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:41 pm
by dmolton
You should see a webpage that reads: "Reef Angel Controller Web Server".

I see you have the web banner working in your signature, so you should be able to get the app working as well. How are you pushing the data to the reefangel.com server? Through the Client Suite or do you have your wifi adapter setup to push it through the WebBanner() function in your sketch file?

On your wifi adapter, did you setup the remote host and remote port to point to reefangel.com by chance? I'm referring to the fields in the following screenshot.
Image

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:46 pm
by dmolton
Speaking of your webbanner, it doesn't look like it's updating correctly. Could be related to your app issues.

Re: Did someone say iPhone app?

Posted: Wed Oct 12, 2011 12:57 pm
by Rey
I restarted my wifi adapter and now i see "Reef Angel Controller Web Server" and it works.. I can see it on my Ipad.. KUDOS to you sir...

Praise and Bug Report

Posted: Sun Oct 16, 2011 4:22 pm
by dedvalson
Hi,

First, thanks for the great iOS app. It is working great for me through port 2000 on my router.

Second, I think I found a minor bug. Often the app won't refresh if it is still in memory and hasn't been restarted.

The best way I have found to explain this is as follows:

1. Run the app and let it referesh normally.
2. Put your iPhone away over night.
3. Open the Reefangel app. When it opens, pushing on the refresh button does nothing (doesn't even display "Updating")
4. Press the main iPhone button to make the ReefAngel app go away.
5. Double click the iPhone button to make the task switcher appear.
6. Hold your finger on the ReefAngel till the "-" sign appears in the corner of it.
7. Touch the "-" sign to close ReefAngel.
8. Open ReefAngel, Now refresh will work.

If you have run enough other apps that the ReefAngel app is no longer in the Task Switcher it seems to work OK.

I suspect the problem is that the Update won't work if the last time I ran the app was yesterday at a later time of day than it is now. I suspect that there is a comparison to see if it is "later" than last time the refresh happened but that comparison is not taking the day into account, only the time of day. That is just a suspicion though.

Third, a couple of feature requests. Could you show more of the memory fields, particularly the times for the lights. Also, it would be great if the ATO Low and High could be seen.

Thanks.

Don

Re: Praise and Bug Report

Posted: Mon Oct 17, 2011 3:49 pm
by wolfador
dedvalson wrote:Hi,

First, thanks for the great iOS app. It is working great for me through port 2000 on my router.

Second, I think I found a minor bug. Often the app won't refresh if it is still in memory and hasn't been restarted.

The best way I have found to explain this is as follows:

1. Run the app and let it referesh normally.
2. Put your iPhone away over night.
3. Open the Reefangel app. When it opens, pushing on the refresh button does nothing (doesn't even display "Updating")
4. Press the main iPhone button to make the ReefAngel app go away.
5. Double click the iPhone button to make the task switcher appear.
6. Hold your finger on the ReefAngel till the "-" sign appears in the corner of it.
7. Touch the "-" sign to close ReefAngel.
8. Open ReefAngel, Now refresh will work.

If you have run enough other apps that the ReefAngel app is no longer in the Task Switcher it seems to work OK.

I suspect the problem is that the Update won't work if the last time I ran the app was yesterday at a later time of day than it is now. I suspect that there is a comparison to see if it is "later" than last time the refresh happened but that comparison is not taking the day into account, only the time of day. That is just a suspicion though.

Third, a couple of feature requests. Could you show more of the memory fields, particularly the times for the lights. Also, it would be great if the ATO Low and High could be seen.

Thanks.

Don
I have not run in to that issue, does it let you update if you press the button again? Sometimes Apple will show you the app even though it is not really loaded yet so it seems like the screen is "locked up" however it is still loading the app in the background. We can probably remove backgrounding and that would resolve this issue however everytime you go to use the app it would show the splash screen and take that extra second.

I will add fields for the lights on/off. I can also do ATO status. Will start working on those this week.

Thanks to Curts new libraries, I am working on getting buttons for feed mode and water change mode.

Re: Did someone say iPhone app?

Posted: Tue Oct 18, 2011 12:44 pm
by dedvalson
Hi,

Once it fails, I can press the Refresh button all day and it never refreshs. As soon as I restart the background app it starts working again.

My theory about crossing midnight appears to be wrong. My iphone app is currently failing but it last worked this morning. I do have some more details on the problem though.

It is only the temperatures, the pH and the green last updated time of day that don't work. The Relays update properly and I can even control them from the iPhone app. I am also able to read and write the memory from the iPhone app. When I change the PWM numbers my LEDs dim. When I press Refresh, the relays update perfectly, it is only the numbers that don't.

Also, when the app is working and you press the Refresh button, the green text briefly changes to "Updating". This is not happening either.

Thanks,

Don

Re: Did someone say iPhone app?

Posted: Tue Oct 18, 2011 3:28 pm
by wolfador
I just noticed this on mine while driving home today. On mine it would show the network activity meter in the status bar like it was attempting to download. Does yours also do this? If so I think that is where it can connect to the host but cannot download the XML. I will look into it some more.

Re: Did someone say iPhone app?

Posted: Tue Oct 18, 2011 8:39 pm
by dedvalson
Yes, it does show the activity icon. And like I said, the relays and memory work fine, it is just the temps and pH.

Don

Re: Did someone say iPhone app?

Posted: Wed Oct 19, 2011 8:32 pm
by wolfador
I switched the network connection from ASIHTTP to Apple's NSURL and it may have fixed the issue, will test it a bit more and see.

I added in boxes to change the MH and Standard lights times.

Also working on the feed / water change buttons, had to add in a check to see which version of Curts libraries the controller is running before it attempts to start a mode.

Have had a total of 33 downloads of the app so far :)

Re: Did someone say iPhone app?

Posted: Thu Oct 20, 2011 10:08 pm
by psyrob
will this app work if I have the ReefAngel controller connected via USB to a desktop computer that is connected wirelessly to my home network/router? or do I have to have the reefangel wifi adapter?

Re: Did someone say iPhone app?

Posted: Fri Oct 21, 2011 3:47 am
by wolfador
psyrob wrote:will this app work if I have the ReefAngel controller connected via USB to a desktop computer that is connected wirelessly to my home network/router? or do I have to have the reefangel wifi adapter?

you need the wifi adapter

Re: Did someone say iPhone app?

Posted: Wed Oct 26, 2011 8:43 am
by wolfador
new update was just approved / released.

The parameters and relays were separated to different tabs. Added in support for the Salinity module, added in the MH and STD light times on memory screen. Made the app more Celsius friendly. Also updated to NSURL instead of ASIHTTP which I hope fixed the problem dedvalson was having.

Re: Did someone say iPhone app?

Posted: Wed Oct 26, 2011 11:16 pm
by Xender
Good Job !
I have a question : In the memory set of the time On/Off. Is it 24 hours format?
Thanks