LinuxMCE Forums
General => Feature requests & roadmap => Topic started by: grind on March 14, 2010, 11:30:54 pm
-
I was not able to find anything about LinuxMCE and 1-Wire but in my opinion those are the best, simpliest and cheapest sensores you can have!
Is there something on the roadmap?
-
No, but can you elaborate? What is a 1 wire sensor?
-
1-Wire is a bus which works with only three cables and using very cheap cables.
A temperature sensor for example is costs about 1,90 Euro.
For more information have a look at http://www.maxim-ic.com/products/1-wire/
-
Hi,
There is a basic GSD interface for 1-wire devices called Link45i. Not sure that it works but at least it can give a good start point to implement a full featured 1-wire interface.
-
Nite_man i just had a look at your setup and there you have several 1-Wire sensors in your old setup.
What did you do to get those working? My 1-Wire order did not arrive so far but i want to be prepaired ;)
-
It was 1-wire weather station. It worked with OWW (http://oww.sourceforge.net/) but wasn't integrated with LinuxMCE.
-
I see.
Would it be possible to get the 1-Wire data using owfs for example and push them into the LinuxMCE database?
-
Yes, OWW daemon provides callback functionality. There is an option in the setup (http://oww.sourceforge.net/oww_setup.html#setup) config file called postupdate. You can specify there a shell command to insert measurement data into mysql table:
postupdate mysql -u[user] -p[password] vader -e "INSERT INTO station (datum,tid,temp1,wspeed,wdeg,wdrpoint,wchill,press,hum,temp2,temp3,heatindex,tdew1) VALUES (NOW(),NOW(),$t1$,$wspkph$,$wdrdeg$,$wdrpoint$,$wchillc$,$barmbar1$,$rh1$,$trhc1$,$tb1$,$heatindexc$,$dpc1$)"
See more info in the OWW docs. Also have a look that example (http://deanostoybox.com/code/OwwPHPmySQL.html) of using OWW together with PHP and Mysql.
-
Great!
Looks like this is the easiest way for me...
Thank you very much nite_man!!!
-
Great!
Looks like this is the easiest way for me...
Thank you very much nite_man!!!
Hey grind. Please keep us updated how it's going!
I have bunch of 1-wire sensors, yet no integration with the lmce.
/kooma
-
Guys, it wouldn't take much to make a proper C++ driver for this. Grind are you doing this approach?
-Thom
-
My programming skills are very limited ;)
I will try the approach to inser the data directly into the DB.