Re: [Owfs-developers] File Structure Question

2013-04-18 Thread Mick Sulley
Hi Paul, Your suggestion prompted me to try again with os.walk(), I can't remember the details of what went wrong last time but it seems to be working perfectly now, and much simpler than the way I was doing it:) Thanks Mick On 17/04/13 21:17, Ziggy wrote: Mick, are you using os.walk() ? I h

Re: [Owfs-developers] How to access a sensor by id using pyowfs [was: Re: [General Question / Allgemeine Frage] Using pyowfs]

2013-04-18 Thread Marcus Priesch
Hello Joe, please always send your mails to owfs-developers mailing list so that it gets distributed to its members also ... Regarding your question: the "28." part of the "id" is the sensor type (e.g. DS1820) and therefore not part of the 1wire id ... .find() works very simple, it just tries

[Owfs-developers] How to access a sensor by id using pyowfs [was: Re: [General Question / Allgemeine Frage] Using pyowfs]

2013-04-18 Thread Marcus Priesch
Hello Joe, thanks for your interest in pyowfs ;) the .get() and .put() methods can only access attributes of a sensor object (the leaves in the tree). To access a specific Sensor by id you have to use the .find() method of the connection. Obviously you should also check if the sensor actually cou

[Owfs-developers] Direct Access to Sensors using pyowfs

2013-04-18 Thread joep
I'm evaluating pyowfs for use in a USB based 1-wire system running on a RaspberryPi. I've got pyowfs running fine on the RaspberryPi. At this stage I'm reading temperatures (from four DS18B20 sensors). I'm using the code described on the 'pyowfs website' to read temperatures. This generates a