Page 4 of 9
Re: Universal App
Posted: Wed Jul 30, 2014 10:19 pm
by 89delta
How often does the U-app update itself? If it's manual refresh only can we get setting settings for timed intervals like the regular android app?
Re: Universal App
Posted: Thu Jul 31, 2014 8:03 am
by rimai
I don't think it is possible without understand better how you can create background services in the phone and I don't.
The app pauses when it is not in the foreground.
I'm pretty sure Curt uses android services to keep things running in the background.
Re: Universal App
Posted: Thu Jul 31, 2014 8:38 am
by lnevo
I think he meant in the foreground does it refresh continuously.
Re: Universal App
Posted: Thu Jul 31, 2014 10:14 am
by 89delta
lnevo wrote:I think he meant in the foreground does it refresh continuously.
Yes, that's what I meant. But I can take a look at the RAStatus app to see how Curt did it for the refresh later tonight.
Re: Universal App
Posted: Thu Jul 31, 2014 10:18 am
by rimai
Yeah, foreground refresh is easy.
Can you open an issue on github?
Re: Universal App
Posted: Thu Jul 31, 2014 10:24 am
by lnevo
89delta wrote:lnevo wrote:I think he meant in the foreground does it refresh continuously.
Yes, that's what I meant. But I can take a look at the RAStatus app to see how Curt did it for the refresh later tonight.
Remember this is being coded with phonegap. The iphone does provide some background services, but it would have to be done in a way that is supported cross platform, so it would be up to the API.
Re: Universal App
Posted: Thu Jul 31, 2014 11:48 am
by binder
yeah, i use a background service and a timed event that gets started at boot and gets restarted when you make any specific changes.
Sent from my iPad mini
Re: Universal App
Posted: Thu Jul 31, 2014 2:06 pm
by 89delta
lnevo wrote:
Remember this is being coded with phonegap. The iphone does provide some background services, but it would have to be done in a way that is supported cross platform, so it would be up to the API.
Oh bummer.....All I know somewhat is eclipse...lol. Will take me forever to learn another program.
Re: Universal App
Posted: Thu Jul 31, 2014 2:35 pm
by lnevo
Eclipse is just an IDE.
Phonegap is a library.
Depending on what language you used with Eclipse, you may or may not have to learn a new language
But certainly a new API.
Re: Universal App
Posted: Mon Aug 04, 2014 6:31 pm
by lucho
This app is great! Using it in my iPhone with no problem.
One suggestion, could we add more things to graph (WL, port activity).
Thanks!
Re: Universal App
Posted: Tue Aug 05, 2014 12:52 pm
by chachew
So i have been looking more into the webApp version of this application. The major problem i keep running into is Cross-domain access, which is denied. I can get around that with JSONP or CORS but the problem with CORS is probably all pages on reefangel.com have 'Access-Control-Allow-Origin' enabled so i cannot even bypass the browser origin problems. I think this may also break with localhost access via port forwarding. All limitations with Cross-Domain access.
I can get around all the problems with cross-domain to reefangel.com BUT i have to use YQL calls. Im trying to avoid this at all costs. But the more i dig into this the more i think i may have to use it
Re: Universal App
Posted: Tue Aug 05, 2014 12:59 pm
by rimai
Does it need to be jsonp or just the json array work?
Did you see the json output from the controller??
If jsonp is absolutely necessary, can we make it as a known static function, instead of an argument passed to the server embedded in the url?
Re: Universal App
Posted: Tue Aug 05, 2014 1:05 pm
by chachew
Ultimately a JSONP response is what we will need
I did some testing with the json output from the controller but i was running to problems because of the port forwarding. Port forwarding is considered cross-domain as well. Ill have to do some more testing at home with CORS and ports but im not sure it will be resolved either.
Re: Universal App
Posted: Wed Aug 06, 2014 7:03 am
by chachew
So i got some things working last night for locally connecting to the reefangel server. Took me a while to figure it out but i got the jsonp response that i needed. I had to modify the RA_Wifi.cpp and RA_Wifi.h files to get the correct jsonp wrapping and content-type. The json responses from the webserver were coming back as and 'xml' content type. I also had to hardcode the jsonp wrapper into the response. All-in-all it was a successful night of looking at the various pieces of code.
Re: Universal App
Posted: Wed Aug 06, 2014 7:43 am
by lnevo
Awesome!!!
Re: Universal App
Posted: Wed Aug 06, 2014 7:58 am
by chachew
rimai wrote:Does it need to be jsonp or just the json array work?
Did you see the json output from the controller??
If jsonp is absolutely necessary, can we make it as a known static function, instead of an argument passed to the server embedded in the url?
Roberto, i think it would be beneficial to have another url to call to get json. Would make things a lot easier
Similar to: "
http://forum.reefangel.com/status/labels.aspx?id=RA_ID"
Maybe: "
http://forum.reefangel.com/status/label ... x?id=RA_ID"
Could be anything really, that was just off the top of my head. The problem im having with the CORS call accessing the labels.aspx page is that the HTTP header is either missing the "Access-Control-Allow-Origin" header or its not allowing it. Maybe the simpler solution would to add the "Access-Control-Allow-Origin" HTTP header to that page.
Re: Universal App
Posted: Wed Aug 06, 2014 8:49 am
by rimai
We already have
http://forum.reefangel.com/status/label ... x?id=RA_ID
In any case, I also added the header to both pages. Let me know if it works.
Re: Universal App
Posted: Wed Aug 06, 2014 8:55 am
by chachew
Awesome! That's exactly what i need. Ill continue on with looking at things then.
Thanks, Roberto
Re: Universal App
Posted: Thu Aug 07, 2014 11:49 am
by Naptalene
Sorry if this is in the wrong thread...
Is there anyway to give an option to turn on a password to get into the app?
My kids play on my phone and I'm getting paranoid that they over ride/ turn things on/off.
Thanks
Re: Universal App
Posted: Thu Aug 07, 2014 1:02 pm
by lnevo
Good idea... I thought this was doable on the iPhone, but apparently not. Unless we change the rating of the app to 12+ or 17+
Re: Universal App
Posted: Fri Aug 15, 2014 4:37 pm
by poolman
Hi Roberto
Just wanted to say I upgraded to the plus and have been running for two weeks now and everything has been rock solid on the app. Well done.
Thanks
Re: Universal App
Posted: Mon Aug 25, 2014 7:08 pm
by New2novas
I'm having problems getting on the app, I know port forwarding is working properly because I change change pump settings from the portal.
Re: Universal App
Posted: Thu Sep 04, 2014 6:05 pm
by treetopflyn
I can't get this to work. It says my forum name is not set up.
Re: Universal App
Posted: Thu Sep 04, 2014 6:22 pm
by rimai
That will happen if your controller doesn't send data to the Portal and you are trying to download labels or chart data or something else from the Portal.
Make sure your code has this line:
Re: Universal App
Posted: Thu Sep 04, 2014 6:25 pm
by treetopflyn
But I don't have this issue with the app that this one replaced. It is working fine.
Re: Universal App
Posted: Thu Sep 04, 2014 6:28 pm
by rimai
The previous app, you would have to manually setup the forum username.
The UApp pulls it directly from RA, so you don't need to enter it. Also, if you have many controllers, the app is smart enough to pull data correctly because it actually finds out the forum username from the controller itself.
The previous app could only accommodate one controller.
Re: Universal App
Posted: Thu Sep 04, 2014 6:31 pm
by treetopflyn
Got ya. I'll check the code. Thanks
Re: Universal App
Posted: Fri Sep 05, 2014 5:00 pm
by lnevo
Roberto, can you add a window for the webcam screen defined in the portal?
Re: Universal App
Posted: Fri Sep 05, 2014 8:40 pm
by rimai
Can you open an issue?
Re: Universal App
Posted: Sat Sep 06, 2014 8:40 am
by lnevo
Sure