Hi - I just committed a new version to CVS with a couple of changes. It's now possible to set the value of a field:
>>> s = Sensor('/10.B7B64D000800', 'localhost', 9876) >>> s.temphigh 100 >>> s.temphigh = 98 >>> s.temphigh 98 Also note that the type of values have changed. The ownet code now tries to do the right thing wrt types. If the return value from a sensor is an int or float, they'll automatically be converted to int or float. Otherwise they'll be returned as strings. If this is useful, I'll update the ow module to do the same. Poke at the code. See what works, what doesn't and try to break it. Let me know how things go... - Peter On 12/6/06, Chris Lyon <[EMAIL PROTECTED]> wrote: > Fantastic! Once I've got my linux box back on the wireless network > (Don't ask) I'll beat it around for you. > > Chris. > > Peter Kropf wrote: > > >Hi - > > > >I've committed to CVS the first draft of a new python module called > >ownet. It allows for interaction with a remote owserver without the > >need to have the core ow libraries and servers built on the local > >system. The code is very much in an alpha state so expect things to > >break. And if they do, please send a note to the list so that they can > >be resolved. This first version can only read data from an owserver. > >Setting values is not yet supported. > > > >The module is not automatically installed. Instead, you need to follow > >these simple steps: > > > >$ cd module/swig/python/ownet > >$ sudo python setup.py install > > > >There should now be a module called ownet in the site-packages > >directory of the python installation. > > > >Try running the modules/swig/python/ownet/examples/temperatures.py > >program. It should print out something like: > > > >$ python ./examples/temperatures.py kuro2 9999 > >r: kuro2:9999/ - DS9490 > >r.entryList(): ['bus.0', 'settings', 'system', 'statistics'] > >r.sensorList(): [Sensor("/10.B7B64D000800", server="kuro2", > >port="9999"), Sensor("/26.AF2E15000000", server="kuro2", port="9999"), > >Sensor("/81.A44C23000000", server="kuro2", port="9999")] > >kuro2:9999/10.B7B64D000800 - DS18S20 22.4375 > >kuro2:9999/26.AF2E15000000 - DS2438 21.0938 > >$ > > > > > >- Peter > > > >------------------------------------------------------------------------- > >Take Surveys. Earn Cash. Influence the Future of IT > >Join SourceForge.net's Techsay panel and you'll get the chance to share your > >opinions on IT & business topics through brief surveys - and earn cash > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >_______________________________________________ > >Owfs-developers mailing list > >Owfs-developers@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/owfs-developers > > > > > > > > > > > > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.409 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006 > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers