Universal App
Re: Universal App
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
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.
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.
Roberto.
Re: Universal App
I think he meant in the foreground does it refresh continuously.
Re: Universal App
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.lnevo wrote:I think he meant in the foreground does it refresh continuously.
Re: Universal App
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.89delta wrote: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.lnevo wrote:I think he meant in the foreground does it refresh continuously.
Re: Universal App
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
Sent from my iPad mini
Re: Universal App
Oh bummer.....All I know somewhat is eclipse...lol. Will take me forever to learn another program.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.
Re: Universal App
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.
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
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!
One suggestion, could we add more things to graph (WL, port activity).
Thanks!
Re: Universal App
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
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
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?
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.
Re: Universal App
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.
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
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
Roberto, i think it would be beneficial to have another url to call to get json. Would make things a lot easierrimai 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?
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
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.
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.
Roberto.
Re: Universal App
Awesome! That's exactly what i need. Ill continue on with looking at things then.rimai wrote: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.
Thanks, Roberto
Re: Universal App
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
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
Believe it or not.... I can ask even stupider questions than this one.
Re: Universal App
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
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
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
I'm having problems getting on the app, I know port forwarding is working properly because I change change pump settings from the portal.
-
- Posts: 88
- Joined: Fri Oct 05, 2012 1:58 am
Re: Universal App
I can't get this to work. It says my forum name is not set up.
Re: Universal App
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:
Make sure your code has this line:
Code: Select all
ReefAngel.Portal("treetopflyn");
Roberto.
-
- Posts: 88
- Joined: Fri Oct 05, 2012 1:58 am
Re: Universal App
But I don't have this issue with the app that this one replaced. It is working fine.
Re: Universal App
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.
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.
Roberto.
-
- Posts: 88
- Joined: Fri Oct 05, 2012 1:58 am
Re: Universal App
Got ya. I'll check the code. Thanks
Re: Universal App
Roberto, can you add a window for the webcam screen defined in the portal?