Page 25 of 33

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 4:09 pm
by Sacohen
Good try. :)

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 4:09 pm
by lnevo
Did you happen to try the U-App yet? At least then you'd narrow it to Curt's.

Also did you try browsing on the phone to it from Chrome?

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 4:27 pm
by Sacohen
Not on the phone, but I did reach it from chrome on my laptop.

It pulled up the internal web server, but just the title.
The interface never came up.

Image

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 4:51 pm
by AlanM
Do you know if the issue is with authentication or with ddns? Maybe disable the auth part and see if the android app works with ddns first?

By the way, until just now I had been reading your name as Sao-chen and assumed you were chinese and just went by Steve in real life. Now I see it's Sacohen. haha.

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 5:06 pm
by lnevo
You need /wifi for the interface

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 5:07 pm
by lnevo
Alan do you tapatalk? His signature says "Steve's PDE" :)

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 5:16 pm
by Sacohen
Haha Alan, that's funny.

The server authentication has been disabled since Roberto said that was the cause of my problems with the Portal, because the Portal is not setup for the authentication yet.

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 6:19 pm
by cosmith71
I'm having the same issue. No problems with the portal, U-App, or connecting directly to the /wifi server, but can't connect with Reef Angel Status. My no-ip address works fine.

Sao-Chen, why do you have a link to some guy named Steve's .pde in your sig? :lol:

--Colin

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 6:23 pm
by binder
cosmith71 wrote:I'm having the same issue. No problems with the portal, U-App, or connecting directly to the /wifi server, but can't connect with Reef Angel Status. My no-ip address works fine.

Sao-Chen, why do you have a link to some guy named Steve's .pde in your sig? :lol:

--Colin
guess I had better look into this then. there may be something that I am not doing properly.

Sent from my Moto X

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 6:38 pm
by Sacohen
I never tried U-App.

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 7:12 pm
by Sacohen
I just tried U-App and it works.
Sorry Curt :(

Re: Android Reef Angel Status

Posted: Sun Sep 07, 2014 7:18 pm
by binder
Sacohen wrote:I just tried U-App and it works.
Sorry Curt :(
haha... it's ok. it's probably something simple.

Sent from my Moto X

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 5:07 pm
by binder
Alright, I followed up with the problem with the hostname resolution error. The problem is the underscore character "_". That is an invalid character to be used in hostnames.

http://en.wikipedia.org/wiki/Hostname#R ... host_names

A little exert from the article/page:
The Internet standards (Requests for Comments) for protocols mandate that component hostname labels may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-').
Yes, these domain names work with browsers but they realistically should not work. The underscores are used in domain names but not allowed in hostnames due to specifications. There's actually a full article on the topic linked from the wiki page.
Since my app utilizes a different network library than the default/stock android library (on a side note, the library that I use will be the default library on the next iteration of android...but I digress), that library strictly adheres to the standards, thus breaks the way the DDNS is implemented by Roberto.

So, the underscore should be changed to a hyphen to meet the internet standards. This will be something that Roberto will have to handle and perform.

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 5:12 pm
by Sacohen
Thanks for the follow up.

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 5:15 pm
by rimai
It's been changed. Try again with hyphen :)

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 5:16 pm
by binder
rimai wrote:It's been changed. Try again with hyphen :)
awesome! that was SUPER fast. 8-)

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 5:24 pm
by Sacohen
Perfect. It works great. Thanks guys.

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 6:06 pm
by binder
Sacohen wrote: The way it is on the Portal is like the image below, but I was just thinking you could have a line on the controller screen.

Image

I don't think you need the speedometer, just a line of text for Mode, Speed, Duration and maybe Threshold since that was added to the new code.

If you want to take it further you can make it link the dimming modules where if you press it for a couple of seconds you get a drop down menu where you can choose from the available options.

I personally probably wouldn't use that because my code randomly chooses a mode everyday or on reboot.
Would this be better served as a page that can be scrolled to or just left at the bottom of the controller information? a part of me says page and another says controller information.
I'm leaning towards a separate page because that would follow with the others and have all that look isolated to a specific section. If it was at the bottom of the controller page, then it would be mixed with other values and data.

So, I dunno. The best option I think is to ask what would people would suggest?

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 6:14 pm
by Sacohen
Originally I was thinking at the bottom of the controller page, but after seeing how Roberto did it on the U-App I kinda like that.

Have you seen how he did it?
He did a separate page.

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 6:20 pm
by binder
Sacohen wrote:Originally I was thinking at the bottom of the controller page, but after seeing how Roberto did it on the U-App I kinda like that.

Have you seen how he did it?
He did a separate page.
No, I have not seen how it is there. I just loaded up the app but since I don't have a dc pump or have it enabled, it is not showing up for me.

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 6:32 pm
by lnevo
It's the same as the RF screen Curt, except no Radion stuff :)

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 6:42 pm
by Sacohen
Here's a couple of screen shots.

Image

Image

The items are clickable like your PWM settings so you can press for a couple of seconds and then it will bring up a drop down menu to change the mode on a entry box to change the speed or duration.

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 6:56 pm
by binder
lnevo wrote:It's the same as the RF screen Curt, except no Radion stuff :)
awesome.

thanks for the screenshots steve

Re: Android Reef Angel Status

Posted: Tue Sep 09, 2014 6:57 pm
by Sacohen
No problem.

Re: Android Reef Angel Status

Posted: Wed Oct 01, 2014 9:57 pm
by cosmith71
Possible bug? Library or programming issue?

On the dimming expansion screen:

Channel 0 is at 0%. I override to value x. Value changes to **x%. Clear override. Value changes to x% (not zero) and light stays on at x%. The only way to get it back to zero is to override to 0 and then clear.

--Colin

Re: Android Reef Angel Status

Posted: Thu Oct 02, 2014 4:32 am
by binder
cosmith71 wrote:Possible bug? Library or programming issue?

On the dimming expansion screen:

Channel 0 is at 0%. I override to value x. Value changes to **x%. Clear override. Value changes to x% (not zero) and light stays on at x%. The only way to get it back to zero is to override to 0 and then clear.

--Colin
hmmmm. I will have to check on it and see what I can find out.

Sent from my Moto X

Re: Android Reef Angel Status

Posted: Thu Oct 02, 2014 4:32 am
by lnevo
Expected behavior

Re: Android Reef Angel Status

Posted: Thu Oct 02, 2014 4:34 am
by cosmith71
lnevo wrote:Expected behavior
One would think that when the override is cleared it would return to the original value...

--Colin

Android Reef Angel Status

Posted: Thu Oct 02, 2014 4:41 am
by lnevo
If your INO is setting a value it will.

Re: Android Reef Angel Status

Posted: Thu Oct 02, 2014 4:47 am
by cosmith71
I'm using this:

Code: Select all

  ReefAngel.PWM.Channel0PWMSlope(30);
--Colin