PDA

View Full Version : Web interface


Matthias Gross
02/19/2008, 09:41 AM
Nadine programmed her own application to display current values and measurement charts. It can be seen here:

http://www.nh-diskus.de/becken.php?lz=messwerte

She and some other ProfiLux-Users are programming some web-extensions for the ProfiLux.

I think this is a very interesting link - although it's in German.

boboxx
02/19/2008, 10:10 AM
I also have a complete native comunication to the Profilux in PHP... Well almost :c)

I'm stuck on a fiew return values that dont seem to make any sense.

But so far, I can connect to the device and get the folowing:
- Firmaware version
- Model number

Values that are returned but not aqurate are;
- PH
- Temperature
- Serial number

If any one is interested in working on this, let me know and I will share the code.

Christian

boboxx
02/19/2008, 11:54 AM
Update I can now read:

- Firmaware version
- Model number
- PH
- Temperature


but my web page is not as nice as Nadine yet :cP

AQD_ottawa
02/19/2008, 12:03 PM
when can we see it?

tee-em
02/19/2008, 12:11 PM
Very cool...
Matthias, what forum or other site did they collaborate on.
With a bit of Google translation we may be able to learn more from them, to jump start an english version.

boboxx
02/19/2008, 12:30 PM
I will finish a few things, polish up the code and add some comments. As soon as I have that done I will post a link… if you can wait send me a email and I will show you what I have now :cP

boboxx
02/19/2008, 12:34 PM
it's here :c)

http://www.matuta.com/include.php?path=forum/showthread.php&threadid=2844&PHPKITSID=85c5e8312c7c4e1942a9283dd823c208

or translated in EN
http://64.233.179.104/translate_c?hl=en&u=http://www.matuta.com/include.php%3Fpath%3Dforum/showthread.php%26threadid%3D2844%26PHPKITSID%3Dd33d36b639f6c4f5328199b1f38168d6

AQD_ottawa
02/19/2008, 12:59 PM
I would hold fire for a while, I sniff something in the breeze blowing across from the East.

lets see what Matthias has up his sleave in the next few weeks in regards to web interfacing etc!!!

Matthias Gross
02/19/2008, 01:16 PM
Michael, I appreciate any help and input - so don't slow boboxx down ...

boboxx
02/19/2008, 01:18 PM
hehehe, ho I'm not stopping!

boboxx
02/19/2008, 01:35 PM
WhohOO I have the status of the power bar working :c)

lpkenneys
02/19/2008, 03:18 PM
OMG...... You guys have to share with us how to do this,,, :-)

Nickde123
02/19/2008, 03:56 PM
I can not wait this is HUGE

tee-em
02/19/2008, 07:26 PM
Okay appears mysql and PHP the way to go.
So far I have automated data dumped using Profiluxcontrol and Autoit scripts. It is very cumbersome... wish I could talk direct ;)

ckhorne
02/19/2008, 09:00 PM
I'm also almost finished with a C# API I've been working on (and helping boboxx - sorry, I can't let you take all the credit! :) ). I'll post it in a week or two when I have more time.

boboxx
02/21/2008, 07:34 AM
Woohooo!, With the help of Chris (ckhorne) I was finally able to locate my error.

I'm now in the process of working with Nadine to finalize a few things.

What are some of the things that people would like to see in this web access version (will stick to logging and graphing for now).

Christian

tee-em
02/21/2008, 11:12 AM
Daily graph as default... ph redox temp.
What about all three on one graph or is that too busy and dificult to read.
Other values would be average value for that period and min and max value for that period. The straight line trend might also be useful i.e. overall rising ph or lowering.

Eventually would like to add in data manually as well like mg values and events like water change etc that one can indicate on the graph by a symbol or something. So maybe a data entry form.

Will this connect direct to the profilux or will one still have to run ProfiluxControl somewhere?

boboxx
02/21/2008, 11:31 AM
ya that's pretty much what I wanted also... this will connect directly to the device on the LAN or WAN interface.

You will need to have a PHP4-5/MYSQL in place in order for this to work (standars stuff for any hosting service)

Nickde123
02/21/2008, 05:49 PM
what is PHP thingy ? Also would you be able to change stuff from the web ? Like for instance shutting the lights off or on or pumps heaters chiller ect.. like that. Say you notice the waters temp is higher then you have it set at now you would be able to shut down the lights manually from the site to help kool down the tank also have the fans go on say because the chillers ot working for some reason you know what i mean. I hate not being able to know whats going on when im away this would be HUGE if possible to do

Nickde123
02/21/2008, 06:03 PM
what is PHP thingy ? Also would you be able to change stuff from the web ? Like for instance shutting the lights off or on or pumps heaters chiller ect.. like that. Say you notice the waters temp is higher then you have it set at now you would be able to shut down the lights manually from the site to help kool down the tank also have the fans go on say because the chillers ot working for some reason you know what i mean. I hate not being able to know whats going on when im away this would be HUGE if possible to do

boboxx
02/21/2008, 07:02 PM
"What is PHP? PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML." For more info visit http://www.php.net/

If you are not familiar with web technolgies this might not be for you, this is more of a "hack" then the sable Pofilux Controle but it enable you to do things that you cant curently do with the Pofilux Controle. In order to make this work you will need a web server or a hosting package. I use http://www.kionic.com/ :c)

Christian

punkrockdad
02/28/2008, 03:15 PM
Any developments guys??

boboxx
02/28/2008, 03:51 PM
I am away on trainning and developement has been slow. Matthias has givin us the information required to query for attahced device... This is major :c) only problem it's in Germam and it takes longer to translate and unterstand.

I have been working on the loging and graphing part and will jump on the device query after.

If anyone is interested in getting the code as is le me know and I will send you the running copy. Nadine and I are currently using it to log data.

Christian

tee-em
02/28/2008, 11:54 PM
Righty Ho...
have my LAMP installed on a NAS device.
Have access to a German techo that dabbles in scripting and the odd bit of code. The other mate is a php/sql geek lets get it on... :D
Me, well... only Windows server and network admin, had the data export and sql 2005 import scripted and sorted... but clearly open source is the way to release it to the masses and run it on small devices.
Ready to start tinckering... and all you lurkers out there... jump in and lend a hand where you can.

Nickde123
02/29/2008, 08:26 AM
I can build you something to hold your computers lmao I wish I knew this stuff

boboxx
02/29/2008, 08:54 AM
Well here is the code that I have so far... there is still alot to do but depending on what you want to do it might work as is for you.

http://reef.charetx2.com/

ReefRockerLive
03/02/2008, 02:01 PM
Have there been any updates for this?

boboxx
03/02/2008, 03:44 PM
nope I was in transit... you got to love airports and snow storm!!

I did do a bit in the while I was traveling but nothing to be relased yet... but next update will be nice :c)

bkelley02
03/13/2008, 08:15 AM
Any updates?

boboxx
03/13/2008, 11:04 AM
Nope I'm still working on this, it's been really slow lately... hopefully this weekend I will have some time to work on it :c)

Windy Miller
03/13/2008, 04:38 PM
I have also started working on a web front end written in C# that will talk to the serial port rather than require a LAN card installed.

I'll code a web interface into the application so no apache/php will be required.

I'd appreciate any input from you guys that have already done any API work, especially if it is in C#.

I already have it bringing back firmware version, but I don't want to reinvent the wheel.

ckhorne
03/13/2008, 04:40 PM
I have the C# code working through the LAN - communication through the serial port is as simple as switching out the socket communications for serial communications. PM me for more info.

fyre_lp
04/16/2008, 06:17 PM
<a href=showthread.php?s=&postid=11973738#post11973738 target=_blank>Originally posted</a> by boboxx
Well here is the code that I have so far... there is still alot to do but depending on what you want to do it might work as is for you.

http://reef.charetx2.com/


boboxx, I just wanted to say thanks for sharing this. This is great work. I got the code to work, the only thing that didn't work for me is the probe_graph.php

boboxx
04/17/2008, 04:34 AM
yes I know this is still work in progress, I havent been able to make any headway on this project for a few weeks now. I'm working on the graphing part now and should be done shortly :c)

Christian

tee-em
04/18/2008, 02:40 PM
Yep boboxx great work, I have buchered your o.1 code a little to play with things, hope you dont mind... absolutely love it.
I use the current settings page to quickly check from my mobile which has a tendency to cache pages aggressively so have added time to make sure I am looking at current levels.
Others might find this as useful as I have.. also just removed the extra firmware and serial info.
The other things I am playing with will be to see on that page either the trend... up or down or maybe just the last 3 or 4 values.
The idea for me is to use this as a quick one page status without having to go to graphs etc. So if I get a txt/email alert I can quickly check and see the rate of change and make a call on what to do or how quickly I need to respond.
Other bits I want to play with include mapping the sockets to user friendly name e.g. s1 displays as Return Pump etc
Great work ... much appreciated... :)

boboxx
04/18/2008, 03:29 PM
cool glad it worked for you, I have a 0.3 almost done, some optimisation was done and now runs 100 time faster, probe detection and this will also have some nice graphs :c)

tee-em
04/18/2008, 04:22 PM
Nice :)
I think I am going to hold of then for 0.3 before i do anything further.... besides your scripts are elegant against my noob hacks. Well maybe just tincker with a mail function for alerts... :) I am lucky my mobile service provider provides free txt alert/gateway for their mailboxes... built in sms alerts :)

fyre_lp
04/18/2008, 04:44 PM
Looking forward to the next release

Chrisrush
07/30/2008, 06:35 AM
Any updates boboxx?

boboxx
07/30/2008, 04:17 PM
Nope, I just set it up to do basic alerting/logging and I havent had a chance to play with it much... I should be able to work on this soon enough, I hope anyway.

I have buzzy working on other project!!!

hmmbrrgrr
11/13/2008, 04:08 PM
Hey boboxx, just wanted to express some interest in this. Hope it is going well =)

wilks
11/14/2008, 05:19 AM
Yes me to i find this a great add on to the profilux, and would love to have this in addition to how i remote access my profilux via the internet
Good luck

boboxx
11/14/2008, 05:56 AM
sorry folks no update, I'm working on my new 180G :c)