New APP / Portal

Community contributed apps
modulok
Posts: 166
Joined: Wed Oct 24, 2012 8:37 am

Re: New APP / Portal

Post by modulok »

I have Google Nexus 7 Tablet.
Image
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Re: New APP / Portal

Post by dbmet »

iPhone 4S here and stuck on ios 6 because work won't let me upgrade.
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New APP / Portal

Post by lnevo »

dbmet wrote:iPhone 4S here and stuck on ios 6 because work won't let me upgrade.
Thats a good thing for RA right now,
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Re: New APP / Portal

Post by dbmet »

Lol yup except apple pushed the update to download to my phone anyway, so it's just sitting there sucking up space.
Image
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: New APP / Portal

Post by JoelIreland »

Thanks guys i will PM you the link this afternoon ( AUS time ).
Some features i have been toying with - to help with the ongoing growth and to take some strain of Roberto.

What do you think about more extensive alerts. For example you can set how often you want the RA to be contacted to view statuses like temperature etc, and have various flags set in the app that can alert you via email and / or SMS ( will work on an SMS service ).
This way alerts can be independent of memory usage etc.
We can also build in an online scheduler, ( when RA is online ) we can schedule talks or relay positions remotely. )

Here is a preview of the relay switches with additional options.
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New APP / Portal

Post by binder »

i have: galaxy nexus, ipad 3, ipad mini, nexus 7 (2012)


Sent from my iPad mini
ozworld
Posts: 6
Joined: Fri Jun 07, 2013 1:14 pm

Re: New APP / Portal

Post by ozworld »

Wow, this looks very promising...
Thanks!
jjdezek
Posts: 329
Joined: Fri May 17, 2013 1:35 pm

Re: New APP / Portal

Post by jjdezek »

Anyone get anything on this yet?
Image
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: New APP / Portal

Post by JoelIreland »

Sorry guys just refining few bugs. Will reveal the domain for you all to test on Tuesday.


Sent from my iPad using Tapatalk HD
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: New APP / Portal

Post by binder »

JoelIreland wrote:Sorry guys just refining few bugs. Will reveal the domain for you all to test on Tuesday.


Sent from my iPad using Tapatalk HD
no worries at all. we are all pretty patient when it comes to the apps. :-)

Sent from my Nexus 7
pasqualevg
Posts: 13
Joined: Fri May 13, 2011 12:27 pm
Location: Italy

Re: New APP / Portal

Post by pasqualevg »

I have iPhone 4S and iOS 7 of you need...


Sent from my iPhone using Tapatalk
pasqualevg
Posts: 13
Joined: Fri May 13, 2011 12:27 pm
Location: Italy

Re: New APP / Portal

Post by pasqualevg »

I have iPhone 4S and iOS 7 of you need...


Sent from my iPhone using Tapatalk
davaraj
Posts: 98
Joined: Sun Jul 21, 2013 8:18 am

Re: New APP / Portal

Post by davaraj »

I have Samsung S3(Android), iPhone 4(iOS 6), and iPad 3(iOS 7)

Dr Davaraj
Image
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: New APP / Portal

Post by JoelIreland »

Hi all still chugging away.
For the coders out there behind RA, is there a way to get a response from the RA in json format?
I am trying to setup a cross domain get so that there is an option of direct commands to the unit when you are on the local network. This speeds up heaps.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New APP / Portal

Post by lnevo »

I'm creating my own json in javascript using an ajax call.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: New APP / Portal

Post by rimai »

Are you talking about /r99 response?
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New APP / Portal

Post by lnevo »

Mine is a combination. I have one json that is r99 only and another that is r99 and mr data
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: New APP / Portal

Post by JoelIreland »

What I am trying to achieve is a direct communication with the RA as you cannot cross get or post XML but you can with json.
So when the RA returns it's results using r99 or when you switch a relay it returns XML. I would like it to return JSON so we can directly control when you are in your local area network.

Features added so far:
Setup monitored ports and alerts: For example, you can set if temp 1 goes over (this) or below (that) turn off port (x).
This obviously should be done directly, but wold be helpful if you are away and want to monitor something.
Also if temp 1 goes over (this) or under (that) email me message (x). ( or sms if setup ).

You can choose how often you want to poll your RA and all data is stored in a database for quick access every time so there is no need to continually sync with the RA and wait for it to load.
Labels can be taken from RA portal or set your own.

Setup quick functions. For example
Button X is pressed : - > turn off relay X and relay X and turn on relay X.
When button X is pressed again, return to it's state.

Any relay can be programmed for a certain time or function.
All gauges can be monitored every ( 1,2,5,10,30,60,90,120,240 ) minutes.

What you all think :)
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New APP / Portal

Post by lnevo »

You will have to modify the ra wifi code to return the json. The behavior you mentioned for relays is basically how I did it in my javascript.
jjdezek
Posts: 329
Joined: Fri May 17, 2013 1:35 pm

Re: New APP / Portal

Post by jjdezek »

Sound awesome. Can't wait to see it.
Image
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: New APP / Portal

Post by JoelIreland »

Thought so but as I am looking for a solution for everyone, it either needs to be an update for all or need to find another way around it.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: New APP / Portal

Post by rimai »

Can you provide an example json that the controller would be returning?
I'll have to change the libs to include that.
It'll have to be an optional feature, because the code will increase.
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New APP / Portal

Post by lnevo »

Here's the output from my all_data_json.php

Code: Select all

{"xml":{"ID":"lnevo","T1":"802","T2":"800","T3":"793","PH":"793","R":"203","RON":"0","ROFF":"255","R1":"28","RON1":"0","ROFF1":"255","R2":"128","RON2":"0","ROFF2":"255","R3":"0","RON3":"0","ROFF3":"255","R4":"0","RON4":"0","ROFF4":"255","R5":"0","RON5":"0","ROFF5":"255","R6":"0","RON6":"0","ROFF6":"255","R7":"0","RON7":"0","ROFF7":"255","R8":"0","RON8":"0","ROFF8":"255","ATOLOW":"1","ATOHIGH":"1","EM":"130","EM1":"0","REM":"3","FLAG":"0","PWMA":"30","PWMD":"30","PWMAO":"255","PWMDO":"255","WL":"93","C0":"0","C1":"8","C2":"8","C3":"0","C4":"46","C5":"9","C6":"8","C7":"0","RFM":"11","RFS":"37","RFD":"1","RFW":"0","RFRB":"0","RFR":"0","RFG":"0","RFB":"100","RFI":"100","RFWO":"255","RFRBO":"255","RFRO":"255","RFGO":"255","RFBO":"255","RFIO":"255"},"mem":{"Mem_B_MoonSlope":30,"Mem_B_Vacation":0,"Mem_B_AutoFeed":0,"Mem_B_AutoFeedPress":2,"Mem_B_AutoFeedRepeat":8,"Mem_B_AutoFeedOffset":5,"Mem_I_WCFillTime":270,"Mem_I_Latitude":21,"Mem_I_Longitude":-73,"Mem_B_AcclRiseOffset":4,"Mem_B_AcclSetOffset":2,"Mem_B_AcclDay":0,"Mem_B_SwabbieRepeat":4,"Mem_B_SwabbieTime":1,"Mem_B_TideMin":10,"Mem_B_TideMax":15,"Mem_B_PumpOffset":50,"Mem_B_FeedingRF":1,"Mem_B_NightRF":0,"Mem_B_NightSpeed":25,"Mem_B_NightDuration":16,"Mem_B_NTMSpeed":40,"Mem_B_NTMDuration":5,"Mem_B_NTMDelay":15,"Mem_B_NTMTime":150,"Mem_I_CalDP1Vol":10,"Mem_I_CalDP1Time":430,"Mem_I_DP1Volume":20,"Mem_I_CalDP2Vol":10,"Mem_I_CalDP2Time":430,"Mem_I_DP2Volume":20,"Mem_B_LogATO":96,"Mem_B_LogPrevATO":97,"Mem_B_RateAlarm":5,"Mem_B_TideMode":8,"Mem_B_MaintGAC":5,"Mem_B_MaintGFO":20,"Mem_B_MaintCal":13,"Mem_B_MaintAlk":13,"Mem_B_MaintWC":5,"Mem_B_MaintATO":1,"Mem_B_MaintFeeding":2,"Mem_B_MaintSkimmer":5,"Mem_B_MaintSocks":5,"Mem_B_MaintWCVol":20,"Mem_I_CalDP3Vol":3,"Mem_I_CalDP3Time":270,"Mem_I_DP3Volume":0,"Mem_B_ResetMemory":0,"Mem_B_MHOnHour":15,"Mem_B_MHOnMinute":30,"Mem_B_MHOffHour":21,"Mem_B_MHOffMinute":0,"Mem_B_StdLightsOnHour":11,"Mem_B_StdLightsOnMinute":42,"Mem_B_StdLightsOffHour":19,"Mem_B_StdLightsOffMinute":38,"Mem_I_WM1Timer":10,"Mem_I_WM2Timer":15,"Mem_B_DP1Timer":35,"Mem_B_DP2Timer":35,"Mem_I_FeedingTimer":1800,"Mem_I_LCDTimer":600,"Mem_I_OverheatTemp":840,"Mem_B_LEDPWMDaylight":18,"Mem_B_LEDPWMActinic":20,"Mem_I_HeaterTempOn":798,"Mem_I_HeaterTempOff":803,"Mem_I_ChillerTempOn":815,"Mem_I_ChillerTempOff":795,"Mem_B_ATOTimeout":60,"Mem_I_PHMax":840,"Mem_I_PHMin":524,"Mem_B_MHDelay":0,"Mem_B_DP1OnHour":20,"Mem_B_DP1OnMinute":0,"Mem_B_DP2OnHour":22,"Mem_B_DP2OnMinute":30,"Mem_B_ATOHourInterval":0,"Mem_B_ATOHighHourInterval":0,"Mem_B_ATOHighTimeout":60,"Mem_I_DP1RepeatInterval":60,"Mem_I_DP2RepeatInterval":60,"Mem_I_SalMax":2550,"Mem_B_PWMSlopeStartD":0,"Mem_B_PWMSlopeEndD":30,"Mem_B_PWMSlopeDurationD":30,"Mem_B_PWMSlopeStartA":0,"Mem_B_PWMSlopeEndA":30,"Mem_B_PWMSlopeDurationA":30,"Mem_B_RFMode":11,"Mem_B_RFSpeed":50,"Mem_B_RFDuration":10,"Mem_B_PWMSlopeStart0":15,"Mem_B_PWMSlopeEnd0":100,"Mem_B_PWMSlopeDuration0":60,"Mem_B_PWMSlopeStart1":15,"Mem_B_PWMSlopeEnd1":100,"Mem_B_PWMSlopeDuration1":60,"Mem_B_PWMSlopeStart2":15,"Mem_B_PWMSlopeEnd2":100,"Mem_B_PWMSlopeDuration2":60,"Mem_B_PWMSlopeStart3":15,"Mem_B_PWMSlopeEnd3":100,"Mem_B_PWMSlopeDuration3":60,"Mem_B_PWMSlopeStart4":15,"Mem_B_PWMSlopeEnd4":100,"Mem_B_PWMSlopeDuration4":60,"Mem_B_PWMSlopeStart5":15,"Mem_B_PWMSlopeEnd5":100,"Mem_B_PWMSlopeDuration5":60,"Mem_I_ATOExtendedTimeout":30,"Mem_I_ATOHighExtendedTimeout":120,"Mem_I_ORPMin":2050,"Mem_I_ORPMax":450,"Mem_B_ActinicOffset":120,"Mem_I_CO2ControlOn":770,"Mem_I_CO2ControlOff":760,"Mem_I_PHControlOn":800,"Mem_I_PHControlOff":810,"Mem_B_AISlopeStartW":0,"Mem_B_AISlopeEndW":100,"Mem_B_AISlopeDurationW":60,"Mem_B_AISlopeStartB":0,"Mem_B_AISlopeEndB":100,"Mem_B_AISlopeDurationB":60,"Mem_B_AISlopeStartRB":0,"Mem_B_AISlopeEndRB":100,"Mem_B_AISlopeDurationRB":60,"Mem_B_RadionSlopeStartW":0,"Mem_B_RadionSlopeEndW":0,"Mem_B_RadionSlopeDurationW":60,"Mem_B_RadionSlopeStartRB":0,"Mem_B_RadionSlopeEndRB":0,"Mem_B_RadionSlopeDurationRB":60,"Mem_B_RadionSlopeStartR":0,"Mem_B_RadionSlopeEndR":0,"Mem_B_RadionSlopeDurationR":60,"Mem_B_RadionSlopeStartG":0,"Mem_B_RadionSlopeEndG":0,"Mem_B_RadionSlopeDurationG":60,"Mem_B_RadionSlopeStartB":0,"Mem_B_RadionSlopeEndB":100,"Mem_B_RadionSlopeDurationB":60,"Mem_B_RadionSlopeStartI":0,"Mem_B_RadionSlopeEndI":100,"Mem_B_RadionSlopeDurationI":60,"Mem_B_DelayedStart":5,"Mem_I_PHExpMin":500,"Mem_I_PHExpMax":2500,"Mem_I_WaterLevelMin":855,"Mem_I_WaterLevelMax":2800,"Mem_I_SalTempComp":-1,"Mem_B_WaterLevelLow":61,"Mem_B_WaterLevelHigh":63,"Mem_B_DP3Timer":0,"Mem_I_DP3RepeatInterval":60,"Mem_B_LCDID":255,"Mem_B_DCPumpMode":0,"Mem_B_DCPumpSpeed":255,"Mem_B_DCPumpDuration":255},"relays":{"rbin":"11001011","relay1val":"1","relay2val":"1","relay3val":"0","relay4val":"1","relay5val":"0","relay6val":"0","relay7val":"1","relay8val":"1","relay1on":"0","relay2on":"0","relay3on":"0","relay4on":"0","relay5on":"0","relay6on":"0","relay7on":"0","relay8on":"0","relay1off":"1","relay2off":"1","relay3off":"1","relay4off":"1","relay5off":"1","relay6off":"1","relay7off":"1","relay8off":"1","relay1status":"1","relay2status":"1","relay3status":"0","relay4status":"1","relay5status":"0","relay6status":"0","relay7status":"1","relay8status":"1","rbin1":"00011100","relay11val":"0","relay12val":"0","relay13val":"1","relay14val":"1","relay15val":"1","relay16val":"0","relay17val":"0","relay18val":"0","relay11on":"0","relay12on":"0","relay13on":"0","relay14on":"0","relay15on":"0","relay16on":"0","relay17on":"0","relay18on":"0","relay11off":"1","relay12off":"1","relay13off":"1","relay14off":"1","relay15off":"1","relay16off":"1","relay17off":"1","relay18off":"1","relay11status":"0","relay12status":"0","relay13status":"1","relay14status":"1","relay15status":"1","relay16status":"0","relay17status":"0","relay18status":"0","rbin2":"10000000","relay21val":"0","relay22val":"0","relay23val":"0","relay24val":"0","relay25val":"0","relay26val":"0","relay27val":"0","relay28val":"1","relay21on":"0","relay22on":"0","relay23on":"0","relay24on":"0","relay25on":"0","relay26on":"0","relay27on":"0","relay28on":"0","relay21off":"1","relay22off":"1","relay23off":"1","relay24off":"1","relay25off":"1","relay26off":"1","relay27off":"1","relay28off":"1","relay21status":"0","relay22status":"0","relay23status":"0","relay24status":"0","relay25status":"0","relay26status":"0","relay27status":"0","relay28status":"1"}}
The json object has three arrays xml, mem, relays. XML contains the data straight from the r99 output. The mem contains all the memory variables extracted from /mr and the relays contains the relay information after applying masks and so forth.

For the controller output, I would suggest just outputting the r99 obviously... should look something like this, but I'm editing it manually...

Code: Select all


{"xml":{"ID":"lnevo","T1":"802","T2":"800","T3":"793","PH":"793","R":"203","RON":"0","ROFF":"255","R1":"28","RON1":"0","ROFF1":"255","R2":"128","RON2":"0","ROFF2":"255","R3":"0","RON3":"0","ROFF3":"255","R4":"0","RON4":"0","ROFF4":"255","R5":"0","RON5":"0","ROFF5":"255","R6":"0","RON6":"0","ROFF6":"255","R7":"0","RON7":"0","ROFF7":"255","R8":"0","RON8":"0","ROFF8":"255","ATOLOW":"1","ATOHIGH":"1","EM":"130","EM1":"0","REM":"3","FLAG":"0","PWMA":"30","PWMD":"30","PWMAO":"255","PWMDO":"255","WL":"93","C0":"0","C1":"8","C2":"8","C3":"0","C4":"46","C5":"9","C6":"8","C7":"0","RFM":"11","RFS":"37","RFD":"1","RFW":"0","RFRB":"0","RFR":"0","RFG":"0","RFB":"100","RFI":"100","RFWO":"255","RFRBO":"255","RFRO":"255","RFGO":"255","RFBO":"255","RFIO":"255"}}

JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: New APP / Portal

Post by JoelIreland »

So your just encoding the returned XML from the RA. The issue is cross domain, I can't even access the XML. I can use a proxy but am trying to get a direct link for local ip addresses. Your code is a perfect example of what I need though,


Sent from my iPad using Tapatalk HD
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: New APP / Portal

Post by lnevo »

Yeah i think its a encode_json function. Have you looked at the e ample portal code i published?
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: New APP / Portal

Post by JoelIreland »

Sure did. Thanks for that.
So looks like I'll put live with only proxy access not direct until we come up with a direct JSON solution.


Sent from my iPad using Tapatalk HD
AquaO
Posts: 61
Joined: Sun May 27, 2012 11:22 am

Re: New APP / Portal

Post by AquaO »

Good job!!!
I'm very happy to see this post!!!

i'm not sure if its to late...

But, have iPhone 4 iOS 7 and my Reef Angel app not working with the new iOS :(

I will be very happy to test the NEW app ;)
Thank
Image

Osaka 40g with 55g sump
Radion, 2X Tunze 6045, Swc-160 mini cone
Jmustapha
Posts: 14
Joined: Sun Jul 07, 2013 11:05 am

Re: New APP / Portal

Post by Jmustapha »

Thank you [PERSON RAISING BOTH HANDS IN CELEBRATION]
fatman
Posts: 121
Joined: Wed May 30, 2012 10:44 pm

Re: New APP / Portal

Post by fatman »

Android phone, android tablet, mac computer, windows computer, linux computer and an iPhone 5 for my son. Yes, I'm confused every time I boot something up.

Let me know if I can help.
Image
chapboogie
Posts: 95
Joined: Mon Apr 29, 2013 10:51 pm

Re: New APP / Portal

Post by chapboogie »

I would love to see a widget for android. Something that has my parameters on the home screen

Sent from my SCH-I535 using Tapatalk 4
Post Reply