Page 1 of 1

RA Client listener/logger on SheevaPlug?

Posted: Fri May 04, 2012 3:32 pm
by billybob
Hi All--

Has there been any motion to port the RA Client listener/logger to another architecture? Linux, in particular?

I have a network appliance called a SheevaPlug, which is essentially a low-consumption linux box stuffed into a 'wall wart' configuration a few inches in size (I'd post a link, but since is my first post to this forum I don't have those permissions yet. you can google to find out what I'm talking about). The plug comes with a 1.2 GHz cpu, 1Gb mem, usb port, ethernet, and Ubuntu pre-installed. I currently have my plug in an 'always on' state, and use it to serve media files across the rest of my network via Samba.

My Windows machine, by contrast, is big, hot, and consumes a lot of power... not something I necessarily want to leave powered on 24/7. Also, it dual boots, and so can't be left on to monitor my reef angel if I need to work on the Linux side of the installation for a while.

Ideally, I'd like to run the Client listener/logger on the low-power SheevaPlug for continuous data collection, and serve the plots and data to the client on my windows machine when I have occasion to fire up my power-hog desktop computer. Dave has something labeled 'source' on his github, but all I see in the tarball is a windows installer package. Is the actual source code for the listener/logger publicly available? Has anyone experimented with moving the code to a non-windows environment?

--many thanks...

Re: RA Client listener/logger on SheevaPlug?

Posted: Fri May 04, 2012 3:41 pm
by rimai
lukeluke had something on linux once to collect data.
He even had a php server to display data and stuff.
You may want to contact him too :)

Re: RA Client listener/logger on SheevaPlug?

Posted: Fri May 04, 2012 3:44 pm
by billybob
Awesome, thanks roberto.

Luca, got any suggestions? Where did you find the source? are there particular libraries needed?

(PM'd)

Re: RA Client listener/logger on SheevaPlug?

Posted: Fri May 04, 2012 4:02 pm
by rimai
Also, I think it would be really hard to port the RA Client. It's built in C# and based on Windows services.
One other idea I had was to just use your linux box to forward data to the reefangel.com server. That way you could you the Portal.

Re: RA Client listener/logger on SheevaPlug?

Posted: Fri May 04, 2012 6:13 pm
by billybob
Yeah, I thought a port to the client itself would be difficult. I'd be happy to keep the graphical part of the client only on my windows machines, and use the portal for other architectures. but I would be stoked to be able to run at least the listener/logger daemons under linux on the plug.

Re: RA Client listener/logger on SheevaPlug?

Posted: Fri May 04, 2012 6:18 pm
by rimai
I'm sure you can get something put together with what lukeluke had done in the past.

Re: RA Client listener/logger on SheevaPlug?

Posted: Sat May 05, 2012 11:48 am
by binder
It's really quite simple. Like Roberto said, it's written in C#. I had been bugging Dave to compile it for linux but he hasn't. What I would really like him to do is to allow the front end to use any datasource (database connection) to view the data.

I personally have the database schema that the Client Suite uses. All that the Client does is query the controller every X minutes and stores those values in a database (SQLExpress I think). So if one had a shell script (or other script...perl, php, python, etc) to dump the data to a mysql database the data would be there. Then you would just need the client to interface with your database.

Re: RA Client listener/logger on SheevaPlug?

Posted: Mon May 07, 2012 8:26 am
by billybob
erf, when you guys say simple....

I'm happy with a challenge, but no idea where to start here.

Re: RA Client listener/logger on SheevaPlug?

Posted: Mon May 07, 2012 8:39 am
by binder
billybob wrote:erf, when you guys say simple....

I'm happy with a challenge, but no idea where to start here.
Hahaha. Yeah, I have to watch my wordings at times. :)

The original source code is located here: https://github.com/davemolton
It's in the repository called Client-Suite. I'm not sure if dave's updated the source or not (it doesn't look like he has). It would at least be a start for you.

Re: RA Client listener/logger on SheevaPlug?

Posted: Mon May 07, 2012 9:11 am
by binder
Just found out more info. The source I mentioned is really old and most likely not complete. Will most likely need to wait to get the latest source and such.
It's also probably only the listener service. So it could be a start for you to look at at least.