LinuxMCE Forums

General => Feature requests & roadmap => Topic started by: AndersSandell on November 01, 2010, 04:05:54 pm

Title: LinuxMCE and 1-wire
Post by: AndersSandell on November 01, 2010, 04:05:54 pm
Hi all,

I am currently using Misterhouse for home automation purposes using a log of 1-wire sensors and actuators. I am planning to start using zwave for lights etc bt since Misterhouse dont suport z-wave very good i am looking for alternatives.

LinuxMCE seems to have pretty good z-wave support using the Viasens 100 from seluxit but i cannot find much support for 1-wire. Since i dont want to scrath my 1-wire installation i am looking for a way to get that working with LinuxMCE.

I know that there has been a few threads abot LinuxMCE and 1-wire but i have not been able to find a solution.

Is 1-wire support in the current roadmap of LinuxMCE?

Cheers,
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 13, 2010, 05:02:51 pm
Hey,

I'd love to have 1-wire support as well, that would be a very inexpensive solution for measurement of temperature and heatcontrol. As I read somewhere here, there used to be a script for 1-wire but got lost somewhere or so...any ideas?

I just tried to get OWFS running on my core some days ago, but got stuck as it needs python2.4 and Linuxmce has a newer version running. A downgrade of python would propably kill a lot other things I guess?

IF

Title: Re: LinuxMCE and 1-wire
Post by: nite_man on November 15, 2010, 02:28:12 pm
I tried to use OWFS and OWW (http://oww.sourceforge.net/) with Plutohome. OWW worked fine as standalone solution for the weather station. But I couldn't integrate it with Plutohome. One idea was to run OWW GUI client as computing application. In any case even now LinuxMCE doesn't have weather screen.

Also note that there is a draft template for the 1-wire interface Linki45 in the device templates.
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 19, 2010, 02:33:16 pm
Yes, I found the device template as well, but do you have any idea how to use it?
Title: Re: LinuxMCE and 1-wire
Post by: optimus on November 20, 2010, 08:37:47 am
could you please share that site over here so we all can use it and download the templates and anyone who know how to use them please help us thanks....
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 20, 2010, 10:00:56 am
it's in webadmin advanced-configuration-device templates.

by the way, I have now owfs running and can read the temperature file but how can I feed that to the system?
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on November 20, 2010, 10:08:29 am
_if_,

From the wii it might be posible, but not enough infirmation.
http://wiki.linuxmce.org/index.php/1-Wire

Post the files that has the information. From there we can see if we can get a template going. This way i dont need the devices to test, just the files that contains the data. The template will read the files.

Pls correct me if Im wrong.

Karel
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 20, 2010, 10:17:19 am
hi,

yes its not a lot info on the page...
owfs works this way: for each sensor connected to the interface it adds a directory and in that directory it adds a file called "temperature" which has nothing but the measured value in it.
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 20, 2010, 06:21:13 pm
little info to add: the values look is 23.625

Karel, do you think you can do a template for that? just let me know if you need more info!

thanks
IF
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on November 21, 2010, 12:51:34 pm
Hey IF,

To be honest I havent created any templates before, but this would be a start.
Is that the only content in the files? I have a look at it during the week and let u know how im doing.

Karel
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 21, 2010, 01:39:32 pm
hi,

yes the measured value is the only content in that file.
Thank you so much for your help Karel, I'm completely lost on creating templates...

In case we get this working, I will put a wikipage together as this seems to be interesting for others as well.

thanks
IF
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 27, 2010, 12:06:33 pm
Hey,

any news on that template, did you find time to play a little with it?

greetz
IF
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on November 27, 2010, 12:50:25 pm
Hi IF,

I have to apologise.......
Was a very busy week this week. I'll have a look at it later today or tomorrow and give you some feedback

Im really sorry.

Karel
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on November 27, 2010, 12:54:22 pm
absolutely no problem!
just let me know if you got any progress.

thanks!
IF
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on December 01, 2010, 08:04:19 pm
If,

Not as easy as I thought...... or I dont know enough about creating templates just yet....

For the more experienced users......
Is it posible to create a device template to read info from a text file?

Karel
Title: Re: LinuxMCE and 1-wire
Post by: sambuca on December 01, 2010, 08:24:44 pm
You need to do some programming, probably C++, as I think GSD don't allow reading files.

The basic process is: create device template, generate c++ skeleton, fill in code to do what you want and commit it to svn once tested and verified.

best regards,
sambuca
Title: Re: LinuxMCE and 1-wire
Post by: Kooma on December 01, 2010, 09:40:43 pm
I know nothing, but, could we integrate the data logger here. I'm thinking that at some point the data logger could log any selected events/data/etc to a database. This database could serve as a more versatile means for each case, like 1-wire data.
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on December 01, 2010, 10:22:24 pm
puh, this sounds really challenging!
Does anybody have an idea who created the template for the Link45i interface? Maybe we can get that working instead?

greetz
IF
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on December 07, 2010, 04:57:24 pm
OK I guess there is nobody working on this anymore, right?
Should we maybe try to put some money together and ask one of the devs to do the job?
Title: Re: LinuxMCE and 1-wire
Post by: tschak909 on December 07, 2010, 05:10:05 pm
If I can get a 1-wire interface, some cabling, and a few sensors, I will write a functional driver.

-Thom
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on December 07, 2010, 05:47:53 pm
hey cool! You can have my interface, cable and 3 sensors (just one is soldered onto the cable right now). Would you pm me your shipping address?

big thanks to nice nice nice Thom!  ;D
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on December 17, 2010, 03:13:30 pm
Hi _IF_,

What are the model numbers of your 1-wire inferface and sensors?
I want to see if I can get some locally. I want to use 1-wire to, once Thom gets it working.

Karel
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on December 17, 2010, 03:20:22 pm
Hi,

I have this interface: http://www.ibuttonlink.com/linkusb.aspx (http://www.ibuttonlink.com/linkusb.aspx)
and the dallas DS18B20+ sensors.
But I did not get any response from Thom so far, he is propably very busy at the moment...

IF
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on December 17, 2010, 03:29:56 pm
Thom,

Would the Link45i interface template be the best place to start, or should it be done from scratch?

Karel
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on December 17, 2010, 03:47:11 pm
Hi IF,

As allways cant get it locally  >:( That sux about SA. Whenever I want something I cant get it SA!!! The same happened with Z-wave  >:(

Karel
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on December 17, 2010, 11:38:39 pm
Hey Karel,

don't they ship to SA? What is their problem? In case we get it running, I could try to get the stuff and send it to your place if that helps you...

greetz
IF
Title: Re: LinuxMCE and 1-wire
Post by: DragonK on January 19, 2011, 08:23:51 pm
IF,

How did you get OWFS working?

Karel
Title: Re: LinuxMCE and 1-wire
Post by: _if_ on January 19, 2011, 08:55:21 pm
try this guide: http://automation.binarysage.net/?p=1244&cpage=1 (http://automation.binarysage.net/?p=1244&cpage=1)

I´m sorry I can´t remember exactly what I did but this guide helped and I believe I did not install php5 and not shure about the python thing...

Title: Re: LinuxMCE and 1-wire
Post by: hari on January 19, 2011, 10:00:13 pm
just ./configure && make && make install

that should be sufficient for the new driver..

br Hari