How about using the python / ownet stuff? I use that now, since I run owserver on one side anyway, and with ownet there is no need for owlib, just the small python/ownet script is needed.
Michael On Dec 17, 2007 10:53 PM, Christian Magnusson <[EMAIL PROTECTED]> wrote: > The tree-structure have changed a bit lately, and /system/adapter/name.0 is > replaced with > /bus.0/interface/settings/name. > > Patches need to be done in module/swig/python/ow/__init__.py, but it's not > only the change above which is needed... I'm no guru at python, but I'll see > if I find any obvious patches which needs to be done. > > /Christian > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Matthias > Fuchs > Sent: den 17 december 2007 22:12 > To: [email protected] > Subject: [Owfs-developers] owfs python wrapper > > Hi, > > I am just doing my first experiments with owfs-2.7p1 and its > python wrapper. Before I start with my problem: owserver with owhttpd > works fine and I can access my three DS1820 sensors. > > When using the python wrapper to get a list of the owfs structure > I took a look into the tree.py example and encountered this issue: > > [EMAIL PROTECTED]:~/owfs-2.7p1/module/swig/python/examples$ python > Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) > [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import ow > >>> ow.init("/dev/ttyUSB0") > >>> s = ow.Sensor("/") > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "usr/lib/python2.5/site-packages/ow/__init__.py", line 258, in > __init__ > File "usr/lib/python2.5/site-packages/ow/__init__.py", line 401, in > useCache > File "usr/lib/python2.5/site-packages/ow/__init__.py", line 146, in _get > ow.exUnknownSensor: '/system/adapter/name.0' > >>> > > Shouldn't that work? > > Python is 2.5.1 under ubuntu 7.06, SWIG Version is 1.3.31 and owfs version > is > 2.7p1. > > Either there is something wrong or I misunderstood something. > Any hint? > > Thanks > Matthias > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Owfs-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Owfs-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > -- Dr. Michael Weber Astrophysikalisches Institut Potsdam An der Sternwarte 16 D-14482 Potsdam Tel: 0331 7499 632 Fax: 0331 7499 200 email: [EMAIL PROTECTED] ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
