Page 1 of 1

ATO measurement?

Posted: Tue Oct 23, 2012 4:36 am
by Thavngr98
Is there a way to get the output or raw data that I can graph that will tell me how often my ATO is turned on in a 24 hour period.

Re: ATO measurement?

Posted: Tue Oct 23, 2012 8:21 am
by rimai
You would need to connect to RA using the USB-TTL cable.
Is it ok?

Re: ATO measurement?

Posted: Tue Oct 23, 2012 9:50 am
by Thavngr98
yeah it works great. Im just going to start dosing Kalk and wanted to know what my ATO output was. Is there any distance/power limits if I extend the USB-TTL cable? My computer is about 15 feet away. Normally I know that would not be an issue.

Re: ATO measurement?

Posted: Tue Oct 23, 2012 10:00 am
by rimai
I have 15feet from mine myself and had issues with the computer not seeing the cable with standard extension, so I had to get one of those active usb extension cables.
Then add this to your code:

Code: Select all

  static boolean lastlowato=false;
  static boolean lasthighato=false;
  if (ReefAngel.LowATO.IsActive()!=lastlowato)
  {
    lastlowato=ReefAngel.LowATO.IsActive();
    Serial.print(now());
    Serial.print("-Low ATO:");
    Serial.println(lastlowato);
  }
  if (ReefAngel.HighATO.IsActive()!=lasthighato)
  {
    lasthighato=ReefAngel.HighATO.IsActive();
    Serial.print(now());
    Serial.print("-High ATO:");
    Serial.println(lasthighato);
  }
On Arduino, open Serial Monitor on menu Tools->Serial Monitor and make sure it is set to 57600 baud.
It will start logging float switch changes.
The date is unix time.

Re: ATO measurement?

Posted: Tue Oct 23, 2012 12:14 pm
by Thavngr98
Thank Roberto Ill look into this. I just realized though that I could not leave this setup connect as my WiFi is already connected to the TTL connection. Are there any options to have both connected?

Re: ATO measurement?

Posted: Tue Oct 23, 2012 12:51 pm
by lnevo
Can't you use the status graph to see the relay status on your ATO pump?

ATO measurement?

Posted: Tue Oct 23, 2012 1:44 pm
by Thavngr98
No it doesn't give a numerical measurement.

Re: ATO measurement?

Posted: Tue Oct 23, 2012 2:47 pm
by rimai
Humm...
only if you have your own server and want to redirect all traffic from wifi to your server.

ATO measurement?

Posted: Tue Oct 23, 2012 3:26 pm
by Thavngr98
Hmm may have a old sunstation kicking around the office. Let me see what I can get.

Re: ATO measurement?

Posted: Tue Oct 23, 2012 8:19 pm
by 00Warpig00
I was curious about this myself. Although the Portal is great. What if for any reason it is not available in future years. Is there a way to log data from my controller to my own database? If so how would one accomplish this? I realize the intent is probably to support the Reef Angel forever, but what if for some reason this doesn't happen? Could deem much of the features of our investment as unusable. Would love to have all the graphs and my own data available to me on my own resources. Is this what the Client does? I admit i have not played with it yet. Still trying to get everything working. :)

Nick

Re: ATO measurement?

Posted: Thu Oct 25, 2012 8:57 am
by rimai
Yes, the Client also does pull parameters and stores in a local database.
You can either implement a pull method, like the Client, but the problem is that you may miss events as you will be querying the controller for events.
Or you can push from controller to your computer or server for every event that you wish.
Up to you :)

Re: ATO measurement?

Posted: Thu Oct 25, 2012 6:08 pm
by 00Warpig00
Short of being a DBA or a programmer how hard would this be to implement? Unfortunately my IT experience is in the hardware and config realm than in the dba/programming realm. I myself would prefer the push from controller to server method so if anything occurs it is logged. I was looking at the portal last night and was thinking how nice it would be if my IO module data could be logged there and this got me to thinking of the fact that we are seriously dependent on the portal. It would also be great to have data logged back for a greater timeframe. Is anyone with the know how working on a personal logging database that anyone knows of?

Nick

Re: ATO measurement?

Posted: Thu Oct 25, 2012 7:15 pm
by binder
00Warpig00 wrote:Short of being a DBA or a programmer how hard would this be to implement? Unfortunately my IT experience is in the hardware and config realm than in the dba/programming realm. I myself would prefer the push from controller to server method so if anything occurs it is logged. I was looking at the portal last night and was thinking how nice it would be if my IO module data could be logged there and this got me to thinking of the fact that we are seriously dependent on the portal. It would also be great to have data logged back for a greater timeframe. Is anyone with the know how working on a personal logging database that anyone knows of?

Nick
it shouldn't be too tough to do. You would just need to create a script that reads the parameters and stores the data. it's like the old school html form submission where the values are in the url. that is most likely what roberto does.