Page 1 of 1

Online access of RA data

Posted: Fri Jun 22, 2012 10:18 am
by ocd_reefer
Hey guys, I'm trying to integrate RA support into reefnook dot com (not trying to promote here, I want to give context for why I'm asking the question, if this is offensive, mods please remove it)

I haven't done a deep dive of the docs, but I thought I would start here first. I don't actually have a RA on hand, but a user has granted me access for testing.

The controllers I've implemented so far have provided a simple rss of the current activity, ph levels, lights on/off, etc. Is there such a url for the reef angel?

If so, my job is super easy!
If not, point me in the right direction and I'll get to it :)

Re: Online access of RA data

Posted: Fri Jun 22, 2012 10:29 am
by rimai
2 ways you can get this done:

1- Pull stored data from the reefangel.com website:
http://forum.reefangel.com/status/param ... =reefangel
The id is the forum username that the user has in our forums
This assumes that the user has been sending data to the server to populate our Portal:
http://forum.reefangel.com/portal.php

2- Pull data directly from RA:
http://ipaddress:2000/sa
This assumes that you have access to the controller from the internet.

Let me know if this helps.

Re: Online access of RA data

Posted: Fri Jun 22, 2012 10:34 am
by ocd_reefer
Perfect, that gets me the data.

Here is an example xml file: (you'll have to replace the dots with .)
https://gist.github.com/edc56c191045eb2b504d

Some of this is easy to make sense of, some of it, not so much. Are there any docs explaining what some of the data the RA is spitting out means?

Re: Online access of RA data

Posted: Fri Jun 22, 2012 10:48 am
by rimai
Humm..
That xml data looks very strange.
Everything after </ATOHIGH> looks wrong.
And unfortunately we are lacking in the documentation department :(
But, here is a brief explanation:
<T1> = Temperature Probe 1
<T2> = Temperature Probe 2
<T3> = Temperature Probe 3
<PH> = pH
<R> = Main Relay Box Port Status
<RON> = Main Relay Box Port Mask On
<ROFF> = = Main Relay Box Port Maxk Off
<EM> = Enabled Expansion Modules
<REM> = Enabled Relay Expansion Boxes
<PWMA> = Dimming Port - Actinic Channel
<PWMD> = Dimming Port - Daylight Channel
<SAL> = Salinity
<ORP> = ORP
<PHE> = pH Expansion
<WL> = Water Level

The rest is stuff for the expansion module values, such as PWM Expansion module values, Vortech/Radion values, Aqua Illumination values and any other expansion module.
Does it help?

Re: Online access of RA data

Posted: Fri Jun 22, 2012 10:52 am
by ocd_reefer
Thanks for the help rimai. I think this gives me what I need to get a working version out there.

Re: Online access of RA data

Posted: Sun Jun 24, 2012 6:49 am
by binder
If you can understand java, my android status app source code is on my github account with how I process all the xml data. Feel free to take a look at it.

Re: Online access of RA data

Posted: Sun Jun 24, 2012 10:53 am
by ocd_reefer
Curt! Perfect!

Thanks much!